applying the colores to the terrain

prathap

23-09-2008 10:17:51

hi,
i need to apply the colore for the terrain when i click the mouse, instead of applying the textures,please tell me how can i achieve this.

CABAListic

23-09-2008 19:02:51

Colour painting is not supported by ETM, so you would have to implement it yourself. The key is to have a texture in the terrain material in a modulating pass and then edit that texture dynamically.

I would recommend downloading the ETL v3 source from SVN. It contains a class DynamicTexture which manages exactly that. You could use it as an inspiration.