Page 2 of 3

Re: Bidirectional strange with glossy material

Posted: Thu Jul 05, 2018 1:04 am
by wasd
Triple beam splitter
Beams which go toward object (mesh) are not visible. Those going toward nothing are visible.
"Floor" on the second image has Null material. Mirror 3 is absent, don't mind the number.

Re: Bidirectional strange with glossy material

Posted: Thu Jul 05, 2018 6:16 am
by Burk
@WASD: strangely funny effect! ... and a nice operater, too.

I have now decided to use pure glass for my analysis of the light path. For complex materials, I could get unforeseen effects. Pure glass is better for my purposes. In the example, there is a container with water in it (you can not see it, it's pure glass and water) and the laser comes from the left and is inclined at 42° downwards. You can perfectly see the light path:
LidR -42° nur Glas 500 Samples 32 Minuten.png

Re: Bidirectional strange with glossy material

Posted: Thu Jul 05, 2018 7:26 am
by Dade
B.Y.O.B. wrote: Wed Jul 04, 2018 10:41 pm Try setting the camera volume to the same you used as the world volume.
I'm a bit lost, as this fixed the problem (it should) ?

Re: Bidirectional strange with glossy material

Posted: Thu Jul 05, 2018 7:33 pm
by wasd
Burk wrote: Thu Jul 05, 2018 6:16 am I have now decided to use pure glass for my analysis of the light path. For complex materials, I could get unforeseen effects. Pure glass is better for my purposes. In the example, there is a container with water in it (you can not see it, it's pure glass and water) and the laser comes from the left and is inclined at 42° downwards. You can perfectly see the light path:
Can I have your scene? I can hardly get any effect with volumes and lasers.

Re: Bidirectional strange with glossy material

Posted: Thu Jul 05, 2018 8:17 pm
by wasd
Dade wrote: Thu Jul 05, 2018 7:26 am
B.Y.O.B. wrote: Wed Jul 04, 2018 10:41 pm Try setting the camera volume to the same you used as the world volume.
I'm a bit lost, as this fixed the problem (it should) ?
That did not fixed the problem, but I've found what it is.

Red beam emitter is inside the scattering volume and it behaves funny.
Green beam emitter is outside the volume and behaves well.

Re: Bidirectional strange with glossy material

Posted: Thu Jul 05, 2018 8:59 pm
by Burk
wasd wrote: Thu Jul 05, 2018 7:33 pm Can I have your scene? I can hardly get any effect with volumes and lasers.
Sure, the scene has the settings of the file "Bidirectional strange with glossy material.blend" which I added to the initial post of this thread.
For the polystyrene material, it's better to set the mix factor of the material to 100 to use pure glass.

Re: Bidirectional strange with glossy material

Posted: Thu Jul 05, 2018 9:47 pm
by B.Y.O.B.
wasd wrote: Thu Jul 05, 2018 8:17 pm Red beam emitter is inside the scattering volume and it behaves funny.
Green beam emitter is outside the volume and behaves well.
Weird behaviour of light beams and volumes is almost always caused by incorrect settings.
We should probably make an in-depth tutorial and/or add warnings or tips to the UI.

You should always check if the interior/exterior volumes of the materials are correct and if the world and camera volume are set up correctly.
The camera volume auto-detection can only work with well-formed geometry and correctly specified interior/exterior volumes.

Re: Bidirectional strange with glossy material

Posted: Thu Jul 05, 2018 11:19 pm
by wasd
B.Y.O.B. wrote: Thu Jul 05, 2018 9:47 pm
wasd wrote: Thu Jul 05, 2018 8:17 pm Red beam emitter is inside the scattering volume and it behaves funny.
Green beam emitter is outside the volume and behaves well.
Weird behaviour of light beams and volumes is almost always caused by incorrect settings.
We should probably make an in-depth tutorial and/or add warnings or tips to the UI.

You should always check if the interior/exterior volumes of the materials are correct and if the world and camera volume are set up correctly.
The camera volume auto-detection can only work with well-formed geometry and correctly specified interior/exterior volumes.
That doesn't explaing the picture. What is specifically wrong in my setup? The scene is attached to the message. I really can't see anything "wrong" with it. Wrong is - in my opinion - the behaviour of light source that's inside the volume. What is the reason for light to behave that way?

I've found a "fix" for that, though it doesn't look like "right" solution - it is boolean modificator, that is - I put another volume around light source, so it appears outside scattering volume while being within it boundaries.

Re: Bidirectional strange with glossy material

Posted: Fri Jul 06, 2018 12:09 am
by B.Y.O.B.
wasd wrote: Thu Jul 05, 2018 11:19 pm What is specifically wrong in my setup?
I guess you have layers 1 and 2 enabled?
Your mirror material does not have an exterior volume specified (should be set to dust_volume).

There's one thing I don't understand though:
Dade, why can't we specify exterior volumes for light sources?

Re: Bidirectional strange with glossy material

Posted: Fri Jul 06, 2018 7:53 am
by Dade
B.Y.O.B. wrote: Fri Jul 06, 2018 12:09 am Dade, why can't we specify exterior volumes for light sources?
I never tough to the implication, it is not required for Path tracing but it is for BiDir.