Author Topic: Water caustics - fireflies  (Read 30026 times)

2017-03-14, 22:26:20

synolog

  • Active Users
  • **
  • Posts: 112
    • View Profile
Hi,
i'm testing caustics using:

- corona sun+sky
- water with simple plane and material with reflection+refraction(caustic)+opacity+displacement+volume, cubic projection
- solids with a diffuse only material

- render engine bidir/vcm

I've noticed some fireflies that are connected with the kind of lightsource and material parameters. Are they phys correct?

Thanks

2017-03-14, 23:02:45
Reply #1

cecofuli

  • Active Users
  • **
  • Posts: 1577
    • View Profile
    • www.francescolegrenzi.com
Try to add some glossy reflection to the water. I think that from 0.9 to 0.98 it's enough + a little bit of Bloom and Glare.

2017-03-15, 20:14:02
Reply #2

synolog

  • Active Users
  • **
  • Posts: 112
    • View Profile
Thanks but problem still present. Best using PPM engine

2017-03-15, 20:23:49
Reply #3

FrostKiwi

  • Active Users
  • **
  • Posts: 686
    • View Profile
    • YouTube
In Bidir, there are certain high energy rays, that will never (in human years ;]  ) average out against the middle bright values of the scene.

Use the firefly denoise option, it will clear the fireflies and leave the scene intact.
Also, if water is a simple plane, then refraction is not correct. Water needs to be a volume.
I'm 🐥 not 🥝, pls don't eat me ( ;  ;   )

2017-03-15, 21:27:13
Reply #4

synolog

  • Active Users
  • **
  • Posts: 112
    • View Profile
Hi, thanks, but:
Bidir: denoise function doesnt have any effect (in firefly and full mode).
Volume vs plane: plane caustics seems to be more natural; with volume caustics are still the same in deep water and surface.

2017-03-15, 23:34:58
Reply #5

FrostKiwi

  • Active Users
  • **
  • Posts: 686
    • View Profile
    • YouTube
Bidir: denoise function doesnt have any effect (in firefly and full mode).
Ohhh, I just noticed, that we are in C4D >.>
Pretty sure it does in max.

No problem though, there is a workaround in post. You can even use a free tool. I posted about the exact same situation in another thread.
I'm 🐥 not 🥝, pls don't eat me ( ;  ;   )

2017-03-16, 07:23:21
Reply #6

synolog

  • Active Users
  • **
  • Posts: 112
    • View Profile
Thank you, i'll follow your instructions.

edit:solved thanks
« Last Edit: 2017-03-16, 09:03:04 by synolog »

2017-03-29, 20:43:05
Reply #7

Lars Vader

  • Active Users
  • **
  • Posts: 15
    • View Profile
    • Lars Lubkowitz Visualization
I never even once managed to see any kind of caustics in my renders. Would anyone of you be so kind and give me some tips on how to achieve them? I followed your path but no caustics what so ever. I tried water as a simple plane and as a box, used displacement, checked "caustics" in the refraction channel and checked volume as well, although I'm not quite sure what values I'm supposed to use.

2017-03-29, 22:17:27
Reply #8

synolog

  • Active Users
  • **
  • Posts: 112
    • View Profile
I never even once managed to see any kind of caustics in my renders. Would anyone of you be so kind and give me some tips on how to achieve them? I followed your path but no caustics what so ever. I tried water as a simple plane and as a box, used displacement, checked "caustics" in the refraction channel and checked volume as well, although I'm not quite sure what values I'm supposed to use.

Hi, there are many ways to achieve caustics. Here an example:

1st-render settings: in performance settings enable devel/debug mode; in develpment/experimental stuff under basic configuration in render engine select Bidir/VCM.

2nd-model a swimming pool and assign a corona material with diffuse white 80%.

3rd-insert a plane for water surface: for it use a material with no diffuse; activate reflection; activate refraction; activate opacity with brightness 50%; activate displacement with c4d_water shader in texture; activate volume with color 5% cyan and absorption distance 5cm (or more depending of the plane water surface size), volume scattering deep blue color, brightness 25%, mix mode add, mix strength 50%.

4th-standard corona sky and corona sun, insert corona camera with exposure -3(EV).

I wish this will help you.

2017-03-29, 22:33:58
Reply #9

