Page 1 of 1

multiple textures

Posted: Thu Nov 02, 2006 3:42 pm
by gavicus
I am trying to come up with a way to highlight certain areas of a world object. Say you're walking around on a contour map, and suddenly you want to know how far you can reach or walk in one turn. So, a circular (or some shape) area of the ground beneath your feet is highlighted.

Looking at the API, my first thought is to add a texture of type EMT_TRANSPARENT_ADD_COLOR to the node's material channel 1. The problem I get here is that I want to be able to apply multiple highlights (say your buddy also wants to know how far he can reach), perhaps of different colors, etc. and it looks like there are only two material channels.

Any recommendations?

Posted: Fri Nov 03, 2006 12:58 am
by sgt_pinky
How about decals - a projected textured surface that sits above the normal surface, either geometrically, or using Depth Bias or Slope Scale Depth Bias.

If your ground is planar, applying decals is trivial.

Posted: Fri Nov 03, 2006 7:03 pm
by omar shaaban
:) well i think u mean tilebased 3d games right?

Posted: Fri Nov 03, 2006 7:36 pm
by omaremad
yeah i think he wants to project player markers on the ground, the markers being textures, its allot harder to do this by using textures on the old mesh just add new meshes (ground aligned polygons)