Spooky, as I understand it, what you say is that the emission rate and particle size, are directly bound to the camera distance. I think you might do things such as, through a listener, pick the emission_rate and size nodes as they are parsed, and pick some extra parameters to apply the changes yourself. For instance, adding this line
Code: Select all
emission_rate 40 camera_distance_bound 1.5
might mean that, when the camera is at 1 unit of distance, the emission rate is 40, but decreases exponentially with distance with a factor of 1.5. Is that fine for your purposes? I don't really see practical to officially extend Ogre's scripts without the core Ogre adding the changes. However, the flexibility of this compiler really allows some neat customisation