RolandB

  • Active Users
  • **
  • Posts: 335
  • Corona fan
    • View Profile
    • Béhance portfolio
1st-render settings: in performance settings enable devel/debug mode; in develpment/experimental stuff under basic configuration in render engine select Bidir/VCM.
Hi synolog
Thanks for your answer but (I'm on Max and with the 1.5), I've no devel/debug mode in performance settings. So without Bidir/VCM, is it possible to produce caustics (i don't think so, I've tried...)
Thanks
Roland
Portfolio on Béhance
http://www.behance.net/GCStudio

2017-03-29, 22:50:58
Reply #10

synolog

  • Active Users
  • **
  • Posts: 112
    • View Profile
In Cinema 4d you need Bidir/VCM or PPM. I dont know if the progressive mode in Corona for max 1.6 supports caustics and how to activate Bidir/VCM in Corona for Max 1.5. Maybe you could find more info in the Corona/Max forum.

2017-03-30, 07:25:13
Reply #11

Lars Vader

  • Active Users
  • **
  • Posts: 15
    • View Profile
    • Lars Lubkowitz Visualization
I never even once managed to see any kind of caustics in my renders. Would anyone of you be so kind and give me some tips on how to achieve them? I followed your path but no caustics what so ever. I tried water as a simple plane and as a box, used displacement, checked "caustics" in the refraction channel and checked volume as well, although I'm not quite sure what values I'm supposed to use.

Hi, there are many ways to achieve caustics. Here an example:

1st-render settings: in performance settings enable devel/debug mode; in develpment/experimental stuff under basic configuration in render engine select Bidir/VCM.

2nd-model a swimming pool and assign a corona material with diffuse white 80%.

3rd-insert a plane for water surface: for it use a material with no diffuse; activate reflection; activate refraction; activate opacity with brightness 50%; activate displacement with c4d_water shader in texture; activate volume with color 5% cyan and absorption distance 5cm (or more depending of the plane water surface size), volume scattering deep blue color, brightness 25%, mix mode add, mix strength 50%.

4th-standard corona sky and corona sun, insert corona camera with exposure -3(EV).

I wish this will help you.

Thank you, synolog!
I did everything you mentioned but still no result. It must be jinxed, I don't know. Seems so easy and yet it doesn't work.

Btw: Could you also tell us how you solved the firefly problem? I'd really like to know that once I figure out the damn caustics. :-D   

2017-03-30, 09:19:31
Reply #12

synolog

  • Active Users
  • **
  • Posts: 112
    • View Profile
I forgot the most important setting: in the refraction settings of the water material turn on (under refraction behavior) Caustic (slow). If it doent work send me your c4d file.
For fireflies look this https://forum.corona-renderer.com/index.php/topic,12284.msg89798.html#msg89798
« Last Edit: 2017-03-30, 09:24:35 by synolog »

2017-03-30, 20:48:53
Reply #13

Lars Vader

  • Active Users
  • **
  • Posts: 15
    • View Profile
    • Lars Lubkowitz Visualization
I forgot the most important setting: in the refraction settings of the water material turn on (under refraction behavior) Caustic (slow). If it doent work send me your c4d file.
For fireflies look this https://forum.corona-renderer.com/index.php/topic,12284.msg89798.html#msg89798
Sent you a PM. Still nothing. Curious to find out what my mistake was.

2017-03-31, 06:36:15
Reply #14

synolog

  • Active Users
  • **
  • Posts: 112
    • View Profile
Hi,

the problem in your file is the volume parameters of the water material:

In absorption color HSV parameters put H200 S2% V100%; Absorption brightness 100%; Absorption distance 8cm (if you increase this water is more transparent).

In scattering color HSV put H230, S100%, V15%.

Your file is from c4d R15 and if i save it with my R18 you cant open it.

Let me know if you solve

2017-03-31, 09:00:38
Reply #15

Lars Vader

  • Active Users
  • **
  • Posts: 15
    • View Profile
    • Lars Lubkowitz Visualization
Hi,

the problem in your file is the volume parameters of the water material:

In absorption color HSV parameters put H200 S2% V100%; Absorption brightness 100%; Absorption distance 8cm (if you increase this water is more transparent).

In scattering color HSV put H230, S100%, V15%.

Your file is from c4d R15 and if i save it with my R18 you cant open it.

Let me know if you solve

Thank you so much. It finally worked! :-)

