Jump to content

  • Log In with Google      Sign In   
  • Create Account


Importing Pieces into OpenGL


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 Jaey   Members   -  Reputation: 117

Like
0Likes
Like

Posted 17 February 2013 - 01:44 PM

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 



Sponsor:

#2 _Slin_   Members   -  Reputation: 202

Like
1Likes
Like

Posted 17 February 2013 - 07:30 PM

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.



#3 DDoS   Members   -  Reputation: 312

Like
0Likes
Like

Posted 19 February 2013 - 04:57 PM

you could use assimp :) supports alot of 3d formats
http://assimp.sourceforge.net/main_features_formats.html

 

as a beginner i'd recommend using non interleaved buffers, because you can get into troubles with offsets


those are my achievements from the last 2 weeks with learning opengl :) 






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS