Volumetric breaks at mesh intersection

Use this forum for general user support and related questions.
Forum rules
Please upload a testscene that allows developers to reproduce the problem, and attach some images.
User avatar
phoenixart
Posts: 20
Joined: Tue May 05, 2020 7:04 pm
Location: Los Angeles
Contact:

Volumetric breaks at mesh intersection

Post by phoenixart »

This is my first test with LuxCore Volumetrics, sorry if the solution has already been mentioned in the forum. I searched but no luck.
(Ignore the quality of the image, it's for testing purpose only)

Basically, I'm translating what I usually do in Cycles to Lux and I'm noticing something strange happening at the boundary of the ground plane.
lux-core-test-004-54sec.jpg
This is the same scene roughly translated for Cycles
luxVScycles-test-volumetric-40sec-002.jpg
As you can see, the background in Cycles gets more muted and the ground blurs into the environment in a more, gradual way.
In LuxCore there's a sharp separation between the ground plane and the volumetric.

On top of that, the light has sharp edges (having the light visible doesn't fix the problem).

Here's my basic setup for the volumetric cube:
Snipaste_2020-08-31_18-31-10.jpg
Any hints?
3D Designer, Photographer
https://phoenixart.com
User avatar
FarbigeWelt
Donor
Donor
Posts: 1046
Joined: Sun Jul 01, 2018 12:07 pm
Location: Switzerland
Contact:

Re: Volumetric breaks at mesh intersection

Post by FarbigeWelt »

phoenixart wrote: Tue Sep 01, 2020 1:33 am This is my first test with LuxCore Volumetrics, sorry if the solution has already been mentioned in the forum. I searched but no luck.
(Ignore the quality of the image, it's for testing purpose only)

Any hints?
I usually define an external volume called Air.Clear.Volume.Prio.0 first. Then I define further volume, the internal volumes. In your case Air.Homo.Vol.Prio.10.

IOR are predefined in an utility node.

Then I set World volume and define Camera volume by choosing Air.Clear....

The camera should be located outside your cube with Material Null.

I hope this helps as a useful hint.
Light and Word designing Creator - www.farbigewelt.ch - aka quantenkristall || #luxcorerender
MacBook Air with M1
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Volumetric breaks at mesh intersection

Post by Dade »

phoenixart wrote: Tue Sep 01, 2020 1:33 am Any hints?
Your scene is likely to have a wrong setup: have you assigned a volume to the camera ? In alternative you can assign world volume.
Support LuxCoreRender project with salts and bounties
User avatar
phoenixart
Posts: 20
Joined: Tue May 05, 2020 7:04 pm
Location: Los Angeles
Contact:

Re: Volumetric breaks at mesh intersection

Post by phoenixart »

It turns out everything works fine if the camera is positioned outside the volume as FarbigeWelt suggested.

Thanks!
3D Designer, Photographer
https://phoenixart.com
User avatar
FarbigeWelt
Donor
Donor
Posts: 1046
Joined: Sun Jul 01, 2018 12:07 pm
Location: Switzerland
Contact:

Re: Volumetric breaks at mesh intersection

Post by FarbigeWelt »

phoenixart wrote: Thu Sep 03, 2020 4:22 am It turns out everything works fine if the camera is positioned outside the volume as FarbigeWelt suggested.

Thanks!
Thank you for your feedback. :)
Light and Word designing Creator - www.farbigewelt.ch - aka quantenkristall || #luxcorerender
MacBook Air with M1
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Volumetric breaks at mesh intersection

Post by Dade »

phoenixart wrote: Thu Sep 03, 2020 4:22 am It turns out everything works fine if the camera is positioned outside the volume as FarbigeWelt suggested.
It works also if it inside and you assign the volume to the camera.
Support LuxCoreRender project with salts and bounties
User avatar
phoenixart
Posts: 20
Joined: Tue May 05, 2020 7:04 pm
Location: Los Angeles
Contact:

Re: Volumetric breaks at mesh intersection

Post by phoenixart »

Dade wrote: Thu Sep 03, 2020 10:44 am It works also if it inside and you assign the volume to the camera.

Thanks for the heads up, Dade.

How do I do that?
Is it related to this?
Snipaste_2020-09-03_10-19-34.png
Snipaste_2020-09-03_10-19-34.png (8.43 KiB) Viewed 3647 times
3D Designer, Photographer
https://phoenixart.com
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Volumetric breaks at mesh intersection

Post by B.Y.O.B. »

Yes. Disable auto-detection, and you will be able to specify the volume manually.
Auto-detection only works if the surface in the middle of the film has correct interior/exterior volumes assigned (e.g. in your case, fog as exterior volume). However since it can be annoying to go through all materials and specify the correct volumes, you can instead specify the camera volume manually.
User avatar
phoenixart
Posts: 20
Joined: Tue May 05, 2020 7:04 pm
Location: Los Angeles
Contact:

Re: Volumetric breaks at mesh intersection

Post by phoenixart »

B.Y.O.B. wrote: Thu Sep 03, 2020 5:38 pm Yes. Disable auto-detection, and you will be able to specify the volume manually.
Auto-detection only works if the surface in the middle of the film has correct interior/exterior volumes assigned (e.g. in your case, fog as exterior volume). However since it can be annoying to go through all materials and specify the correct volumes, you can instead specify the camera volume manually.
Thanks, B.Y.O.B.

I disabled the Auto-Detect, created a new Camera Volume which has these settings by default
Snipaste_2020-09-03_11-45-43.png
And now I guess I can simply have my cube with the Homogeneous Volume extending past the camera.
Snipaste_2020-09-03_11-48-42.png
Do I need to change any setting in the Camera Volume shader?
At the moment the result hasn't changed, I'm back to the clipping issue in the first image I posted.
3D Designer, Photographer
https://phoenixart.com
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Volumetric breaks at mesh intersection

Post by B.Y.O.B. »

If the camera is inside the fog, you need to set the fog volume as camera volume.
(it is the camera exterior volume)
Post Reply