Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] I need help! => Topic started by: nicolasZ on 2016-06-10, 14:07:46

Title: Corona 1.4 & Caustic
Post by: nicolasZ on 2016-06-10, 14:07:46
Hi guys,

I'm tring to render pool with caustic but it does works !
I read some theards about that and if I understand well experimental features like VCM or BIDIR are not any more on the 1.4 version.

So if you know how to achive this effect, please tell me how to do that.

Many thanks !!!
Title: Re: Corona 1.4 & Caustic
Post by: TomG on 2016-06-10, 14:24:49
For a pool, my thought would be to fake it by projecting the caustic pattern using a light - as an example in 3ds Max, add a spotlight, set to rectangular, open the Advanced Effects tab, drop a texture that represents the colours of swimming pool caustics (should be plenty of free ones out there on the web) into the Projector Map box, then to make setting it up easy I'd ensure the walls and floor of the pool are separate objects and use an Include / Exclude list under General Parameters so that the light only affected those.

Hope this helps!
Title: Re: Corona 1.4 & Caustic
Post by: PROH on 2016-06-10, 14:37:57
Hi. Theres a couple of threads in the forum about "fake" caustic, but if you're searching for textures, then here's a link to 8 animated sets of caustic:
http://www.dgp.toronto.edu/people/stam/reality/Research/PeriodicCaustics/index.html
Title: Re: Corona 1.4 & Caustic
Post by: cecofuli on 2016-06-10, 15:27:05
Unfortunately, Corona in Progressive isn't able to render Caustics. Only with PPM (Corona v1.4 - Experimental rollout)
But, PPM doesn't support A LOOOOT features of regular Corona (for example, Absorption). In fact, it's only an experimental engine.
We must to wait Ondra and a better caustics optimization for Progressive engine =(
You can render with PPM and mask the pool.

PS: these are real caustics, not a fake. And they are very fast!


(http://www.francescolegrenzi.com/Temp/Corona/0082_Caustics.jpg)
Title: Re: Corona 1.4 & Caustic
Post by: romullus on 2016-06-10, 16:15:21
I read some theards about that and if I understand well experimental features like VCM or BIDIR are not any more on the 1.4 version.

Those experimental engines wasn't removed, but hidden from casual users. You can find them in devel/debug rollout. But first you have to unhide debug rollout itself, you can do that in performance tab.

Also you may want to read some user guides about various approach at caustics:

https://forum.corona-renderer.com/index.php/topic,3093.0.html
https://forum.corona-renderer.com/index.php/topic,5431.0.html
https://forum.corona-renderer.com/index.php/topic,10343.0.html
https://forum.corona-renderer.com/index.php/topic,10779.0.html
https://forum.corona-renderer.com/index.php/topic,11630.0.html
Title: Re: Corona 1.4 & Caustic
Post by: cecofuli on 2016-06-10, 16:38:54
Yes romullus, but in the v1.4, we haven't this rollout.

(http://www.francescolegrenzi.com/Temp/Corona/0083_Bidir.jpg)

And, if you select Bidir/VMC in the v1.4, I think that it's set as [PT+MIT] and you cannot create caustics with Bidir anymore, right now.
But, with a sting, I think that you can select  [VCM] (good for pool caustics)

In conclusion, with the v1.4, you can generate caustics only with PPM.
Title: Re: Corona 1.4 & Caustic
Post by: PROH on 2016-06-10, 17:14:37
Hi cecofuli. That's some really nice caustic you made there (PPM). I had to try that myself, but I can't get anything as nice as yours - not even close. So I wondered if you would share some tricks or maybe even a sample file?

Regards
Title: Re: Corona 1.4 & Caustic
Post by: cecofuli on 2016-06-10, 17:24:08
It's real 3D water, with closed volume, a lot of subdivision and a little bit bigger than the pool,
The top part = noise modifier.
The shader, you must to check  "Caustics (slow)"
I cannot send you the file, sorry.
Title: Re: Corona 1.4 & Caustic
Post by: PROH on 2016-06-10, 17:26:45
Thanks! I used displaced water, might be that.... I'll try with noise mod.

Thanks again.
Title: Re: Corona 1.4 & Caustic
Post by: Frood on 2016-06-10, 18:50:12
but in the v1.4, we haven't this rollout.

It´s still there. Have another look.

Good Luck

Title: Re: Corona 1.4 & Caustic
Post by: cecofuli on 2016-06-10, 18:54:43
Are you sure? O_O
Title: Re: Corona 1.4 & Caustic
Post by: Frood on 2016-06-10, 19:16:21
1.4 Build timestamp: May 16 2016 11:07:17 (final). Or did you mean 1.5?

Good Luck

Title: Re: Corona 1.4 & Caustic
Post by: cecofuli on 2016-06-10, 19:21:56
Honestly, I never saw this rollout, after A6...  O_O I'm shocked... how can be possible? =)
Title: Re: Corona 1.4 & Caustic
Post by: Frood on 2016-06-10, 19:27:01
how can be possible? =)

Maybe you have never scrolled since A6 :)

Good Luck!

Title: Re: Corona 1.4 & Caustic
Post by: cecofuli on 2016-06-10, 20:01:36
No no... as you can see with my screenshot, our rollout title is the same, but mine is gray-out...
Does anyone have the same bahevior?


(http://www.francescolegrenzi.com/Temp/Corona/0084_Rollouts.jpg)
Title: Re: Corona 1.4 & Caustic
Post by: Frood on 2016-06-10, 20:09:13
Err... don´t you just have to press "+" in the rollout title bar? In your screenshot it´s collapsed.

BTW: Yours is not 1.4 final.

Good Luck!

Title: Re: Corona 1.4 & Caustic
Post by: cecofuli on 2016-06-10, 20:44:24
(O_____O)'
Title: Re: Corona 1.4 & Caustic
Post by: Cheesemsmsm on 2016-06-12, 14:59:48
Why are you still using daily build?
mine is the same as Frood's
Title: Re: Corona 1.4 & Caustic
Post by: Juraj on 2016-06-12, 18:19:02

PS: these are real caustics, not a fake. And they are very fast!


Nope, they are not fast. I tried using this on few occasions, only the water, to composite it with rest of the image with progressive in post.

Even though they docaustics, and they become visible rather instantly, the noise would never clear. It would do the funny 70 000 passses (I kept it running for 24 hours just for fun) and there would still be noise.

They're not advisable to use because they don't support feature, but because they don't even work well imho. Which is sad...because Caustics would fucking rock !
Title: Re: Corona 1.4 & Caustic
Post by: Ondra on 2016-06-12, 18:41:40
the thing about photons is that they can sometimes never converge, and even if they do, they converge asymptotically slower than path tracing - that means that as the render progresses, they become infinitely slower than path tracing. So juraj's observed behavior is consistent with the theory
Title: Re: Corona 1.4 & Caustic
Post by: Juraj on 2016-06-12, 18:45:56
Although I wonder what denoising would do, but this combination probably doesn't work together.
Title: Re: Corona 1.4 & Caustic
Post by: Ondra on 2016-06-12, 19:05:56
it would probably work pretty bad, since its theory is derived for uncorrelated monte carlo noise, not for correlated photon noise. Also "sample" has completely different meaning in photon mapping than in path tracing
Title: Re: Corona 1.4 & Caustic
Post by: gerets on 2016-06-13, 10:47:25
More test and attemps...this is my result :
(http://giannimelis.it/immagini/house_nn/cam51_2500_2500.jpg)
(http://giannimelis.it/immagini/house_nn/cam43_2500.jpg)
Title: Re: Corona 1.4 & Caustic
Post by: cecofuli on 2016-06-13, 12:46:31
Juraj_Talcik, I mean, they are fast than Progressive or any other method in Corona.
Obviously, we cannot compare to V-Ray caustics or with any other Renderer.  But... in some way, they works =)
Title: Re: Corona 1.4 & Caustic
Post by: Ondra on 2016-06-13, 12:55:41
More test and attemps...this is my result :
Looks nice, how exactly did you render that?
Title: Re: Corona 1.4 & Caustic
Post by: romullus on 2016-06-13, 14:07:53
More test and attemps...this is my result :
Looks nice, how exactly did you render that?

This isn't Corona, look at those glowing balls - no shadow terminator :] Just kidding, author please share the knowledge, i think many reaaaly would like to know how to do such beautiful pools :]
Title: Re: Corona 1.4 & Caustic
Post by: PROH on 2016-06-13, 14:13:43
Totally agrees :) I would love to know how to do such nice pools!
Title: Re: Corona 1.4 & Caustic
Post by: gerets on 2016-06-13, 14:16:05
just moment...1-2 hours and I can share my experience with some image
Title: Re: Corona 1.4 & Caustic
Post by: cecofuli on 2016-06-13, 14:24:19
I think that it's possible with Corona+VCM & Compositing the pool with the rest of the image.
You can have a nice Caustics and good GI.
Title: Re: Corona 1.4 & Caustic
Post by: Juraj on 2016-06-13, 14:34:00
Does VCM support absorbtion ?
Title: Re: Corona 1.4 & Caustic
Post by: cecofuli on 2016-06-13, 14:41:51
No, only Progressive support Absorption.
Title: Re: Corona 1.4 & Caustic
Post by: Juraj on 2016-06-13, 14:58:03
So how can you composite a nice pool if the VCM will produce pool with caustics, but without absorbtion ? The water will not look that good with just one of these.

I tried overlaying just caustics using screen, but even this is not good solution since caustics cause illumination that I otherwise not have without them (non-caustic refraction looks different, not extremely but it's not it).
Title: Re: Corona 1.4 & Caustic
Post by: cecofuli on 2016-06-13, 15:01:42
In the second image, I don't see any absorption...
In the first, the absorption looks like "painted by hand" =)
Title: Re: Corona 1.4 & Caustic
Post by: gerets on 2016-06-13, 16:02:09

1) render with Progressive (water with absorption)
2) render with Bidirectional with simplified scene pool (water caustics)
3) compositing

