Instancing with Custom Parameters Per-Instance

Discussion area about developing or extending OGRE, adding plugins for it or building applications on it. No newbie questions please, use the Help forum for that.
alexjc
Gnoblar
Posts: 21
Joined: Thu Jun 08, 2006 10:56 am

Instancing with Custom Parameters Per-Instance

Post by alexjc »

Hi,

I was digging into the instancing code of 1.8.0 with the intent of adding custom parameters for each instance. I'm currently only looking to modify the BasicHW instancing with no skinning. I've figured out where I need to store the data in InstancedEntity, modify the RenderOperation to include the data. "Hacking" the library for it to work would be trivial enough now I've done my homework...

However, I'm having trouble figuring out how I should "extend" (not replace) the existing code so it works with any standard distribution of Ogre (e.g. on Linux). I'm not sure if the instancing system was designed to be extended. For instance, the Ogre::InstanceManager contains multiple different implementations, but doesn't seem to be extensible with new ones.


Does anyone have thoughts on the topic of how to do this with minimal intrusions? Has anyone else looked into this?

Alex
User avatar
dark_sylinc
OGRE Team Member
OGRE Team Member
Posts: 5514
Joined: Sat Jul 21, 2007 4:55 pm
Location: Buenos Aires, Argentina
x 1379

Re: Instancing with Custom Parameters Per-Instance

Post by dark_sylinc »

This is an old thread. Anyway, I'm just posting here that it's been done.

See this post (page 12)