Game Development Community

Water repeating with holes in it when terrain size <> 8?

by Thomas \"Man of Ice\" Lund · in Torque Game Engine · 04/07/2004 (8:00 am) · 7 replies

Yesterday I created a new level for my game, and to gain more fine grained control over the terrain, I set the
squareSize = "4";

I then modelled the terrain as an island with a 2048x2048x200 scaled water block and to my horror I discovered that the water has a huge hole in it. This does not show if the terrain square size is 8 (at least I never seen that before).

Check screenshot:

www.codejar.com/waterbug.jpg
The area that disappears in the water changes with me modelling the island. The more "land above waterline" I make, the larger the hole.

When I move the water, the texture is moved but the hole stays at its place. Raising and lowering the water reveals that the water thinks there really is a terrain there.

My best guess is that there is some bug with squaresizes and the water code, but I have no real clue on what could be causing this. Is this known behaviour or a bug?

#1
04/07/2004 (11:18 am)
Yes. It is a bug. The fluid code can't handle squaresizes that aren't eight. Best of luck fixing. I started messing with it (not as part of my job) and quickly grew angry and resentful towards the fluid renderer.
#2
04/07/2004 (11:46 am)
OUCH - that was not the answer I hoped for........

Is there any workaround for this? I am in deep sh*t if not.
#3
04/07/2004 (12:45 pm)
Thomas,

Try turning off my shoreline support because that definately doesn't support other blocksizes although it should via the calls I use. Failing that, it is indeed another problem with the core fluid code.

I'm sure you'll be seeing a rewrite of the fluid code sooner or later. ;)

- Melv.
#4
04/07/2004 (2:04 pm)
Known bug. Lots of forum time spent discussing it last year, maybe there'll be something for you.
#5
04/27/2004 (12:36 pm)
I think this might help, but no promises. :)
#6
05/05/2004 (1:00 pm)
Eric you are my hero - thank you SO much for showing me that link. The changes work perfectly for me - all holes gone (patching up waterblock.h and .cc to read the block size from the terrain)
#7
05/06/2004 (9:27 am)
This patch is on my todo list to integrate.