Volume bug at opacity = 0?

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
FarbigeWelt
Donor
Donor
Posts: 1046
Joined: Sun Jul 01, 2018 12:07 pm
Location: Switzerland
Contact:

Volume bug at opacity = 0?

Post by FarbigeWelt »

Yesterday, I tried to set up a transparent Disney BRDF material but failed. I also tried to combine it with volumes and failed.
Are both possible and if yes how?

Note
With Lux materials opacity has a different effect than with BRDF materials. The latter disappears completely the first revels internal volume completely if opacity is set to 0.

(BRDF - Bidirectional reflectance distribution function)
Light and Word designing Creator - www.farbigewelt.ch - aka quantenkristall || #luxcorerender
MacBook Air with M1
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Disney BRDF material

Post by B.Y.O.B. »

Works as expected here.
Can you upload a small scene showing the problem?
Attachments
2019-07-09_11-37-01.png
User avatar
FarbigeWelt
Donor
Donor
Posts: 1046
Joined: Sun Jul 01, 2018 12:07 pm
Location: Switzerland
Contact:

Re: Disney BRDF material

Post by FarbigeWelt »

B.Y.O.B. wrote: Tue Jul 09, 2019 9:38 am Works as expected here.
Can you upload a small scene showing the problem?
Thank you for testing.

Yesterday, I had the same issue with Lux materials, the objects disappeared completely with opacity 0.0.
I wondered about it and looked for a solution. There is an easy one I do not understand. I removed the volume node from the camera. And there it was again, absorption and scattering of homogeneous volume. I am not sure if this is intended. I beg you an explanation.
Light and Word designing Creator - www.farbigewelt.ch - aka quantenkristall || #luxcorerender
MacBook Air with M1
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Disney BRDF material

Post by B.Y.O.B. »

Your volume definitions are probably malformed. Hard to tell what exactly is wrong without the scene.
User avatar
FarbigeWelt
Donor
Donor
Posts: 1046
Joined: Sun Jul 01, 2018 12:07 pm
Location: Switzerland
Contact:

Re: Disney BRDF material

Post by FarbigeWelt »

B.Y.O.B. wrote: Wed Jul 10, 2019 11:26 am Your volume definitions are probably malformed. Hard to tell what exactly is wrong without the scene.
How? Volume definitions seem rather fool proof, aside of freaky values for scattering.
However, after I replaced the CPU fan, worn -out due to frequent high duty cycles, I post the relevant scenes.
Light and Word designing Creator - www.farbigewelt.ch - aka quantenkristall || #luxcorerender
MacBook Air with M1
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Disney BRDF material

Post by B.Y.O.B. »

FarbigeWelt wrote: Wed Jul 10, 2019 12:09 pm How? Volume definitions seem rather fool proof, aside of freaky values for scattering.
We get scenes with wrong setups all the time.
It's mostly about incoherent interior/exterior volume settings (e.g. ray starts in volume x but surfaces assumes volume y as exterior).
User avatar
FarbigeWelt
Donor
Donor
Posts: 1046
Joined: Sun Jul 01, 2018 12:07 pm
Location: Switzerland
Contact:

Re: Disney BRDF material

Post by FarbigeWelt »

B.Y.O.B. wrote: Wed Jul 10, 2019 12:36 pm We get scenes with wrong setups all the time.
It's mostly about incoherent interior/exterior volume settings (e.g. ray starts in volume x but surfaces assumes volume y as exterior).
Actually volumes are nicely described here Volumes and here Camera Panel - Camera Volume

Maybe there is one or are two things missing like volumes should overlap in case of a glass of water and priorities should increase from outest to most inner volume in this case.
A very important point is definitely missing (or I overlooked it by fast reading): Check the surface normals of your objects because internal and external volume depend on surface’s normal direction. (Most of time I get strange behavior/results the normals are the reason.

Depending on Blender operation surface normals get contra intuition directions.

I can only guess my observation is based again in wrongly oriented normals. All other stuff is logical and wrong scene setups have their roots in laziness or ignoring manual pages. RTFM, read the lovely manual. 😀
Light and Word designing Creator - www.farbigewelt.ch - aka quantenkristall || #luxcorerender
MacBook Air with M1
User avatar
FarbigeWelt
Donor
Donor
Posts: 1046
Joined: Sun Jul 01, 2018 12:07 pm
Location: Switzerland
Contact:

Re: Disney BRDF material

Post by FarbigeWelt »

B.Y.O.B. wrote: Wed Jul 10, 2019 11:26 am Your volume definitions are probably malformed. Hard to tell what exactly is wrong without the scene.
Please, have a look at both scenes. Enable view port rendering and spot the difference. Thank you. Because cannot see why object disappears completely when camera volume is set to air clear volume.
Disappearing with Opacity 0.0.zip
Disappearing with Opacity 0.0
(4.35 MiB) Downloaded 99 times
Light and Word designing Creator - www.farbigewelt.ch - aka quantenkristall || #luxcorerender
MacBook Air with M1
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Volume bug at opacity = 0?

Post by B.Y.O.B. »

I don't see anything wrong with the scene. It might be a bug or a limitation.
When using a null material, it works as expected.
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Volume bug at opacity = 0?

Post by Dade »

Transparency makes both the surface and the volume not visible: the object is not hit at all. If a ray doesn't hit the surface, it will never enter the interior volume (and then exit).

You should try to mix Disney wit Null, it should work :idea:
Support LuxCoreRender project with salts and bounties
Post Reply