badsha6642 at January 18th, 2012 22:56 — #1
i want to import texture and material from 3d model created in 3ds max to opengl. How can i do that?
david_gallagher at January 19th, 2012 04:02 — #2
I myself don't use opengl, but assimp has examples of loading models in opengl and uses devIL for textures, might be worth looking into, it's been a great help in dx(though still haven't gotten to the aniamtion stage of use with it). not sure on the versions of 3dsmax(.3ds,.ase) imports it supports but it's been great for the imports I've used and might be useful to you. sorry if it doesn't help/not relevant.
geon at January 19th, 2012 05:55 — #3
You will not usually be able to read 3ds max files directly. They are very complex and undocumented. Instead you would export your model and textures, etc. to some standard format. I'm not sure what the state of the art is for meshes and materials, perhaps Collada. But textures should just be image files, like PNG or JPEG. SDL can load most popular image formats.
mmakrzem at February 6th, 2012 05:48 — #4
Pick up this book: http://www.amazon.com/Focus-Models-Premier-Press-Development/dp/1592000339 it will show you how to do exactly what you are looking for.