Clone Entity

A place for users of OGRE to discuss ideas and experiences of utilitising OGRE in their games / demos / applications.
Post Reply
pr0n1x
Gnoblar
Posts: 8
Joined: Thu Jul 21, 2005 12:31 am
Contact:

Clone Entity

Post by pr0n1x »

Prompt please who knows.
For instance me it is necessary to place on scene 10 alike robots.
How do I do:

1) Create 10 Entity and each SceneNode to load new Entity?
2) Create 1 Entity and function clone() clone his 10 once?

Prompt please that better?
That occupies less time and memories?
And what pluses and minuses each way?

Thank you.

P.S.
Excuse me for my english.
User avatar
haffax
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4823
Joined: Fri Jun 18, 2004 1:40 pm
Location: Berlin, Germany
x 8
Contact:

Post by haffax »

There is no real difference between these two options. The actual mesh will only be loaded once independently from the method you choose. emory is exactly the same (when you create a SceneNode per entity too for the second option, that is, which you probably do)
team-pantheon programmer
creators of Rastullahs Lockenpracht
Post Reply