Game Development Community

Water

by Fucifer · in Torque Game Engine · 02/01/2006 (6:26 pm) · 7 replies

This what get when add a water block to the mission TGE 1.4. It look like there is no water block. I can not edit the properties in window inspector. I try the same in TGE 1.2 and everything work fine.

#1
02/02/2006 (5:57 am)
Do you see the coordinate's axes at least?
#2
02/02/2006 (7:41 am)
I see nothing, It is like there is nothing there. The axes does not appear or texture.
#3
02/02/2006 (7:42 am)
You said you can't edit the properties in the inspector window, but you can see the water block listed in there?
#4
02/02/2006 (11:15 am)
Waterblocks in 1.4 aren't selectable in the viewport. You can only select them using the treeview, and you must use the inspector to change it's height. Also, I can't find a way to make it not loop infinitely, making it impossible to create a small pool on top of a high area, as example.
#5
02/02/2006 (12:24 pm)
I have try everything that was post here, I still get no water. I used the inspector and appy the changes but nothing happen. I look at all the forums and doc. I have no idea what going on. I wish I could show a pic.
#6
02/02/2006 (5:28 pm)
Go into terrain\waterBlock.cc and find bool WaterBlock::onAdd(). Scroll down to the bottom of the function and comment out or delete:

if(!mRemoveWetEdges)
    {
       setGlobalBounds();
    }

Recompile and you should be able to manipulate the waterblocks in the Mission Editor again. This fix will be in TGE 1.4.1 =)
#7
02/03/2006 (1:50 pm)
Thanks Matt Fairfax, It work perfectly. Job well done. I have water now. Thank so much for your help.