www.jpct.net
jPCT - a 3d engine for Java => Support => Topic started by: fireside on October 10, 2010, 09:22:08 pm
-
I was wondering how you put decals on terrain surfaces. Is it a textured quad put just above that has transparency?
-
At least that's what i use to do.
-
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.
-
If you are coming close, you might run into z-fighting trouble. There's no real way around this.
-
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.
-
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.
-
OK, I'll give it some more thought, then.