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
Instancing with Custom Parameters Per-Instance
-
- Gnoblar
- Posts: 21
- Joined: Thu Jun 08, 2006 10:56 am
-
- OGRE Team Member
- Posts: 5514
- Joined: Sat Jul 21, 2007 4:55 pm
- Location: Buenos Aires, Argentina
- x 1379