Bidirectional strange with glossy material

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.
wasd
Posts: 319
Joined: Tue Apr 24, 2018 7:20 pm

Re: Bidirectional strange with glossy material

Post 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.
Attachments
6.png
7.png
CPU Bidir + Metropolis | Core i5-4570
Burk
Posts: 29
Joined: Wed Jun 06, 2018 5:58 pm
Location: Hamburg, Germany

Re: Bidirectional strange with glossy material

Post 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
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Bidirectional strange with glossy material

Post 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) ?
Support LuxCoreRender project with salts and bounties
wasd
Posts: 319
Joined: Tue Apr 24, 2018 7:20 pm

Re: Bidirectional strange with glossy material

Post 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.
CPU Bidir + Metropolis | Core i5-4570
wasd
Posts: 319
Joined: Tue Apr 24, 2018 7:20 pm

Re: Bidirectional strange with glossy material

Post 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.
Attachments
8.png
laser-1.blend
(541.36 KiB) Downloaded 212 times
CPU Bidir + Metropolis | Core i5-4570
Burk
Posts: 29
Joined: Wed Jun 06, 2018 5:58 pm
Location: Hamburg, Germany

Re: Bidirectional strange with glossy material

Post 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.
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Bidirectional strange with glossy material

Post 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.
wasd
Posts: 319
Joined: Tue Apr 24, 2018 7:20 pm

Re: Bidirectional strange with glossy material

Post 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.
Attachments
9.png
CPU Bidir + Metropolis | Core i5-4570
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Bidirectional strange with glossy material

Post 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?
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Bidirectional strange with glossy material

Post 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.
Support LuxCoreRender project with salts and bounties
Post Reply