PDA

View Full Version : loading images into OpenGL



ni-resist
04-24-2010, 07:44 AM
I am doing a project in OpenGL where we have to do a solar system and have a space ship orbiting the planets. My question is if I were to make a space ship in 3DS Max, how would I load it into OpenGL?

ZbuffeR
04-24-2010, 10:05 AM
Export to a (simple) format, read the file in your code to build vertex lists.
Some simple text format simple .obj or .dxf is easy to read and render, but texture coordinates and material information is lost. Ascii scene export (.ase) is more detailed.
.3ds is very old and obsolete but there are loads of loader libraries than can read it.

randall
04-24-2010, 02:13 PM
In .obj file format texture coordinates are not lost.

ZbuffeR
04-24-2010, 02:35 PM
Indeed, my bad.