View Full Version : sample code wanted

Milan Stezka
06-09-2001, 10:28 AM
Hi there,

I need a sample code in which there is used glDrawElements and loading 3D objects from 3DSMax . These two must be together in one example.

I'm now solving a problem with texture coordinates.


06-09-2001, 11:37 AM
I don't think you can directly load from 3dsmax files because that's at least in ascii-output many things are just stored with parameters which are then whacked into the 3dsmax engine. try 3ds, would be better. I think there should be enough information on the net about it.

06-11-2001, 09:21 PM
The biggest thing you have to be careful of when parsing for texture coordinates is that shared vertices will not be repeated; so you'll end up with a number of vertices less then you expect.

06-16-2001, 07:22 AM
check out www.openscenegraph.com (http://www.openscenegraph.com) there is source code of how to load 3DS files