Dynamic object loading

Started by great_apple_day, May 05, 2012, 11:28:28 AM

Previous topic - Next topic

great_apple_day

Hey guys,

I've got a couple of MD2 files with simple animation. All I want to do is to load the models based on the
AR marker. For instance if the AR tracks an apple picture I want to load the "Apple.md2" and if it changes
to banana picture the model needs to be changed to "Banana.md2".

AFAIK loading all the model at the beginning seems impractical. What is the best approach to load models 
dynamically at runtime?

Should I load all of them at once and try changing the visibility on the fly?

Thanks in advance
Best,

EgonOlsen

Quote from: great_apple_day on May 05, 2012, 11:28:28 AM
Should I load all of them at once and try changing the visibility on the fly?
If the memory permits this, it might be the best solution.

great_apple_day

Thanks. Unfortunately there are too many models so I have to load them on the fly.

EgonOlsen

Then load them in another thread. Just make sure that you don't add them to the world in that thread but in the render thread.