(http://giannimelis.it/immagini/caustiche/acqua_con_caustiche_2000.jpg)

(http://giannimelis.it/immagini/caustiche/crop_caustiche.jpg)

(http://giannimelis.it/immagini/caustiche/alfa.jpg)

(http://giannimelis.it/immagini/caustiche/no_caustic.jpg)

(http://giannimelis.it/immagini/caustiche/cam51_finale.jpg)

(http://giannimelis.it/immagini/caustiche/acqua.jpg)



Title: Re: Corona 1.4 & Caustic
Post by: gerets on 2016-06-13, 16:35:39
obviously:

(http://giannimelis.it/immagini/caustiche/impostazioni.jpg)

PS render VCM is fast (1 hour)
Title: Re: Corona 1.4 & Caustic
Post by: gerets on 2016-06-14, 16:18:56
two simple tips but very important:

1) color diffuse material wall and floor pool similar at absorption color water material. This is important for compositing

2) simplified scene for caustic calcolation. This is important for render time with Bidirectional PPM

simple, fast and effective method

(http://giannimelis.it/immagini/caustiche/color.jpg)


and anyway...love also no caustic water

(http://giannimelis.it/immagini/caustiche/noise3.jpg)
(http://giannimelis.it/immagini/caustiche/cam56_finale_finita2500.jpg)

Title: Re: Corona 1.4 & Caustic
Post by: cecofuli on 2016-06-14, 18:32:31
Thanks Gerets for the tips.
Title: Re: Corona 1.4 & Caustic
Post by: Mr.Schorsch on 2016-06-15, 09:23:54
These Images have by far one of the best greenery Setups i have ever seen. Such love in placing all to flowers and plant and Patels. Stunning work. And thanks for telling us the caustic Setup you used.
Title: Re: Corona 1.4 & Caustic
Post by: tomislavn on 2016-06-15, 09:37:57
Your vegetation and details are absolutely amazing!! I am loving those images - it's such stunning work, really good job! Oh, and thank you for the tips :)
Title: Re: Corona 1.4 & Caustic
Post by: Giona on 2016-06-15, 09:52:33
This is a really interesting thread!
I tried to create some caustics, but with my scene I was able to achieve a good results with different engine settings. Instead of PPM, I used Vertex Connection.

Here is the result:

Title: Re: Corona 1.4 & Caustic
Post by: cecofuli on 2016-06-15, 13:47:58
Try to render the pool with a white shader.
 Now, it's difficult to see if there is something wrong.
Title: Re: Corona 1.4 & Caustic
Post by: nicolasZ on 2016-06-15, 13:54:04
Wooo, so much interesting things !
Thanks  for the tips Gerets, and your images are awesome.

But I can't manage to reproduce the effect. I don't understand what I'm doing wrong ....
For the water did you used a plane with bump ? And what kinf of lighting did you used ?

Here are my settings, if you could tell me what is the problem, that would be great !

Thanks
 
Title: Re: Corona 1.4 & Caustic
Post by: cecofuli on 2016-06-15, 14:48:29
Here the max file.


(http://www.francescolegrenzi.com/Temp/Corona/0085_Caustics.jpg)
Title: Re: Corona 1.4 & Caustic
Post by: nicolasZ on 2016-06-15, 17:03:38
You rock ! Thank a lot cecofuli !
Title: Re: Corona 1.4 & Caustic
Post by: Giona on 2016-06-15, 17:25:31
Here's the test with a white material inside the pool.

I also tried another scene to see reflective caustics on the walls. I tested the scene with BDPM and Vertex connection, 4 min each scene and the results are almost the same.
It could be super usefull to have a render pass to save only caustics..
Title: Re: Corona 1.4 & Caustic
Post by: burnin on 2016-06-16, 00:35:51
Very nice results.

Does it work in C4D version? Is engine on pair?

@giona4
What do you use for edges (modeling, shader...)?
Looking good.

Here's simple scene test, rendered with BD/VCM (BD-PM option is not available), caustics for material on, lighting sun+sky only, water surface displaced. Resulted in fireflies and much darker refraction than w/o caustics. Should report a bug?

Edit/Note:
Done with Corona for Cinema 4D Alpha version: A6 daily Jun  2 2016 (core 1.4 DailyBuild Feb 11 2016) - reported on Mantis (ID 1984) (https://corona-renderer.com/bugs/view.php?id=1984)
Title: Re: Corona 1.4 & Caustic
Post by: FrostKiwi on 2016-06-17, 16:09:22
I ran a caustic test scene and looked at how the Rays are being distributed.
The SamplingFocus render element is normalized to 0-255 in the attachment.

Caustics hitting the Floor had on average a realRGB of ~1.25 with the highest couple being ~2.
Caustics as seen through a refraction had on average a realRGB of ~3.5 with the highest couple being 7.

Adaptivity samples caustics through refraction more than twice as often as not seen through a refraction.
While it is correct to assume, that adding refraction makes the chance of a Ray spazzing out a random color and creating noise, it is the exact opposite in this case.
The most noise was produced from the caustic rays on the floor being scattered across the Plane. They created the most visible noise, (partly due to the fact, that the floor had a solid color and thus makes noise more visible) yet still was sampled only half as often, as caustics as seen through a refraction, which did not contribute to the Subjective Noise as much.

Kinda like the Mantis post I made, where glossy reflection of a glossy reflection was sampled twice as much (which didn't produce much noise) vs the first bounce of GI, (which produced the most amount of noise), yet was sampled only a quarter as much as the average of the whole image.

edit:
Scene was rendered in Progressive with 1250 passes and 0 MSI.
Title: Re: Corona 1.4 & Caustic
Post by: Radim Razzak on 2016-11-16, 15:56:14
Hello everybody,

This might be a really stupid question, but how can I enable this Experimental section in the Performance tab? It looks like it's hidden from the casual users too well. :)

Thank you
Title: Re: Corona 1.4 & Caustic
Post by: TomG on 2016-11-16, 15:59:42
Hidden with reason :)

In 1.5, you can find it by enabling the Devel/Debug mode - go to System tab, System Settings button, check Enable devel/debug mode, close the menu and head on over to the Performance tab.
Title: Re: Corona 1.4 & Caustic
Post by: Radim Razzak on 2016-11-16, 16:16:46
Hidden with reason :)

In 1.5, you can find it by enabling the Devel/Debug mode - go to System tab, System Settings button, check Enable devel/debug mode, close the menu and head on over to the Performance tab.

Great, thank you very much!
Title: Re: Corona 1.4 & Caustic
Post by: Radim Razzak on 2016-11-16, 22:57:00
Well, after having followed the hints and tricks mentioned above, I managed to get some caustics in my test render. But the bad news is that I get these white artifacts even after 3 hours of rendering on my dual xeon. Any idea on how I could get rid of these or what might be causing them? I just used a simple HDRI setup for fhe lighting.

Thank you.
Title: Re: Corona 1.4 & Caustic
Post by: FrostKiwi on 2016-11-17, 09:37:23
Well, after having followed the hints and tricks mentioned above, I managed to get some caustics in my test render. But the bad news is that I get these white artifacts even after 3 hours of rendering on my dual xeon. Any idea on how I could get rid of these or what might be causing them? I just used a simple HDRI setup for fhe lighting.

Thank you.
No easy solution this time. It's an experimental render engine, that is ultra naive.
Sampling into a pixels works by averaging the cast sample with the previous result. A reflective ray with a >255 energy will take days to average out against the only 128 blue. These are extreme fireflies.
This is usually solved by blocking rays from having high energy with the MSI (https://coronarenderer.freshdesk.com/support/solutions/articles/5000515636-what-is-max-sample-intensity-msi-) option. Problem is, that BiDir doesn't honor that option and Caustics are by definition high energy rays and thus you can't really use that option.

So you have to do it manually in post. You may be lucky to be able to just crush that information inside the Corona VFB, by looking at the intensity of the firefly with right click and setting Highlight compression to roughly the roughly same amount + some more to get it under white.

But most likely that will look aweful, use Corona's built in firefly filter option.
or
Export as any HDR format.
Either:
Go into Photoshop and try Median Filter with 1px or 2px amount, or
Use any firefly filter like ArionFX's Despeckle (http://support.randomcontrol.com/display/XFP/Noise), or
Use Burntool to paint the Fireflies to 0-255 range by hand.

edit:
Remove Outliers filter in ImageJ worked wonderfully.
(I'm sure you can find many other tools, currently programming with it, so had it on my desktop :D)
Free tool, can download it here. (http://imagej.net/Welcome)
Title: Re: Corona 1.4 & Caustic
Post by: Radim Razzak on 2016-11-17, 10:01:49
Thank you very much SairesArt!