multiple textures

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
gavicus
Posts: 16
Joined: Fri Aug 25, 2006 2:19 pm

multiple textures

Post 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?
sgt_pinky
Posts: 149
Joined: Sat Oct 14, 2006 11:20 am
Location: Melbourne, Australia

Post 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.
Intellectuals solve problems - geniuses prevent them. -- Einstein
#irrlicht on irc.freenode.net
omar shaaban
Posts: 616
Joined: Wed Nov 01, 2006 6:26 pm
Location: Cairo,Egypt
Contact:

Post by omar shaaban »

:) well i think u mean tilebased 3d games right?
omaremad
Competition winner
Posts: 1027
Joined: Fri Jul 15, 2005 11:30 pm
Location: Cairo,Egypt

Post 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)
"Irrlicht is obese"

If you want modern rendering techniques learn how to make them or go to the engine next door =p
Post Reply