Terrain texturing without blending
by Vijay · in Artist Corner · 01/05/2005 (7:51 pm) · 6 replies
Is there a way to apply textures to parts of the terrain so that the new texture replaces entirely the existing texture, if any? I have a standard terrain and when I try to create a road with some kind of a cement texture, the cement texture seems to be blended with whatever is currently there. I can't seem to avoid it.
Thanks in advance.
Thanks in advance.
#2
01/08/2005 (12:13 pm)
Thanks for the reply Ted. May be I'm doing something wrong. Even when I use a hard brush, it looks like the entire area I'm painting seems to be getting blended. Just to be sure I created a white color texture and when I paint it on the terrain, the area doesn't just look plain white. It seems as though it's some kind of rough surface.
#3
01/08/2005 (12:19 pm)
That could be the terrain detail, which is not a texture, but just the detail map under the texture.
#4
In addition, the engine does keep track of multiple textures of the terrain, and blends them in terrData.cc based on the relative weights of the textures assigned during your editing. It can be tedious, but you can drive the weight of your "new" texture to the top by repeating the terrain painting over and over again--or, you could re-write the blending functionality of the terrain renderer to only use one texture, and set it accordingly in the editor scripts/code.
Obviously, unless you make it specific to your "roads", this is going to cause some serious changes to how the rest of your terrain looks.
01/08/2005 (12:28 pm)
What Willbkool said is probably a factor, you most likely have a detail texture getting added in to the mix.In addition, the engine does keep track of multiple textures of the terrain, and blends them in terrData.cc based on the relative weights of the textures assigned during your editing. It can be tedious, but you can drive the weight of your "new" texture to the top by repeating the terrain painting over and over again--or, you could re-write the blending functionality of the terrain renderer to only use one texture, and set it accordingly in the editor scripts/code.
Obviously, unless you make it specific to your "roads", this is going to cause some serious changes to how the rest of your terrain looks.
#5
01/08/2005 (9:42 pm)
Why not create a dif of the cement roadways ? like Timothy Aste's pack, have different sections of it to peice together.
#6
There is a way to do what you want to by combining what's been said. I have it working in game code (as opposed to the editor). Look at the PaintTexture code in the editor. If you make sure you use a hard brush (which makes the edges not blend to the next texture from what I can tell) and you set your cement texture's alpha value to 255 then let it run the code that "levels" the others that will get you what you want.
Sorry, can't be of more help right now don't have access to my devlopment PC at the moment. If you don't solve this let me know and I can help.
01/09/2005 (4:43 pm)
@VijayThere is a way to do what you want to by combining what's been said. I have it working in game code (as opposed to the editor). Look at the PaintTexture code in the editor. If you make sure you use a hard brush (which makes the edges not blend to the next texture from what I can tell) and you set your cement texture's alpha value to 255 then let it run the code that "levels" the others that will get you what you want.
Sorry, can't be of more help right now don't have access to my devlopment PC at the moment. If you don't solve this let me know and I can help.
Torque 3D Owner Ted Southard