Game Development Community

Awol Water

by James Bond · in Torque Game Engine Advanced · 02/20/2007 (8:31 am) · 4 replies

I am having a problem with water. I set up a new mission. Then added a water block. Unfortunatly the water seems to just disapear when i view it from certain angles. but re appears when I turn back. Is there a work around for this?

#1
02/20/2007 (12:03 pm)
Yes I had this problem, In the water rendering code there used to be something, it was commented out like so:
// Why is this here??? -- some name

Anyways its needs to be uncommented

Im trying to find the code, ill let you know
#2
02/20/2007 (12:24 pm)
Ok thanks that would be great.
#3
02/20/2007 (12:31 pm)
Ah ha got it:
WaterBlock::onAdd()

change
resetWorldBox();
    addToScene();

to
resetWorldBox();
    if(!mRemoveWetEdges)
    {
       setGlobalBounds();
    }
    addToScene();

Works for me
#4
02/20/2007 (12:34 pm)
*Obviously that doesnt work in TGEA but it does in TGE, just to set you on the right track