Planetside Software Forums

Support => Terragen Support => Topic started by: bigben on January 16, 2007, 10:45:10 PM

Title: Water rendering issue (and workaround)
Post by: bigben on January 16, 2007, 10:45:10 PM
I've been trying to isolate a problem I've been having with stippling in shallow water.

Original render. Camera -> water distance = 100km
[attachthumb=#1]


Files temporarily available at: http://www.path.unimelb.edu.au/~bernardk/demo/new_zealand_test.zip (http://www.path.unimelb.edu.au/~bernardk/demo/new_zealand_test.zip) (6.7Mb)

I had thought that it was related to the distance between the camera and the surface of the water as it appeared to get better as I lowered the camera angle but I'm not convinced that this is the sole factor.

Camera -> water = 6km
[attachthumb=#2]

Camera -> water = 1km
[attachthumb=#3]

Camera -> water = 2m
[attachthumb=#4]
Title: Re: Water rendering issue
Post by: StickerSticker on January 17, 2007, 01:04:03 PM
Check out this weird one:
(http://img115.imageshack.us/img115/5140/thesunslf5.jpg)

I fixed it as soon as i changed some settings, musta been a fluke but it looks scary, lol.
Title: Re: Water rendering issue
Post by: bigben on January 17, 2007, 05:20:59 PM
Do you remember what settings you changed?
Title: Re: Water rendering issue
Post by: Oshyan on January 19, 2007, 12:47:09 AM
I believe you're correct about distance being a factor. As best I recall this is related to accuracy issues in the occlusion system, determining which surface is "on top". If you can increase the difference between the water height and the underlying surface this should be solved. Alternatively you could just use a water shader on the terrain rather than a lake object; that should avoid those errors since the surface itself is water shaded, rather than being a plane over another differently colored surface. However I may be mistaken in how you're doing this.

Please do update us if you continue to experiment with this and get new results. This is something we will fix for the final version at least.

- Oshyan
Title: Re: Water rendering issue
Post by: bigben on January 22, 2007, 08:23:32 PM
Thanks Oshyan

I tried this, but from the preview render it's not having the desired effect. I do get some extra reflection in the distance but the subsurface Here's my TGD (basic surfaces), the TER is in the original post above.
[attachurl=#1]

What I'm trying to do is to show the underwater terrain through the water (or at least get ready for it when we can adjust the transparency of water). TG0.9 comparison: http://www.ashundar.com/plug.php?e=coppermine&album=558 (http://www.ashundar.com/plug.php?e=coppermine&album=558)

I can wait for a fix. There's plenty of other stuff for me to learn  ;)
Title: Re: Water rendering issue (and workaround)
Post by: bigben on January 29, 2007, 07:40:53 PM
I knew this workaround when I had the problem but I was still learning. Here 'tis now. If the problem's related to the ratio between the camera to water distance vs. the water depth, then increase the water depth....

[attachthumb=#2]


... or use this clip file  ;)
[attachurl=#1]

For other terrains, I'll be using an image mask for the water distribution/displacement function which brings me to another water issue, but I'll start a new post for that one.
Title: Re: Water rendering issue (and workaround)
Post by: §ardine on January 29, 2007, 09:23:53 PM
Hey thanks for following up on this bigben!
I ran into this problem some time ago and your solution is getting me thinking again about that project.
No doubt this will prove helpful to others also.