Page 1 of 2

Yet another volume confusion

Posted: Thu Jun 27, 2019 1:02 pm
by epilectrolytics
During the testing of the new hybrid path engine I created this file
cube3.blend.zip
(244.84 KiB) Downloaded 177 times
in which I couldn't get the blue sky to show when using PathOCL.
But it shows in PathCPU and BiDir.
.
Image


Dade told me it doesn't work because I didn't set a world volume, but when I do that (either the fog volume or a new clear volume) still I get no blue sky with PathOCL.
:?
Could someone please show me how I get this to work?

Re: Yet another volume confusion

Posted: Thu Jun 27, 2019 2:56 pm
by lighting_freak
Hi,

That sounds like an not totally resolved thread I've opened some time ago:

viewtopic.php?f=4&t=820&p=8825#p8832

BR

Re: Yet another volume confusion

Posted: Thu Jun 27, 2019 2:57 pm
by Dade
epilectrolytics wrote: Thu Jun 27, 2019 1:02 pm Dade told me it doesn't work because I didn't set a world volume, but when I do that (either the fog volume or a new clear volume) still I get no blue sky with PathOCL.
:?
The correct result is the one with grey sky, not the one with clear one. The sky is very far and scattering will make it very hard to see. The clear sky result is usually what you get by not assigning the world volume (I will check the scene when I'm back to my PC).

If you want a clear sky, just use a bounding "NULL" material box around the room with the "fog" volume. It should produce the clear sky.

It is like in real world:

- only dusty room => sky visible
- dusty room + fog => grey sky

Re: Yet another volume confusion

Posted: Thu Jun 27, 2019 3:38 pm
by epilectrolytics
lighting_freak wrote: Thu Jun 27, 2019 2:56 pm That sounds like an not totally resolved thread I've opened some time ago:

viewtopic.php?f=4&t=820&p=8825#p8832
Thanks for that link, I'm going to read through it.
Dade wrote: Thu Jun 27, 2019 2:57 pm The correct result is the one with grey sky, not the one with clear one.
That would be the case if I used a world volume and no fog box and if I do so, indeed PathCPU and PathOCL show the grey result as expected.
The scene is meant to show a dusty interior with a rather clear sky, no atmospheric effect.
If you want a clear sky, just use a bounding "NULL" material box around the room with the "fog" volume. It should produce the clear sky.
But that's what I did in the file.
The room (walls etc) has thickness and the inside seen by the camera is the outside of the room geometry, but inside of the fog box.

What confuses me is that PathCPU renders differently than PathOCL, isn't that an OpenCL bug then?

Re: Yet another volume confusion

Posted: Thu Jun 27, 2019 3:42 pm
by lacilaci
While fooling around with caustics and volumes I got confused too..

I have a glass railing panels in a scene and their absorbtion is affecting the whole scene for some reason. Not sure if related

here's glass panel with 1m absorbtion distance
glasspanel1mabsorbtion.jpg
10absorbtion (notice sky remains dark/black)
glasspanel10mabsorbtion.jpg
100m absorbtion and sky looks normal(it's a unicolor background not actual sky) and windows use archglass not the same as railing panels.
glasspanel100mabsorbtion.jpg

Re: Yet another volume confusion

Posted: Thu Jun 27, 2019 4:07 pm
by B.Y.O.B.
@lacilaci Check if your glass sheets have thickness and if the normals are pointing in the right directions (outside).

Re: Yet another volume confusion

Posted: Thu Jun 27, 2019 4:22 pm
by epilectrolytics
lighting_freak wrote: Thu Jun 27, 2019 2:56 pm That sounds like an not totally resolved thread I've opened some time ago:

viewtopic.php?f=4&t=820&p=8825#p8832
Fox wrote: Wed Jan 09, 2019 8:21 pm Seems like with the type of hetero scattering volume, the camera can see out of window.
Yep, that works!

But still PathCPU renders deeper blue than PathOCL.
Something's wrong with OCL here, but maybe something's wrong with homogenous volume too?

Re: Yet another volume confusion

Posted: Thu Jun 27, 2019 5:42 pm
by wasd
Setting camera volume makes no sense.

Re: Yet another volume confusion

Posted: Thu Jun 27, 2019 7:01 pm
by epilectrolytics
I made that a habit since I discovered that auto-detect is not stable through animations.

Render with hetero volume and a tiny little hint of blue:
cube3.jpg

Re: Yet another volume confusion

Posted: Fri Jun 28, 2019 9:39 am
by Dade
epilectrolytics wrote: Thu Jun 27, 2019 1:02 pm Dade told me it doesn't work because I didn't set a world volume, but when I do that (either the fog volume or a new clear volume) still I get no blue sky with PathOCL.
I should have fixed the bug.