Terrain Question

Blitz3D Forums/Blitz3D Programming/Terrain Question

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I have a Terrain lighting problem:

I've textured my terrain with 2 colormaps, rock and grass-
EntityTexture Terr\hent,hrock,0,0
EntityTexture Terr\hent,hgrass,0,1
TextureBlend Terr\hrock,1 ; normal
TextureBlend Terr\hgrass,2 ; multiply
- which gives me just the effect I want, grass broken by a gentle 'veining' from the rock.

Now I find that both -
EntityColor Terr\hent, r,g,b
and TerrainShading Terr\hent, True
- have _no_ effect at all, unless I use TextureBlend Terr\hrock,0 (rock switched off).

I thought maybe layer 0 was used by Blitz for shading and RGB, so I moved my textures to layers 1 and 2 instead.
But there was no difference.
I also tried EntityFX Terr\hent,2 (use vertex colors instead of brush color), but with no difference.

Does anyone know why EntityColor and TerrainShading do not work when you have blended textures on a Terrain?