Page 1 of 1

Maxwell Sea tiles and caustics

Posted: Tue Oct 17, 2017 6:57 pm
by Wynott
I am getting an interruption in the caustic effect on the sea bed at the intersections between maxwell sea tiles.

I'm using a bump map to generate the caustics. The bump is 10cm tiles. The sea tiles are 100m.

Is this a known issue? Or am I doing something wrong?

See link for low SL render showing early signs, and then in the lower right corner a fully-rendered image, which clearly shows the sharp break.

https://drive.google.com/file/d/0B-YR1O ... N1cE0/view

Re: Maxwell Sea tiles and caustics

Posted: Wed Oct 18, 2017 1:35 pm
by seghier
did you try without bump map ? and to avoid tiles you need a large bump image

Re: Maxwell Sea tiles and caustics

Posted: Wed Oct 18, 2017 5:05 pm
by Wynott
With the bump map disabled, there is no caustic effect.

The bump map tiling is not the issue, it's the coincident edges of the maxwell sea tiles.

Re: Maxwell Sea tiles and caustics

Posted: Wed Oct 18, 2017 6:15 pm
by Mihai
Upload a scene with the sea setup and bump texture you're using.

Re: Maxwell Sea tiles and caustics

Posted: Thu Oct 19, 2017 12:23 am
by seghier
Wynott wrote:
Wed Oct 18, 2017 5:05 pm
With the bump map disabled, there is no caustic effect.

The bump map tiling is not the issue, it's the coincident edges of the maxwell sea tiles.
it is a problem with maxwell sea itself when you use repeat U/V with bump or without it

Re: Maxwell Sea tiles and caustics

Posted: Thu Oct 19, 2017 4:41 am
by Wynott
It's taken me a huge amount of time to achieve this effect. Not really interested in giving away my file on the forum.

Just looking for confirmation from NL that this is a technical problem with Maxwell before I give up on it.

Re: Maxwell Sea tiles and caustics

Posted: Mon Oct 23, 2017 4:52 pm
by Mihai
I see that there is really a problem with caustics and tiling the Maxwell Sea, and it's a bug. It's in this case the caustics disappear, not because of using or not a bump map. The caustics will come mostly from the fact that the sea surface itself is perturbed, not because of a bump map. But the caustics disappear as soon as you turn on tiling on the sea surface.

A solution would be to just make the sea surface bigger, and increase its resolution. Together with a bump map it should provide enough detail.

But a second issue for you is I see you're rendering to SL 25 to get caustics seen through the sea surface which is not very productive. Rendering to SL 25 is sort of an experimental art form....

There is a much faster way, in which you render twice - one Diffuse only, another Reflections + Refractions (you find this setting in the Render options, next to the "Render" checkbox in the channels section). The procedure:

- hide to camera the sea surface and render a diffuse only render (this will also include the caustics actually, and they will be very clean even by SL 13 or so). Example (only SL 12, no bump map was used):

Image

- second render, make visible to camera again the sea surface, and render a Reflections + Refractions render. This will give you reflections and refractions only, example:

Image

You save both these renders as 32bit, in either PSD or EXR formats.

You open both in Photoshop and you put the refl+refr render on top of the diffuse render and set it to Linear blending mode. Example:

Image

Compared to rendering all at once where you have to wait an insane amount of time to start seeing the caustics through the surface:

Image

As you can see the reflections on the sphere look identical. The same with the reflection of the sphere falling on the water, but hard to see in this case.

So here you have reflections+refractions on the sea surface and on your boat, and clear caustics at a much lower SL. In case you haven't seen my video tutorial about creating different sea surfaces, including smaller waves:
http://www.maxwellzone.com/tutorials/ho ... xwell-sea/

Re: Maxwell Sea tiles and caustics

Posted: Mon Oct 23, 2017 5:46 pm
by Forum Moderator
Very inventive Mihai! Nice trick! :D

Cheers!

Re: Maxwell Sea tiles and caustics

Posted: Wed Oct 25, 2017 1:47 am
by Mihai
I thought it was common knowledge :) Btw, I noticed when doing a network render that Refl+Refr pass doesn't seem to work (at least not when requesting a preview). It renders like a diffuse only. Can you confirm that?

Re: Maxwell Sea tiles and caustics

Posted: Thu Oct 26, 2017 8:31 pm
by seghier
you can avoid this tiles even you use repeat U/V:
for example if you apply a water material to the sea with ref/index = 1.33 you need to use a water material with ref/index = 1.34 as backface material or vice versa
sea >> (water material ref/index= 1.33 / backface water material ref/index = 1.34) or (water material ref/index= 1.34 / backface water material ref/index = 1.33)