Adding water to TGE 1.4
by Michael Vanderpool · in Torque Game Engine · 01/07/2006 (9:48 am) · 8 replies
How would i go about adding water to Any map in torque? I try to put water in, but with no success. i goto the world creator, mission, enviro, and add water... it says its in, in the inspector, but not in the map...i cant even find the instance of it.....something im doing wrong maybe?
#2
01/07/2006 (12:50 pm)
Can you possibly tell me what they might be?
#3
And add this...
Load up your game and you should see it (just move it to where you want it)
Or just copy the texture details over...
01/07/2006 (1:32 pm)
Open your .mis mission file (located in starter.fps\data\missions)And add this...
new WaterBlock(Water) {
position = "-1024 -1024 0";
rotation = "1 0 0 0";
scale = "2048 2048 200";
UseDepthMask = "1";
surfaceTexture = "~/data/water/water";
ShoreTexture = "~/data/water/wateredge";
envMapOverTexture = "~/data/skies/day_0007";
envMapUnderTexture = "~/data/terrains/grassland/sand";
specularMaskTex = "~/data/water/specmask";
liquidType = "OceanWater";
density = "1";
viscosity = "15";
waveMagnitude = "1";
surfaceOpacity = "0.75";
envMapIntensity = "0.1";
TessSurface = "50";
TessShore = "60";
SurfaceParallax = "0.2";
FlowAngle = "240";
FlowRate = "0.1";
DistortGridScale = "0.1";
DistortMag = "0.02";
DistortTime = "0.5";
ShoreDepth = "6";
DepthGradient = "1";
MinAlpha = "0.1";
MaxAlpha = "1";
removeWetEdges = "0";
specularColor = "0.000000 0.100000 0.200000 1.000000";
specularPower = "20";
envMapTexture = "~/data/skies/day_0007";
};Load up your game and you should see it (just move it to where you want it)
Or just copy the texture details over...
#4
01/07/2006 (4:17 pm)
Ill try that out, thanks
#5
01/07/2006 (8:02 pm)
Hehe, thanks. it worked out
#6
01/07/2006 (8:51 pm)
As a general rule when I am creating a waterblock in the mission editor, I have to manually modify the position and scale values to increase the size of the water and to place it somewhere near the center of the mission. Otherwise, the water starts out the size of a large swimming pool thousands of units from the mission center.
#7
01/08/2006 (7:50 am)
Hehe, kinda sucks, but it works....
#8
Torque SDK Private Forums
Topic: Water Michael Prewer
02/15/2006 (4:54 pm)
See the thread below there is a fix so you can modifty the water in the editor.Torque SDK Private Forums
Topic: Water Michael Prewer
Associate Joseph Euan