2017-03-31, 15:15:59
Reply #16

Cinemike

  • Active Users
  • **
  • Posts: 1001
    • View Profile
Your file is from c4d R15 and if i save it with my R18 you cant open it.

As a sidenote: R15 can open R18-files.

2017-03-31, 21:05:35
Reply #17

synolog

  • Active Users
  • **
  • Posts: 112
    • View Profile
Your file is from c4d R15 and if i save it with my R18 you cant open it.

As a sidenote: R15 can open R18-files.

Sorry my mistake.

2017-03-31, 21:54:34
Reply #18

Cinemike

  • Active Users
  • **
  • Posts: 1001
    • View Profile
The "may not" portion of the message is mostly referring to advanced features of higher versions (so the Voronoi Fracture from R18 cannot be used when loaded into R15, for example). The file format is basically fully compatible. So, if you press "OK", the file will be saved for R18, but as long as you do not add advanced features, it will remain backwards compatible.

2018-06-28, 11:48:02
Reply #19

Air Dnipro

  • Active Users
  • **
  • Posts: 32
    • View Profile
Hi synolog!
Can you send me plz your c4d-file with caustic? Whatever I do stil I have no caustic (cant get caustic effect)  ;(

2018-06-28, 14:30:18
Reply #20

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12752
  • Marcin
    • View Profile
Check out this guide: https://coronarenderer.freshdesk.com/support/solutions/articles/12000043584
It's for 3ds Max but should be easy to understand for C4D users as well.
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2018-06-28, 14:50:45
Reply #21

Konichowaa

  • Active Users
  • **
  • Posts: 94
    • View Profile
I'm having trouble as well creating caustics,

I also can't find the develoment mode to begin with, in beta 1...
Koen Van haesendonck
3D-lab - www.3d-lab.be

2018-06-28, 14:58:50
Reply #22

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12752
  • Marcin
    • View Profile
Edit > Preferences > Corona > Enable devel/debug mode
Then you'll find it in Render Settings > Corona > Development/experimental stuff
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2018-06-28, 15:50:14
Reply #23

Beanzvision

  • Corona Team
  • Active Users
  • ****
  • Posts: 3862
  • Bengamin
    • View Profile
    • Cormats
Here's a test scene for those wanting to play around. Note: you will need to download the hdri used. (See txt file in zip)
« Last Edit: 2018-06-28, 21:26:35 by beanzvision »
Bengamin Jerrems l chaos-corona.com
3D Support Specialist - Corona l contact us
Corona Uploader l Upload
Portfolio l Click me!

2018-06-28, 17:14:44
Reply #24

Air Dnipro

  • Active Users
  • **
  • Posts: 32
    • View Profile
Its looks a pretty cool! I try download it and rendering, whatever happend - thank you!

2018-06-28, 18:30:35
Reply #25

Air Dnipro

  • Active Users
  • **
  • Posts: 32
    • View Profile
I try rendering this scene, but stiil have no caustic )
here is my rendering:

2018-06-28, 21:31:02
Reply #26

Beanzvision

  • Corona Team
  • Active Users
  • ****
  • Posts: 3862
  • Bengamin
    • View Profile
    • Cormats
I try rendering this scene, but stiil have no caustic )
here is my rendering:
Do you have developer/debug mode turned on? *See maru's comment.
Bengamin Jerrems l chaos-corona.com
3D Support Specialist - Corona l contact us
Corona Uploader l Upload
Portfolio l Click me!

2018-06-28, 22:04:51
Reply #27

Air Dnipro

  • Active Users
  • **
  • Posts: 32
    • View Profile
Yes, I turn on debug mode. I try PPA and Bidir/VCM render engine... Very slow rendering, now I have 30 min, maybe later been a caustic effects in render window )

2018-06-29, 00:10:41
Reply #28

Air Dnipro

  • Active Users
  • **
  • Posts: 32
    • View Profile
Wonderful, now I try to PPM render engine, and...OMG I see a caustic! ) Its amazing! THANKS to you, amigo!!

2018-06-29, 00:47:37
Reply #29

Eddoron

  • Active Users
  • **
  • Posts: 552
  • Achieved Pedestrian
    • View Profile
