Show error when adding a huge plane above plane terrain.
by Prodigy Andy · in Torque Game Engine · 12/28/2007 (6:00 pm) · 9 replies
I want to add a huge plane above plane terrain (The huge plane is just 5mm higher then terrain), but it was showed broken when camera was high.
high camera picture

low camera picture

Does anyone know how to avoid it?
Thanks.
high camera picture

low camera picture

Does anyone know how to avoid it?
Thanks.
#2
I tried follow your first solution, and it was really get better effect when I moved the plane object higher above the terrain.
But in fact , I want to use the huge plane object to replace the terrain texture. If I moved the plane higher, the player will find their foot disappeared. for the same reason, I think your second solution is not fit to my problem.
12/28/2007 (8:16 pm)
Thank you first. :)I tried follow your first solution, and it was really get better effect when I moved the plane object higher above the terrain.
But in fact , I want to use the huge plane object to replace the terrain texture. If I moved the plane higher, the player will find their foot disappeared. for the same reason, I think your second solution is not fit to my problem.
#3
Honestly, your best bet for that would be implementing the polysoup collision resource, so you would have as much flexibility in the terrain as possible. That's a somewhat involved task, if the comments to the resource are any indication.
The next best bet would be to use constructor to make a .DIF object for your plane and use that as the terrain replacement. You'll get good shadows and built-in collision, regardless of how high it is off the ground.
You won't get foot prints though, and I'm guessing you wouldn't with polysoup, either.
12/28/2007 (8:41 pm)
Ah, I see what you're trying to achieve. Honestly, your best bet for that would be implementing the polysoup collision resource, so you would have as much flexibility in the terrain as possible. That's a somewhat involved task, if the comments to the resource are any indication.
The next best bet would be to use constructor to make a .DIF object for your plane and use that as the terrain replacement. You'll get good shadows and built-in collision, regardless of how high it is off the ground.
You won't get foot prints though, and I'm guessing you wouldn't with polysoup, either.
#4
One question, what is polysoup mean? :)
I once made a .dif object, it's really good solution, but not for me.
Dif object will add the load of server for the collition detection.
12/28/2007 (10:18 pm)
Thank you, Don.One question, what is polysoup mean? :)
I once made a .dif object, it's really good solution, but not for me.
Dif object will add the load of server for the collition detection.
#5

It's a snap picture of war3. After a undead player build a building around his town, a black texture will spread automatic in the terrain.
Is there the same solution in TGE? Or at least let me solve my problem I met above.
12/28/2007 (10:44 pm)
It's a TGE Bug?
It's a snap picture of war3. After a undead player build a building around his town, a black texture will spread automatic in the terrain.
Is there the same solution in TGE? Or at least let me solve my problem I met above.
#6
12/29/2007 (12:16 am)
Couldn't you use a texture brush the way the editor does to color terrain? It would involved determining how the texture is changed in the editor, but could be a more flexible solution. There might be resources for this. In fact, I will have to look myself as I want something like that.
#7
Or there is some resources to brush terrain texture as my wish.
12/29/2007 (2:13 am)
Frank carney, the texture brush is limited to my project. I have tried it too.Or there is some resources to brush terrain texture as my wish.
#8
EDIT: Here's the link to the Polysoup resource. tdn.garagegames.com/wiki/Torque_Shader_Engine/PolySoupAddon
12/29/2007 (6:15 am)
Oh, I get what you're thinking of now. Unfortunately, I'm mainly an artist so my solutions aren't going to work for what you're after.EDIT: Here's the link to the Polysoup resource. tdn.garagegames.com/wiki/Torque_Shader_Engine/PolySoupAddon
Torque Owner Don Hogan
First, you can move the object up a little higher above the terrain. This might actually be a good test to see if it is in fact a z-buffer problem.
Second, you could try creating a hole in the terrain under your plane object so there's nothing there to cause sorting problems. This could be a little difficult to work with around the edges of the plane object.
Hopefully one of those will at least help you find the actual problem and possibly lead to a good solution.