Jump to content
  • Advertisement
Sign in to follow this  
stonehat

What would be the most efficient way to load 3d models?

This topic is 1370 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

To load models such as characters and buildings into memory, I placed the model file in certain format such as .dae and had the program parse it before entering the main loop. I think it might be not the fastest way. What's the most efficient way to do that generally?

Share this post


Link to post
Share on other sites
Advertisement

What's the most efficient way to do that generally?

The most efficient way is to store the model is a file format, which more or less represents your internal structure which holds your model data. One way is to write a converter from a common model format (dae,fbx) to your internal format.

 

Ninja'd ph34r.png

Edited by Ashaman73

Share this post


Link to post
Share on other sites
It depends on what you want to achieve. If you want to develop a "full blown" engine or a game with lots of 3D models, then I agree with the above, too make some sort of pipeline towards the ideal format for your own engine/ game. Ideally the processing is done outside/separated to decrease in game load times. If you just want to play around then your current approach is also valid, just load anything that works, maybe even directly (through assimp, d3dx etc)

Share this post


Link to post
Share on other sites

If you are interested I am working on a desktop app that can let you do that quite easily - at least that is the idea.

It uses assimp under the hood and will allow the user to customize the export to hook in to their engines using as3.

You can of course do the same thing yourself, it only took me a few hours to get it up and running.

The idea being you can just write the raw data into a bytearray so you can just copy it right into your own data structures with no need to process it or create anything... very compact and very fast.

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!