Caustics require a big enough light to be correctly sampled. The HDRI or the Sun/Sky Object won't help much. Also, the PPM engine will fuck many of your other materials. Try using a huge circular Area light directed at the pool with directionality ~60.
It's best to only have the top part of the mesh be displaced and not ripped off from the rest of the box. Also, a portal might help.

2018-06-29, 11:06:37
Reply #30

Air Dnipro

  • Active Users
  • **
  • Posts: 32
    • View Profile
Caustics require a big enough light to be correctly sampled. The HDRI or the Sun/Sky Object won't help much. Also, the PPM engine will fuck many of your other materials. Try using a huge circular Area light directed at the pool with directionality ~60.
It's best to only have the top part of the mesh be displaced and not ripped off from the rest of the box. Also, a portal might help.
This engine metod good only gor caustic effect? maybe I can merge my pool with other scene? As I know Corona have no caustic mask in multipass (   Thanks for advise, its very helpfull

2018-06-29, 12:44:59
Reply #31

Eddoron

  • Active Users
  • **
  • Posts: 552
  • Achieved Pedestrian
    • View Profile
or just fake the caustics. nobody will ever try to recalculate the rays back to their origin. maybe a savant, but those are rare.

2018-06-29, 12:50:36
Reply #32

Air Dnipro

  • Active Users
  • **
  • Posts: 32
    • View Profile
as I can see caustic effect need much light, how to increase caustic that on wall (near pool) I see caustic too?

2018-06-29, 13:36:36
Reply #33

Beanzvision

  • Corona Team
  • Active Users
  • ****
  • Posts: 3862
  • Bengamin
    • View Profile
    • Cormats
as I can see caustic effect need much light, how to increase caustic that on wall (near pool) I see caustic too?
Try using a c4d light and project a caustics map on the wall.
Bengamin Jerrems l chaos-corona.com
3D Support Specialist - Corona l contact us
Corona Uploader l Upload
Portfolio l Click me!

2018-06-29, 14:20:19
Reply #34

Air Dnipro

  • Active Users
  • **
  • Posts: 32
    • View Profile
You mean using c4d-light in corona-scene? I dont know how to separate caustic by multipass )

2018-06-29, 15:40:23
Reply #35

Beanzvision

  • Corona Team
  • Active Users
  • ****
  • Posts: 3862
  • Bengamin
    • View Profile
    • Cormats
Fake it til you make it.
Bengamin Jerrems l chaos-corona.com
3D Support Specialist - Corona l contact us
Corona Uploader l Upload
Portfolio l Click me!

2018-06-29, 15:47:10
Reply #36

Air Dnipro

  • Active Users
  • **
  • Posts: 32
    • View Profile
its so realistic caustic! looks very realistic and cool! caustic on the wall made by corona?

2018-06-29, 15:52:15
Reply #37

Beanzvision

  • Corona Team
  • Active Users
  • ****
  • Posts: 3862
  • Bengamin
    • View Profile
    • Cormats
The wall caustics was generated by a c4d spotlight with just a c4d alpha mat applied to the light and projected in flat mapping. For a 2 minute setup, i wouldn't call it realistic but if one spends more time on something it could be better. ;)
Bengamin Jerrems l chaos-corona.com
3D Support Specialist - Corona l contact us
Corona Uploader l Upload
Portfolio l Click me!

2018-06-29, 20:00:18
Reply #38

Air Dnipro

  • Active Users
  • **
  • Posts: 32
    • View Profile
hmm, how do made alpha-channel in standart renderer of Cinema 4D? ) I try to use standart c4d-light in corona (PPM render engine) and render was worse )

2018-06-29, 20:13:31
Reply #39

Eddoron

  • Active Users
  • **
  • Posts: 552
  • Achieved Pedestrian
    • View Profile
You have to align the texture to the (spot)light first.
And get away from the PPM engine. It won't help you a bit when you're faking it anyway and the rest looks often worse.
You could also use a noise in the illumination /opacity channel, stacked onto the material that you want to have the caustics. One or two animated noises and maybe a distorter should be enough.

2018-06-30, 00:37:37
Reply #40

Air Dnipro

  • Active Users
  • **
  • Posts: 32
    • View Profile
Thanks to you, amigo!

