Game Development Community

Added enhanced water engine into [HEAD]

by Melv May · in Torque Game Engine · 11/23/2002 (8:17 am) · 15 replies

As the title says, I've finally got around to adding some of my updates into the HEAD codebase.

The new water engine is in and I've updated the missions to take advantage of the new code. I've also made the racing mod more fun by adding a small water obstacle.

I will add the others soon as I get the time.

- Melv.

#1
11/23/2002 (4:05 pm)
NICE! I've been waiting so long for this. That water engine is great work. Thanks, Melv.
#2
11/23/2002 (4:34 pm)
Whee!

I am about to merge our codebase with the HEAD... you picked a great time to be doing this...

Again, love your stuff Melv... so will our adoring public in a few years time :)

-J
#3
11/23/2002 (10:49 pm)
Melv, found a little bug. The water jitters instead of flowing in the torque demo.

Happens on any map, and I've d/ld a fresh head version in order to see if its something on my side. ( No dice)
#4
11/24/2002 (3:31 am)
@Joshua: I'll be putting the replicator stuff in later today.

@Bryan: Strange, did you manage to pick up the following change from the CVS? If so, then could you describe the problem a little more for me?

Change #: 3082 
Committed by: Melv May 
Date: 2002/11/23 17:46:13 

Description:

- Fixed bug reported by 'Kirby Frugia' where the fluid-flow would accelerate over time.
- Modified Mission that showed fluid flow.

Modified Files:

torque/engine/terrain/fluid.h (1.6)
torque/engine/terrain/fluidRender.cc (1.5)

- Melv.
#5
11/24/2002 (5:40 am)
Bryan,

Found the problem. I will rectify this asap.

Thanks for the heads-up.

- Melv.
#6
11/24/2002 (6:06 am)
Bug :

The fxSunLight object seems to make chunks of the water dissapear revealing the terrain underneath.

Only happens when you are facing towards an fxSunLight object.
#7
11/24/2002 (6:19 am)
Fixed fluid-flow problem and updated to [HEAD].

@Stuart: Darn it, not another problem. ;) Okay, I've not seen this myself, could you perhaps email me a screenshot of this? Not sure how the two can interact, seems impossible to me but stranger things have happened before.

- Melv.
#9
11/24/2002 (6:59 am)
Stuart,

If you keep the image on the screen and you disable the fxSunLight, does the missing water appear again?

Or perhaps is it simply an isolated water problem? By isolated I mean localised to the water itself.

- Melv.
#10
11/24/2002 (7:49 am)
Melv,

As the fxsunlight was "rotating", the gap in the water increased, and after a while started decreasing (aka Reaches a size, then shrinks, the grows again)

Removing the fxsunlight object seems to make the problem go away.
#11
11/24/2002 (8:08 am)
Stuart,

Okay, I'll see if I can duplicate it on my side. I'll get back to you asap.

- Melv.
#12
11/24/2002 (8:25 am)
Stuart,

I believe I've found the problem, can't believe it's been missed for so long!

The problem was that since the fxSunLight object started using two SceneRenderImage updates the disabling of depth-buffer writing has been removed for some reason.

This would only cause a problem when rendering the rear (remote) sun billboard and having *anything* attempt to render in-front of it. It should, of course, simply render like a sky-box with no depth-writing.

Anyway, I've made the appropriate adjustments and uploaded to the [HEAD]. It should be available fairly shortly.

- Melv.
#13
11/24/2002 (8:32 am)
Thanks melv! =)
#14
11/24/2002 (1:22 pm)
Go Melv!

Burn Baby Burn...

:)

-J
#15
11/24/2002 (9:49 pm)
He he, almost forgot. :) Thanks for making my life easier. :)