sample code wanted

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.


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.

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.

check out there is source code of how to load 3DS files