2018-06-30, 11:44:01
Reply #41

Air Dnipro

  • Active Users
  • **
  • Posts: 32
    • View Profile
I find interesting c4d-file with caustics, maybe it help someone ;)

2018-06-30, 23:58:37
Reply #42

Eddoron

  • Active Users
  • **
  • Posts: 552
  • Achieved Pedestrian
    • View Profile
I added a spotlight with a distorted noise, so you can have animated caustics and control where they appear.

2018-07-01, 13:59:37
Reply #43

Air Dnipro

  • Active Users
  • **
  • Posts: 32
    • View Profile
I create real caustic in cinema 4d, but look like a fake... And I have a some artifacts in shadow

2018-07-01, 19:41:25
Reply #44

Marvey

  • Active Users
  • **
  • Posts: 213
    • View Profile
Fake it til you make it.



can you share the scene? thanks

2018-07-01, 20:33:05
Reply #45

Air Dnipro

  • Active Users
  • **
  • Posts: 32
    • View Profile
This caustics is merge with corona-scene? I increase surface caustic in Light, and I get this fake-render:

2018-07-02, 11:36:19
Reply #46

Beanzvision

  • Corona Team
  • Active Users
  • ****
  • Posts: 3862
  • Bengamin
    • View Profile
    • Cormats
Fake it til you make it.



can you share the scene? thanks
Sure!
Bengamin Jerrems l chaos-corona.com
3D Support Specialist - Corona l contact us
Corona Uploader l Upload
Portfolio l Click me!

2018-07-02, 12:18:27
Reply #47

Air Dnipro

  • Active Users
  • **
  • Posts: 32
    • View Profile
Thank you so much, friend! Your scene look much more better then standart-render cinema scene`s! Looks a physically correct

2018-07-02, 15:24:41
Reply #48

Marvey

  • Active Users
  • **
  • Posts: 213
    • View Profile

2019-05-04, 15:39:08
Reply #49

Marvey

  • Active Users
  • **
  • Posts: 213
    • View Profile
Beanzvision, it is possible to update it with the new caustics? thanks!

2019-05-04, 19:52:27
Reply #50

Air Dnipro

  • Active Users
  • **
  • Posts: 32
    • View Profile
Corona Beta licensing is over ;(

2019-05-06, 09:26:32
Reply #51

Beanzvision

  • Corona Team
  • Active Users
  • ****
  • Posts: 3862
  • Bengamin
    • View Profile
    • Cormats
Beanzvision, it is possible to update it with the new caustics? thanks!
Not really much to update here, remove any C4D lights that were projecting fake caustics, ensure caustics is enabled on the material and also in the render settings. That should be it, if you run into an issues let me know and I'll do my best to help you with it.
Bengamin Jerrems l chaos-corona.com
3D Support Specialist - Corona l contact us
Corona Uploader l Upload
Portfolio l Click me!

2019-05-15, 15:40:05
Reply #52

synolog

  • Active Users
  • **
  • Posts: 112
    • View Profile
Finally great results with the latest version
« Last Edit: 2019-05-16, 10:05:26 by synolog »

2019-05-16, 10:37:39
Reply #53

Beanzvision

  • Corona Team
  • Active Users
  • ****
  • Posts: 3862
  • Bengamin
    • View Profile
    • Cormats
Finally great results with the latest version
Looking good too! ;)
Bengamin Jerrems l chaos-corona.com
3D Support Specialist - Corona l contact us
Corona Uploader l Upload
Portfolio l Click me!

2019-05-16, 16:36:17
Reply #54

Air Dnipro

  • Active Users
  • **
  • Posts: 32
    • View Profile
Looks pretty cool! unfortunately beta version licensing is no more ((

2019-05-16, 18:01:26
Reply #55

TomG

  • Administrator
  • Active Users
  • *****
  • Posts: 5460
    • View Profile
Looks pretty cool! unfortunately beta version licensing is no more ((

Even if there was beta licensing, since this is a daily build, it still would only be available for those with an active FairSaaS license :)
Tom Grimes | chaos-corona.com
Product Manager | contact us

2019-05-17, 00:20:59
Reply #56

Air Dnipro

  • Active Users
  • **
  • Posts: 32
    • View Profile
You are lucky man, and I have no this license (