Game Development Community

Need help with water

by Tom Biagioni · in Torque Game Engine · 01/23/2009 (10:17 am) · 7 replies

Ive done some searches, and i couldnt find any solutions for my problem. IM trying to add watere to my terrain in the editor. Ive got the water block set up, but i cant seem to figure out how to place the water intot he mission. Theres no water object on the map that i can grab and drag either.

What exactly is the process of adding water?

#1
01/23/2009 (12:44 pm)
Take a look at the stronghold mission file (I believe it's stronghold.mis in your data/missions directory). You can use any text editor to edit the file. In it you will see a good example of how to setup your waterblock.

You can either add the waterblock directly to your .mis file (with a text editor), or through the world creator. In the creator, there is an environment section that 'water' is under. Same place as the foliage replicators I believe.
#2
01/23/2009 (1:35 pm)
I saw the replicators, and i created some nice tree bilboards with them. Now when i do the same thing with the "water" under the environment section, i see no water on my map. I have textures loaded and everything, i just cant get the water to show up anywhere.

Im using the demo btw.
#3
01/23/2009 (1:42 pm)
I would double check your path names. If you still can't get it to work.. Open up the stronghold.mis file and copy the water datablock to your .mis file. Then run the demo, enter your mission, and enter the world inspector. The waterblock will be there. From here, you can modify the waterblock to suit your needs. GL!
#4
01/23/2009 (1:46 pm)
Thanks :) well ill give those ideas a shot. I wish there was an easier way lol. Slowly but surely im gettin the hang of this engine.
#5
01/23/2009 (5:05 pm)
Try this: Add your Waterblock through the Mission Editor. Save. Reload.... and hopefully that should work -- that's how it works for me anyway.

Once I reload the map after placing water I have no problems with seeing or adjusting it.
#6
01/23/2009 (7:44 pm)
Look closely. The waterblock by default comes out really small and way off to the side. (and sometimes under your terrain.) I find it easier to click on my waterblock (in the inspector) after placing it in game and then looking for the xyz marker.
#7
01/26/2009 (8:54 am)
thanks guys i got it :) I just cant figure out how to swim in it now.