Page 1 of 2

Volume bug at opacity = 0?

Posted: Tue Jul 09, 2019 9:29 am
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)

Re: Disney BRDF material

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

Re: Disney BRDF material

Posted: Wed Jul 10, 2019 11:15 am
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.

Re: Disney BRDF material

Posted: Wed Jul 10, 2019 11:26 am
by B.Y.O.B.
Your volume definitions are probably malformed. Hard to tell what exactly is wrong without the scene.

Re: Disney BRDF material

Posted: Wed Jul 10, 2019 12:09 pm
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.

Re: Disney BRDF material

Posted: Wed Jul 10, 2019 12:36 pm
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).

Re: Disney BRDF material

Posted: Wed Jul 10, 2019 2:36 pm
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. 😀

Re: Disney BRDF material

Posted: Wed Jul 10, 2019 10:05 pm
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

Volume bug at opacity = 0?

Posted: Thu Jul 11, 2019 8:19 am
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.

Re: Volume bug at opacity = 0?

Posted: Thu Jul 11, 2019 6:27 pm
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: