Does anybody here know how to load a 3d model into an OpenGL application, no GLUT, using C/C++... I dont care if it's .3ds or .obj or whatever, as long as it works..
Thanks in advance...
Jump to content
Posted 28 November 1999 - 03:12 PM
something like this
//insert texture coords, normals etc here
then declare a struct of object_t type, load in a 3D object from the 3D modeller of your choice (you'll have to research the file format a little so you can extract the data you want), allocate memory for tris and vertices
and load the data into your structures.
hope that helps
after loading the file, make sure you allocate memory for the tri