Water disapears
by Mike Kloeppner · in Torque Game Engine · 03/18/2008 (1:28 pm) · 8 replies
Anyone every have thier waterBlock disapear and reappear depending on the angle your looking at it?
Any work-arounds, solutions?
Any work-arounds, solutions?
#2
03/21/2008 (2:58 pm)
I have seen this bug on GF8800GT, but on GF8600GT works fine. Same drivers/directx/binaries/mission and graphics/video settings. Haven't figured out yet what causing this.
#3
03/21/2008 (4:09 pm)
I have a GEFORCE GO 7700. my machine is a Asus Gaming series laptop. also running Vista 32-bit
#4
This may not be the same bug you're experiencing, but on the off chance it is, I tracked it down to a line in waterBlock.cc. In WaterBlock::onAdd, the following is commented out:
I changed this to
Although just uncommenting the original would probably have worked too, since all our water blocks have RemoveWetEdges false, but it makes more sense to me that you set infinite collisions/bounds on tiled terrain.
03/22/2008 (4:48 am)
I've noticed with tiling water blocks, that once you move to a certain distance (possibly onto the next tile?) and look at certain angles the water block stops rendering. This may not be the same bug you're experiencing, but on the off chance it is, I tracked it down to a line in waterBlock.cc. In WaterBlock::onAdd, the following is commented out:
// MDF: why?
//if(!mRemoveWetEdges)
//{
// setGlobalBounds();
//}I changed this to
if (mTile)
setGlobalBounds();Although just uncommenting the original would probably have worked too, since all our water blocks have RemoveWetEdges false, but it makes more sense to me that you set infinite collisions/bounds on tiled terrain.
#5
As far as I understand this is about another bug. Let me describe what is happening in one of our missions:
Only 1 terrain tile used (non-tiled) and 1 water block used to cover whole terrain block (non-tiled). The terrain made in a such way, so there is a "river" and "lake".
At same places when you go down deep into water the water stops rendering above you (does not matter where you are looking at).
I've done some tests on GT8800GT machine and found the following:
Water stops rendering at different "depth". For example I have waterblock starting from 150 and down to 50 meters (at deepest places). In one place the water stops rendering when I'm near bottom at 125 (shallow places), but if I move to another place it's still rendered at 100 near river bottom.
In the center of "lake", the water stops rendering at about 130 meters (20 m below water level), but if I move closer to the lake borders, I can go deeply and still see the water at 100 (50m below water level).
Weird.
03/22/2008 (4:57 am)
Gary: you are talking about another "bug" and it has been addressed somewhere on TGE forums already.As far as I understand this is about another bug. Let me describe what is happening in one of our missions:
Only 1 terrain tile used (non-tiled) and 1 water block used to cover whole terrain block (non-tiled). The terrain made in a such way, so there is a "river" and "lake".
At same places when you go down deep into water the water stops rendering above you (does not matter where you are looking at).
I've done some tests on GT8800GT machine and found the following:
Water stops rendering at different "depth". For example I have waterblock starting from 150 and down to 50 meters (at deepest places). In one place the water stops rendering when I'm near bottom at 125 (shallow places), but if I move to another place it's still rendered at 100 near river bottom.
In the center of "lake", the water stops rendering at about 130 meters (20 m below water level), but if I move closer to the lake borders, I can go deeply and still see the water at 100 (50m below water level).
Weird.
#6
I haven't noticed any rendering problems based on depth here, which is on a GF6800gs. Sorry I can't be of any more help.
03/22/2008 (11:07 am)
Yes that sounds different to the bug I had here. I haven't noticed any rendering problems based on depth here, which is on a GF6800gs. Sorry I can't be of any more help.
#7
03/22/2008 (11:42 am)
I had that happen when the edge of the water block was outside the terrain block. I found a post once talking about it, and when I placed terrain around the edge of the water, the disapearing effect went away.
#8
-mike
03/22/2008 (7:19 pm)
Yep, that seems to have solved the problem Gary. Thanks you guys for the RE :)-mike
Associate David Montgomery-Blake
David MontgomeryBlake