Advertisement

file formats and GLUT???

Started by October 07, 2002 08:31 PM
8 comments, last by Springer 22 years, 1 month ago
I have an OpenGL book that deals with glut, that is what i am going to use to learn OpenGL with. It does not, however, talk about loading any file formats that could be used to load 3d models. Can glut do this? Load 3d file formats that is. Thanks.
No, GLUT has nothing to do with files, it only deals with windowing and user interaction.

Documents [ GDNet | MSDN | STL | OpenGL | Formats | RTFM | Asking Smart Questions ]
C++ Stuff [ MinGW | Loki | SDL | Boost. | STLport | FLTK | ACCU Recommended Books ]
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan
Advertisement
Thanks for the reply but im a moron.

So i can use GLUT and still load files of different formats because GLUT doesnt have anything to do with that. glut is only for handling windows and things so i can still use the glut with opengl code to load different file formats?

thanks again
Exactly. You just have to write the model loader, the data structures and display routines in a way that works well with one another.

Too many newbies ask such questions without realising they control both ends of the equation.

Documents [ GDNet | MSDN | STL | OpenGL | Formats | RTFM | Asking Smart Questions ]
C++ Stuff [ MinGW | Loki | SDL | Boost. | STLport | FLTK | ACCU Recommended Books ]
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan
What fruny said is right,
GLUT is not for loading 3d files. There aren''t really any libraries for loading files into opengl (there are some for loading 3ds files, thats up to you to find out about
So you''ll have to roll your own code. There are many tutorials out about loading Quake2, Quake3, and Milkshape into opengl.
||--------------------------||Black Hole Productionshttp://bhp.nydus.netResident expert on stuffmax621@barrysworld.com||--------------------------||
ok good, that is what i wanted to hear.

I dont have a problem with writing my own loader, i dont know how but i dont doubt my ability to learn how.

I just didnt know if glut supported file loading and also i didnt know if it was even worth the effort. Mainly because i was afraid that glut would slow down my project, in terms of performance of course.

Sorry for the complete newbie questions, i just wanted to be sure.
Advertisement
glut wont slow down your project at all
though i think a better bet for you is a scenegraph
these handle loading 3dfiles texture etc
theers lots of scenegraphs around examples

http://www.opensg.org/
http://plib.sourceforge.net/
crystalspace
http://www.opengl.org/developers/documentation/inventor.html

http://uk.geocities.com/sloppyturds/kea/kea.html
http://uk.geocities.com/sloppyturds/gotterdammerung.html
Hey thanks Zedzeek,

on a side note, your game engine looks amazing!
GLUT can slow down your game. Go to http://www.gamedev.net/community/forums/topic.asp?topic_id=117877. This explains how GLUT affects OpenGL programs.

---
Make it work.
Make it fast.

"I’m happy to share what I can, because I’m in it for the love of programming. The Ferraris are just gravy, honest!" --John Carmack: Forward to Graphics Programming Black Book
"None of us learn in a vacuum; we all stand on the shoulders of giants such as Wirth and Knuth and thousands of others. Lend your shoulders to building the future!" - Michael Abrash[JavaGaming.org][The Java Tutorial][Slick][LWJGL][LWJGL Tutorials for NeHe][LWJGL Wiki][jMonkey Engine]
if u are referring to the second post, then thats wrong info glut handles multiple keypresses at the same time just fine. basically the idea is u need to keep track yourself of what keys are cureently down

http://uk.geocities.com/sloppyturds/kea/kea.html
http://uk.geocities.com/sloppyturds/gotterdammerung.html

This topic is closed to new replies.

Advertisement