More than 4 different splatting materials

caharim

30-04-2007 22:36:41

Can I use more different splatting materials? I like to change for example between 4-10 different gras materials, so there is no repetition of always the same texture.
Do I have to change this in the SceneManager itself or is it possible to add this onthefly?
Thanks for yout suggestions and ideas ;-)

Jon

12-05-2007 21:13:44

I have avoided this question since I don't feel capable of answering it properly. However I've found on occasion that it is quicker to have someone give incorrect information and then have the horde chime in with corrections...

It appears to me that PLSM's texturing is performed one texture per pass using a tile as the smallest renderable object. If you don't mind 4-10 passes by the GPU, the simplest approach is probably to extend the current splatting system: Add more passes to the materials and generate the additional alpha maps. It looks like the texture unit state setup will correctly handle as many passes as you want to cram in there.

Now if you don't want that many passes, things become complicated.