Main Menu

decals

Started by fireside, October 10, 2010, 09:22:08 PM

Previous topic - Next topic

fireside

I was wondering how you put decals on terrain surfaces.  Is it a textured quad put just above that has transparency?
click here->Fireside 7 Games<-

EgonOlsen

At least that's what i use to do.

fireside

#2
Is there a way to get it closer to the terrain and still render?  I can get it within 4.  I tried setSortOffset, but didn't get any change.  This wouldn't be for z, but y. It's something that needs to move around.  The terrain is just flat for now. 
click here->Fireside 7 Games<-

EgonOlsen

If you are coming close, you might run into z-fighting trouble. There's no real way around this.

fireside

#4
You sort of intimated that you do decals in a different way.  Would that work if the decal had to move around?  I was trying to do a turn marker but it looks a little like a hula hoop.  I could rescale everything, but I'd probably mess it up worse than I have already.
click here->Fireside 7 Games<-

EgonOlsen

When using the hardware renderer, projective textures might be an option. But to be honest, i would simply go with a textured quad on top of the ground. Should be possible to make this look pretty good.

fireside

OK, I'll give it some more thought, then.
click here->Fireside 7 Games<-