Multiple ISceneNodeAnimatorCollisionResponses

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
Josh1billion
Posts: 125
Joined: Thu Dec 11, 2008 9:50 pm
Location: Wisconsin
Contact:

Multiple ISceneNodeAnimatorCollisionResponses

Post by Josh1billion »

If I were to construct a level out of hundreds of individual mesh scene nodes rather than rendering the entire level all as one model, would it be possible to have an ISceneNodeAnimatorCollisionResponse acting upon the player's animatedmeshscenenode for each one? Would this result in a performance hit?
www.JoshForde.com

Latest release: Super Orbulite World.
In development: Season of Dreams and others
CuteAlien
Admin
Posts: 9679
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Multiple ISceneNodeAnimatorCollisionResponses

Post by CuteAlien »

You can create Metatriangleselectors, to merge all the individual meshes, but I can't tell you the effect on performance (would also have to write a test). It will definitely have an effect on rendering performance, rendering one large node is faster than rendering lots of small nodes.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Josh1billion
Posts: 125
Joined: Thu Dec 11, 2008 9:50 pm
Location: Wisconsin
Contact:

Re: Multiple ISceneNodeAnimatorCollisionResponses

Post by Josh1billion »

Nice, the IMetaTriangleSelector approach worked perfectly. Thanks!
www.JoshForde.com

Latest release: Super Orbulite World.
In development: Season of Dreams and others
Post Reply