Page 1 of 1

Instancing with Custom Parameters Per-Instance

Posted: Sun Jul 08, 2012 10:24 pm
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

Re: Instancing with Custom Parameters Per-Instance

Posted: Sun Oct 07, 2012 12:33 am
by dark_sylinc
This is an old thread. Anyway, I'm just posting here that it's been done.

See this post (page 12)