How can I render same mesh object 5-times?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
bckong
Posts: 4
Joined: Thu May 14, 2009 10:32 am

How can I render same mesh object 5-times?

Post by bckong »

How can I render same mesh object 5-times?

I'd like to draw my mesh 5 times...

but... I don't know how...

Should I Load Same Object 5 times?!!

I need your help... thanks..
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Yes, you have to create 5 scene nodes. Irrlicht will help you by reusing the existing mesh, so not much memory is used.
huydotnet
Posts: 81
Joined: Tue Sep 25, 2007 12:26 pm
Location: Danang, Vietnam

Post by huydotnet »

use array
like this

Code: Select all

ISceneNode* xo[5];
for (int i=0; i<=4; i++)
{
 xo[i] = smgr->addSphereSceneNode();
 xo[i]->setPosition(vector3df(i,i,i));
}
Post Reply