Game Development Community

Liquid engine ....

by Michael Schaumburg · in Torque Game Engine · 12/12/2002 (9:05 am) · 20 replies

Is there a trick to get floating river water ?? I was trying all the settings in the mission editor but nothing happens to the water. All what's happen is that the water block makes a short twitch when I'm pushing the apply button, nothing else.

#1
12/12/2002 (10:59 am)
Michael,

Do you mean that the surface flow option is not working? I fixed this in the [HEAD] release and I'm sure I updated the code in the resources section but now I'm not so sure.

Is this your problem?

- Melv.
#2
12/12/2002 (11:37 am)
Hi Melv, I will post you all the settings I have on a waterblock, thinking that this water should move:

Fluid
River Water
15
15
Surface
1
0.8
0.1
15
22
0.5
Movement
-5
0.2
0.5
0.05
10.5
Depth Fx
15
1
0.03
1

There is no movement in the water....
#3
12/12/2002 (11:59 am)
Michael,

It's probably more important to determine when/where you got the code as this bug *was* resolve a little while ago. Is it from the latest [HEAD] or is it from something like Release_1_1_2 with the fluid engine resource added?

- Melv.
#4
12/12/2002 (12:09 pm)
Melv, I'm using the latest HEAD....
#5
12/12/2002 (1:42 pm)
Michael,

Could you send me the object from your mission file so that I can see the values in the fields directly?

Thanks,

- Melv.
#6
12/12/2002 (1:50 pm)
have you tried changing flow control and flow directions ...i think they are under dynamic feilds

EDIT: actually i think its flow speed and flow direction.

you want river water that flows downstream right?

Oh and Melv ...are there any extensive docs on all the different waterblock values and what they do and if they work?
#7
12/12/2002 (2:10 pm)
Any dynamic fields are nothing to do with the waterBlock or are obsolete ones left over from a previous version perhaps.

The 'documentation' is within the zip file if you download it from the resource section.

Hope this helps,

- Melv.
#8
12/12/2002 (2:27 pm)
Well it may not be under dynamic feilds but i know its in there cuz i was playing with flow control about an hour and a half ago..im at work now so i cant check it out :OP

EDIT: checked out the Docs melv ..answers alot of questions..thx.

Sorry if i sound kinda snotty but im at work so posts have to be short and to the point.
#9
12/12/2002 (10:44 pm)
No problem whatsoever.

Just glad I could help. :)

- Melv.
#10
12/13/2002 (10:38 am)
Melv, is your e-mail address actual?? Cause I was asking you something, so how I can sent you only the waterblock ?
#11
12/13/2002 (11:11 am)
Michael,

Yes, the email was received this morning and I've just sat down on my this evening to read my emails.

I'm on GMT +0, not checked where you are, so there might be a delay between question and answer.

In answer though, if you've put your waterBlock into the mission then simply send me the waterBlock entry from the mission file (.mis) so that I can see your settings, that's all.

- Melv.
#12
12/16/2002 (4:17 am)
Melv, did you find something wrong on my waterblock I sent you ??
#13
12/16/2002 (4:24 am)
Michael,

I'm afraid I've been busy of late but I have sent myself a reminder email to look at it this evening for you.

Sorry for the delay.

- Melv.
#14
12/16/2002 (7:13 am)
No Problem Melv, I have to solve so many other things....
#15
12/18/2002 (6:17 am)
Melv, sorry when I ask again, is may waterblock moving on your engine ??
#16
12/18/2002 (11:09 am)
Michael,

I'll look at this right now for you.

Been a little busy.

- Melv.
#17
12/18/2002 (11:20 am)
Michael,

I've just pasted your waterBlock object into a test level and the surface moves.

The only thing I can think of is that you have an old copy of the waterBlock. You might want to check that your file versions have actually being updated. If you are downloading a new [HEAD] version from scratch then I'm stumped as that's what I've got here.

The surface movement stuff is pretty simple, there's not much code to it. Not sure what's going wrong here.

- Melv.
#18
12/18/2002 (12:53 pm)
Melv, I was getting my HEAD on the 23 of November. This is my CVS entries file from the engine/terrain directory:

/blender.cc/1.8/Mon Jul 08 23:56:24 2002//THEAD
/blender.h/1.5/Mon Jul 08 23:56:24 2002//THEAD
/blender_asm.asm/1.1/Tue Apr 09 05:42:35 2002//THEAD
/bvQuadTree.cc/1.3/Sat Oct 06 23:35:14 2001//THEAD
/bvQuadTree.h/1.4/Sat Oct 06 23:35:14 2001//THEAD
/fluid.h/1.6/Sat Nov 23 20:09:49 2002//THEAD
/fluidQuadTree.cc/1.4/Sat Nov 23 20:09:49 2002//THEAD
/fluidRender.cc/1.5/Sat Nov 23 20:09:49 2002//THEAD
/fluidSupport.cc/1.4/Sat Nov 23 20:09:50 2002//THEAD
/sky.cc/1.16/Sat Nov 23 20:09:50 2002//THEAD
/sky.h/1.5/Sat Nov 23 20:09:50 2002//THEAD
/sun.cc/1.5/Sat Nov 23 20:09:50 2002//THEAD
/sun.h/1.3/Sat Oct 06 23:35:14 2001//THEAD
/terrCollision.cc/1.3/Sat Oct 06 23:35:14 2001//THEAD
/terrData.cc/1.22/Result of merge//THEAD
/terrData.h/1.3/dummy timestamp from new-entry//THEAD
/terrLighting.cc/1.5/Sat Nov 23 20:09:52 2002//THEAD
/terrRender.cc/1.16/Mon Jul 08 23:56:24 2002//THEAD
/terrRender.h/1.7/Tue May 21 18:26:47 2002//THEAD
/terrRender2.cc/1.4/Sat Oct 06 23:35:14 2001//THEAD
/waterBlock.cc/1.7/Sat Nov 23 20:09:53 2002//THEAD
/waterBlock.h/1.5/Sat Nov 23 20:09:53 2002//THEAD

So I think I have the right version.Any ideas where I can look ??
#19
12/18/2002 (1:03 pm)
Melv, sorry for all the work I made to you, for some reasons some files where write protected. I simple was going into the explorer and changed the flag for all the files in the engine directory and now my water is moving. Is that normal if you get a new version with CVS that some files are write protected?? Until this time I didn't noticed any problems with this.

Many thanks, Michael
#20
12/18/2002 (1:08 pm)
No problem,

The only reason I can think of is that when you checked out the files you had the "Checkout read only" option ticked in the 'Checkout Module' / 'Globals' tab in WinCVS.

I always turn this off.

- Melv.