- Code: Select all
//Load our panda
NodePath pandaActor = window->load_model(framework.get_models(), "models/panda-model");
//Load the walk animation
window->loop_animations(0); //Bind models and animations and set animations to loop
The above code loads and animate a single panda model.
Now if I want 10 panda models - do I have load the model 10 times from the disk or is there a way to load it one time and make 10 copies of it in the RAM and place it on the scene graph ? How do I apecify the co-ordinate loaction of each of the models at run-time ?