Volumetrics issues

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.
daros
Posts: 209
Joined: Thu Dec 12, 2019 3:25 pm
Location: inside human language
Contact:

Re: Volumetrics issues

Post by daros » Sat Sep 18, 2021 7:32 am

Dade wrote:
Fri Sep 17, 2021 8:42 pm
daros wrote:
Fri Sep 17, 2021 4:29 pm
Hi dade, but we defined a inside volume which contains the entire scene. In fact, as pointed out by sharlybg, under path tracing everything works well...only under bidir we have that issue.
As I wrote in my previous post, you need to define the inside/outside volume of the walls: a ray start from the light source hits a and has no information at all of the outside box, how could it have ?
Anyway i imagine those not as walls but as a folded sheet of paper which is immersed in a volume (black box). Everything what happens inside this volume should be affected by the substance of the volume, therefore the lights should cast volumetrics. Only exception is if i define internally a new outside volume, which is therefore not affected by the substance of the previous volume.

A part form this, under pathgpu our set-up seems to work correctly.

User avatar
Dade
Developer
Posts: 5545
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Volumetrics issues

Post by Dade » Sat Sep 18, 2021 10:51 am

daros wrote:
Sat Sep 18, 2021 5:56 am
One moment... but why the scene works perfectly under path tracing?
Path tracing traces ray only from the camera while BiDir both from camera and lights. If the camera is outside the volume box (or the volume is assigned to the camera), the traced rays have the correct information.
Support LuxCoreRender project with salts and bounties

daros
Posts: 209
Joined: Thu Dec 12, 2019 3:25 pm
Location: inside human language
Contact:

Re: Volumetrics issues

Post by daros » Sat Sep 18, 2021 4:23 pm

Thanks dade, monday we try to follow your advices.

daros
Posts: 209
Joined: Thu Dec 12, 2019 3:25 pm
Location: inside human language
Contact:

Re: Volumetrics issues

Post by daros » Mon Sep 20, 2021 9:53 am

Hi again, Dade. Unfortunately, we are not able to create a scene that allows us to get what we are looking for....
We are working under Bidir.

Imagine this scene, which is an outdoor/indoor scene.
volumetrics 2.jpg
volumetrics scene.jpg

We want this:
-placing the camera on the outside of the building, get a fog effect limited by the blue volume.
-placing the camera in the semi-closed volume we want to appreciate the volumetric of the sun entering the large opening and the voluemtric of the spot on the ceiling.
-by placing the camera in the volume that has only a small window we want to obtain the effect of the volumetric of the sun through the window and the volumetric of the spot on the ceiling.

Which is simply what would happen in reality under such circumstances.
To simplify... we are looking for a set-up where everything that happens inside the fog volume is immersed in the fog.

We have not been able to create a scene in which, simply by moving the camera from outside to inside, the volumetrics behave as they should.

Attached is an obj of that scene.

Can anyone help us create a scene where by moving the camera from the outside to the inside, we can get the correct results?
Thank you in advance for your help.
Attachments
volumetrics.zip
(1.4 KiB) Downloaded 22 times

daros
Posts: 209
Joined: Thu Dec 12, 2019 3:25 pm
Location: inside human language
Contact:

Re: Volumetrics issues

Post by daros » Tue Sep 21, 2021 4:32 am

Even in this scene, which has to be considered an exterior scene, i cannot explain myself why i cannot archive the correct result by using a internal volume:

this is the result with world volume.
View 01 600x300.png

this is the result with the scene imersed in a internal volume.
View 03 600x300.png
Why in the second case we apreciate the volumetrics occluding parts of the scene but not interacting with the light?

The scene looks like this:
scene.jpg

Attached you can find the geometry.

Please help!
Attachments
vomuetrics03.zip
(995 Bytes) Downloaded 19 times

User avatar
Dade
Developer
Posts: 5545
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Volumetrics issues

Post by Dade » Tue Sep 21, 2021 10:09 am

You need to post a Blender or LuxCore scene, a .obj file doesn't include any information about volumes.
Support LuxCoreRender project with salts and bounties

daros
Posts: 209
Joined: Thu Dec 12, 2019 3:25 pm
Location: inside human language
Contact:

Re: Volumetrics issues

Post by daros » Tue Sep 21, 2021 12:45 pm

Here they are:
Attachments
prima.zip
(27.52 KiB) Downloaded 17 times
seconda.zip
(28.11 KiB) Downloaded 19 times

User avatar
Dade
Developer
Posts: 5545
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Volumetrics issues

Post by Dade » Wed Sep 22, 2021 10:57 am

daros wrote:
Tue Sep 21, 2021 12:45 pm
Here they are:
As written in my first post:
Dade wrote:
Fri Sep 17, 2021 10:55 am
I assume you have not defined the inside/outside volumes of the walls: the rays starting from the the light sources hit the walls and, at that point, LuxCore try to deduce the volume the rays were traveling in but the walls say there was no inside/outside volume. This is a problem because the light sources are inside the volume box.
If you add the following line to the scene:

Code: Select all

scene.materials.83042_4.volume.exterior = "envVolume"
It will work:

vol.jpg
Support LuxCoreRender project with salts and bounties

daros
Posts: 209
Joined: Thu Dec 12, 2019 3:25 pm
Location: inside human language
Contact:

Re: Volumetrics issues

Post by daros » Wed Sep 22, 2021 12:41 pm

Hi dade, thanks.
But what happens if we have 1000 layers inside the fog volume? Do we have to assign "envVolume" to all 1000 layers if we want that they interact correctly with the fog? And does this has further consequences?

daros
Posts: 209
Joined: Thu Dec 12, 2019 3:25 pm
Location: inside human language
Contact:

Re: Volumetrics issues

Post by daros » Wed Sep 22, 2021 12:59 pm

But does this not creates an infinite volume around the scene? Why your render is so much darker?
Your render should be simply the second rendering with the volumetrics of the first one...
At least this is what we are looking for.
Thanks for any feedback dade.

Post Reply