texturing with vertex colors

markuss

18-06-2006 12:45:51

I tried to texture a landscape with a blend material using vertex colors but it didnt work in ogre. The Material uses 2 standard materials with 2 different textures and a mask material with the objects vertex color. With the 3dsmax renderer everything works but neither the blend material itself nor the evaluated blend material worked.

http://img213.imageshack.us/img213/9919 ... lor0dx.jpg

I also tried to apply the vertex color modifier to a map channel instead of the vertex color channel but i couldnt get it to work. =/

Lioric

18-06-2006 19:36:00

This thread might help you with your issue

http://www.ogre3d.org/phpBB2addons/viewtopic.php?t=1068&highlight=vertex+color+colour

markuss

19-06-2006 14:47:37

thanks, blending 2 textures works now, with a third pass even shaded, but theres still something that bugs me. when using the alpha channel, its only possible to blend 2 textures but for landscapes i thougt about using some more textures for stones, dirt, gras, etc. is it somehow possible to blend >2 textures together with one single material or should i create more materials for blendings between gras and stone, gras and dirt, gras and others and use all those materials on this one landscape mesh?

Lioric

19-06-2006 16:41:39

You can use shaders and an elevation map to blend several textures depending on the terrain height in a single pass