I've been learning GLUT/OpenGL for the last few days doing simple stuff like 3D cubes and the like... but i was thinking... how do you make complex objects... is there a file format i can use? how is it done?
thanks
I've been learning GLUT/OpenGL for the last few days doing simple stuff like 3D cubes and the like... but i was thinking... how do you make complex objects... is there a file format i can use? how is it done?
thanks
well first you find the format definition, then the rest should be obvious, just read whats there(this can be very complex)...
http://www.wotsit.org look for some formats
ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.
ok... im looking at .OBJ... but how do i use that source with glut?
thanks
read over the format and see how the data relates to points, and polygons, texture ect...
use the data in the file to draw them like you would normally draw the objects,
like a polygon, maybe
depending on how your(the) code orginizes the data for drawing,
keep in mind this is just an example.Code:for(int i = 0; i < number of polygons;i++) { glBegin(GL_POLYGON); for(int j = 0;j < number of polygon vertices;j++) glVertex3fv(polygon[i].polygonvertice[j]); glEnd(); }
ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.
Thanks a lot... now i get it... thanks
Does anyone perfer any 3d object file types that are easy? And have textures? thanks
im not really sure as to what most popular, .3ds?
i used .lwo 's since LightWave is what i need to use for my purposes... im still working on the loader for them, fairly close now, it's a pretty complex format. and then theres still the LightWave scene format...
try asking the guru's at http://www.opengl.org , they might be able to helpm more.
ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.
howdy,
you can also try asking at
Openglforums
M.R.
I don't like you very much. Please post a lot less.
Cheez
*and then*
No, I know you were joking. My point still stands.
.md2 and .ms3d are the easiest to code for (.md2 is the Quake II file format and .ms3d is produced by the shareware program Milkshape 3d). If you go to http://nehe.gamedev.net/ you will find tutorials in both of these formats.
VC++ 6