Author Topic: Render time boolean with volumetric scattering bug  (Read 2522 times)

2019-06-12, 11:54:33

Place

  • Active Users
  • **
  • Posts: 43
    • View Profile
Hi All,

searching on the forum I didn't find a similar report so I hope it's not a duplicate:

Using corona distance map in a render time boolean, if a material uses volumetric scattering, with absortion color different from pure white, it doesn't work as expected.
If needed I'll upload the scene.
Tested on Max 16/19 and corona 3/4.

Thanks,
Manuel

edit: changed image
« Last Edit: 2019-06-12, 12:00:02 by Place »

2019-06-12, 13:47:17
Reply #1

Frood

  • Active Users
  • **
  • Posts: 1921
    • View Profile
    • Rakete GmbH
I think the issue is not the distance map. Generally when using opacity (or an animated visibility track), the object will fade but not the volumetric part. Same should happen if you just use opacity other than 1 in the material. You can try to control absorption color with the same distance node ('Box002') in another distance map and blend between your absorption color and white there.


Good Luck



« Last Edit: 2019-06-12, 20:08:04 by Frood »
Never underestimate the power of a well placed level one spell.

2019-06-12, 15:50:32
Reply #2

Place

  • Active Users
  • **
  • Posts: 43
    • View Profile
Thank you Frood, it works!
But don't you consider a bug that the volumetric part doesn't fade using opacity?
Don't mind, I just read your statement in the link you provided.
But I don't get why it works in this way
« Last Edit: 2019-06-12, 15:56:11 by Place »

2019-06-14, 15:02:16
Reply #3

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12754
  • Marcin
    • View Profile
But I don't get why it works in this way

This is because to Corona the object's surface is a different thing, and the object's volume is a different thing.
Surface is diffuse color, reflectivity, opacity, etc.
Volume is absorption and scattering (and emission in case of CoronaVolumeMtl).

With your render time boolean you are affecting the opacity of the object you are cutting, so its surface becomes transparent, but the volume becomes intact.
Like Frood said, you can use your CDistance map to affect the object's absorption - i.e. set that object's absorption to white (=fully transparent) wherever that object's volume is inside your cutter object.

Hope that clarifies what's going on.
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2019-06-17, 12:34:16
Reply #4

Place

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