Page 1 of 1

Water heights and gouraud.dat

PostPosted: 22 Jun 2009, 16:33
by harold
I bet the data is in there
For the other types of tiles it would also be nice, but not critical (multiplying by signed steepness works fine)

Anyway, does anyone know more about this format?
At a glance I'd say it has something to do with 256-byte blocks but it just looks like a bunch of bytes to me..
I will keep trying to make sense of this, but if someone already knows something about it then I'm sure I can figure it out faster.

PostPosted: 22 Jun 2009, 21:38
by Krom
Water heights?? I guess you talking about sand seen through water? It's calculated from water height, while water is always nearly flat.

Gouraud looks like lighting remap for palettes..

PostPosted: 22 Jun 2009, 22:06
by harold
remap for palettes
Good that is exactly what I need :)
Thanks for confirming that.

I am indeed talking about the sand seen through the water, and sadly there is just no way to compute that other than using the original shading (which I bet is in gouraud.dat)

So... I will play with this some more, when I have time (have some deadlines coming up.. might take a while before I get this working)

PostPosted: 23 Jun 2009, 07:56
by Krom
It's just a guess really, I did not looked deep into that DAT.. It's also named after shading model - http://en.wikipedia.org/wiki/Gouraud_shading

As for sand under water - I have an idea in neighbour topic :wink:
In short: Render sand instead of water and add flat water layer on top.