Sign in to follow this  
Followers 0
jumz

OpenGL
Importing Pieces into OpenGL

2 posts in this topic

Hi,

I am trying to import chess pieces from 3dsmax to opengl. However, I am quite new to opengl and it has been a big challenge so far. Any help will be appreciated?

 

Pls and thank youunsure.png wacko.png 

0

Share this post


Link to post
Share on other sites

About the easiest file format to load, for which nearly every tool has an exporter is .obj.

Now the question is what .obj files look like and how to get the data in a format you can directly feed to opengl functions.

OpenGL prefers object data to be interleaved (meaning, you got one array containing the vertex information like this: position0, normal0, uv0, position1, normal1, uv1, ... or whatever other order and information you want), put into a vertex buffer object and addressed using indices in another vbo. I haven´t read it, but a good start on loading obj seems this tutorial: http://www.opengl-tutorial.org/beginners-tutorials/tutorial-7-model-loading/ the resulting data is not interleaved and indexed, as far as I could see, but it should give you a start to improve on.

1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0