Jump to content
  • Advertisement
Sign in to follow this  
the_cyberlord

OpenGL .ASE to OpenGL Code

This topic is 5232 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Has someone allready made, or can someone make a convertor that converts ASCII 3D (ASE) to OpenGL GL_TRIANGLES code? It would be handy if you want to make your programs run as fast as possible but of course, you'd have to compile again everytime your model changes. But this could be made a bit faster by separating the file that draws you OpenGL model for your other code.

Share this post


Link to post
Share on other sites
Advertisement
Wouldn't the fastest method be to load the mesh from an external file at runtime, save it in a display list, and use that display list, rather than performing GL_TRIANGLE calls every frame (even if they are compiled into the program)?

Share this post


Link to post
Share on other sites
Quote:

Well ehh, maybe, I don't know, it was just an Idea, but you could also save the TRIANGLES calls in a display list... and there's no loading time


and what about animation?

there is a libASE which can load your ase model files into a `reasonable` format.
however I didn't manage to get things working for my 3dsmax's ASE exporter doesn't work right ( it exports illegal stuff ).

Share this post


Link to post
Share on other sites
Quote:
Original post by the_cyberlord
oh yeah, I forgot about animation!

but say, if you need no animation.


vertex arrays are faster or at least same the fast as display lists, and vertex array ranges are faster ;D

Share this post


Link to post
Share on other sites
I have a converter. I've never used it and I don't know where I got it from. According to the ReadMe.txt file, it was made by Philippe Kunzle and a future update is to make it create vertex arrays so it probably uses triangles.

Share this post


Link to post
Share on other sites
Ignoring from the poor rendering performance of glBegin/glEnd batches of triangles, you shouldn't even think about rendering an object with n lines of code per vertex. Model data is just that; data, therefore you should store it in a data structure and render it in a loop (or a vertex array/VBO if you want to speed things up).

If you have even a basic understanding of programming you should be able to do that. If you can't then you're probably not ready to learn OpenGL.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!