Page 1 of 1

Showing a model in more than one place?

Posted: Mon Mar 20, 2006 6:14 am
by Rabid Mantis
For example if i want to spray bullets everywhere, Is it possible to just use the model for my bullet and draw it multiple times in different places? It seems like a waste to have a node for each individual bullet. Thanks.

Posted: Mon Mar 20, 2006 2:38 pm
by sudi
i don't think that there is another way with irrlicht

Posted: Mon Mar 20, 2006 10:31 pm
by Rabid Mantis
Well that sucks. Wouldnt that optimize things a bit if it were possible? Especially for example in a spaceship combat game with all the projectiles flying everywhere.

Posted: Tue Mar 21, 2006 2:58 pm
by Vox
Why don't you make your custom scene node which can hold all projectiles? Then, you could render every bullet/projectile at different position.

Or, without using scene node, render your scene normally, then render your bullets via videodriver before rendering GUI.

Possibilites are endless.

Posted: Wed Mar 22, 2006 2:47 pm
by Rabid Mantis
I was just hoping there'd be an easy way to avoid having a hundred different nodes that are exactly the same... Like if I could take one node for the projectile, draw, reposition, draw, repeat in different places. But since there doesnt seem to be an easy way to do it I'll have to look into different options.