PDA

View Full Version : how to load 3DS files with jpeg texture



yamada
05-15-2002, 07:39 PM
can anyone tell me how to load a 3ds file with jpeg texture in a OpenGL proagram?
thank you

Michael Steinberg
05-15-2002, 08:24 PM
You have three options at least:
1. Read it as a usual 3ds file.
2. Check google for free source code.
3. See wotsit.org for 3ds file description.

(and you may use libjpg for the jpeg files...)

tfpsly
05-15-2002, 10:36 PM
Find docs about the 3ds hierachy and chunks file. Have a look at Clax at http://www.geocities.com/SiliconValley/Bay/6525/

For Jpeg, use the libjpeg.

ppinter1
05-16-2002, 05:25 PM
DigiBen's got it all covered:
http://www.gametutorials.com/Tutorials/OpenGL/OpenGL_Pg4.htm for a 3DS loader and
http://www.gametutorials.com/Tutorials/OpenGL/OpenGL_Pg1.htm has a jpeg texture loader.

yamada
05-16-2002, 09:18 PM
thank you very much