Page 2 of 3

Re: problem with orthographic camera

Posted: Sun Feb 10, 2019 8:49 am
by mick
If I mark the glass rough with a roughness of 0.1 the glass shadow becomes dark for to orthographic camera.

But with a roughness of 0.05 again there is more light passing through the glass than through air. This is also true if I remove the world volume, or set its scattering to zero.

Why is there more light energy passing through glass than passing by?

BTW: The extra light is coming from passing through the glass. I tested by coloring. It's colored by volume absorption and by material transmission, not by material reflexion (just a little on the sides).

???

Re: problem with orthographic camera

Posted: Sun Feb 10, 2019 9:30 am
by mick
Idea for workaround: place a perspective camera extremely far away

All other objects are camera invisible. Air volume is clear, absorption = 0 0 0.

Will this work for reliable measurement, or will I run in other issues?

Re: problem with orthographic camera

Posted: Sun Feb 10, 2019 11:44 am
by epilectrolytics
Sorry to be of no help.
I tested your blend file and found the geometry with no fault.
I could not get any reasonable behaviour from the orthographic camera either.

Volumes with absorption or scattering introduce distance as a parameter.
While the perspective camera has a defined place in the coordinate system, the orthographic one is in a way a distance-less camera.
My guess is, it cannot deal with scattering or absorption because its relative distance is not defined or in a way not compatible to volumetric algorithms.

I hope you get your last approach to work, good luck!

Re: problem with orthographic camera

Posted: Sun Feb 10, 2019 3:36 pm
by Dade
mick wrote: Sat Feb 09, 2019 9:25 pm I created the scene in blender, more or less. At least it shows the same strange behavior for orthographic camera.
File attached.

To compare just move to camera to e.g. z=-1 or switch to Perspective.
Do you mean changing the camera position from:

Code: Select all

scene.camera.lookat.orig = 0 0 -15
to:

Code: Select all

scene.camera.lookat.orig = 0 0 -1
:?:

I'm testing your scene but changing the camera Z position produces the same rendering (as expected).

Re: problem with orthographic camera

Posted: Sun Feb 10, 2019 3:57 pm
by mick
I'm testing your scene but changing the camera Z position produces the same rendering (as expected).
Setting the origin of an orthographic camera close to the floor (e.g. -15) brings a circular pattern below the glass. More distant (e.g. -1) this patter is not recognizable. Where does this pattern come from? And why does distance matter for orthographic?

With perspective camera I also get a pattern:
image_persp_close.png
I guess this is the shine of the sun on the matte floor. And it's mainly visible outside of the shadow. Why is it only seen when the camera is close to the floor?

The main question still is: Why is the shadow below the glass lighter than the irradiated area when rendered with orthographic camera?

Re: problem with orthographic camera

Posted: Sun Feb 10, 2019 4:16 pm
by mick
Just another test. Close orthographic camera with another glass in the opposite quarter. That glass is much thinner, hence more light and gloss from the sun. And again almost no light outside of the shadow.
image_ortho_close_2.png
It seems like the renderer is almost neglecting direct rays. (direct between sun the plane that is observed by the orthographic camera) ???

Re: problem with orthographic camera

Posted: Sun Feb 10, 2019 4:25 pm
by mick
Just tested to switch the renderer to cycle or blender. Both corrects the situation: shadow becomes darker than the rest also with orthographic camera.

So I really think that there is a bug in the handling of orthographic camera in LuxCoreRender.

Re: problem with orthographic camera

Posted: Sun Feb 10, 2019 5:31 pm
by Dade
I don't understand. From the scene you posted I get a totally different output:

test.jpg

What do you get ?

Re: problem with orthographic camera

Posted: Sun Feb 10, 2019 5:54 pm
by mick
I'm using LuxCoreRender Blender plugin 2.1 just download two hours ago.

The attached file gives me the odd result shown in my previous post.

Would you please check. Are there relevant changes in your alpha version?

Re: problem with orthographic camera

Posted: Sun Feb 10, 2019 10:41 pm
by Dade
mick wrote: Sun Feb 10, 2019 5:54 pm I'm using LuxCoreRender Blender plugin 2.1 just download two hours ago.

The attached file gives me the odd result shown in my previous post.

Would you please check. Are there relevant changes in your alpha version?
The reason I was getting different results is because I was using LuxCoreUI. The only way it affects the rendering is by overwriting the "scene.camera.screenwindow" property to match the rendering window.

The source of the problem is in that property. If you check how BlendLuxCore export the property:

Code: Select all

scene.camera.screenwindow = -5 5 -5 5
It looks wrong, I'm not sure and tomorrow I will check but it should be:

Code: Select all

scene.camera.screenwindow = -1 1 -1 1
Is your scene using some strange border render setting ?

I have yet to check where exactly is the problem but the root is in "scene.camera.screenwindow" for sure.