Crash with small spread angles

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.
lighting_freak
Posts: 234
Joined: Thu Jan 18, 2018 6:02 pm

Re: Crash with small spread angles

Post by lighting_freak »

Hi,

I've tried to replace the circle with a square plane. (Edge size 2mm)
It should be 2 tris only, am I right? It's still crashing while using angles below 20 degrees.

BR
Last edited by lighting_freak on Sun Feb 11, 2018 11:03 am, edited 1 time in total.
OS - Windows 7 X64
CPU - Intel CORE i7
GPU1 - Variants of notebook card from nVidia
GPU2 - Variants of notebook onboard card from Intel
Lux - Latest possible relaease
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Crash with small spread angles

Post by Dade »

lighting_freak wrote: Sat Feb 10, 2018 12:25 pm I've tried to replace the circle with a square plane. (Edge size 2mm)
It should be 2 trial only, am I right? It's still crashing while using angles below 20 degrees.
It is still too small, just use a laser light source or a spot light.
Support LuxCoreRender project with salts and bounties
lighting_freak
Posts: 234
Joined: Thu Jan 18, 2018 6:02 pm

Re: Crash with small spread angles

Post by lighting_freak »

Hi,

with "laser light source" you're meaning the "Area" option, or did I miss anything in new lux core?
light_sources.JPG
light_sources.JPG (10.89 KiB) Viewed 5898 times
BR
OS - Windows 7 X64
CPU - Intel CORE i7
GPU1 - Variants of notebook card from nVidia
GPU2 - Variants of notebook onboard card from Intel
Lux - Latest possible relaease
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Crash with small spread angles

Post by Dade »

lighting_freak wrote: Sun Feb 11, 2018 11:06 am Hi,

with "laser light source" you're meaning the "Area" option, or did I miss anything in new lux core?

light_sources.JPG

BR
This:
laser.jpg
Support LuxCoreRender project with salts and bounties
lighting_freak
Posts: 234
Joined: Thu Jan 18, 2018 6:02 pm

Re: Crash with small spread angles

Post by lighting_freak »

Hi
This:

laser.jpg
Sure... :oops:

One more question, why is the amount of emitted energy depending on the spread angle?
In my mind each surface element (tri) emits light dependent on it size (area) but not the direction.
Thanks.

BR
OS - Windows 7 X64
CPU - Intel CORE i7
GPU1 - Variants of notebook card from nVidia
GPU2 - Variants of notebook onboard card from Intel
Lux - Latest possible relaease
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Crash with small spread angles

Post by Dade »

lighting_freak wrote: Sun Feb 11, 2018 7:55 pm One more question, why is the amount of emitted energy depending on the spread angle?
In my mind each surface element (tri) emits light dependent on it size (area) but not the direction.
At the moment, theta parameter just "cut" the emitted light (like if it was obstructed), it doesn't increase the emitted light when you decrease the angle. Yes, it would be more correct to keep the total emitted power constant.
Support LuxCoreRender project with salts and bounties
lighting_freak
Posts: 234
Joined: Thu Jan 18, 2018 6:02 pm

Re: Crash with small spread angles

Post by lighting_freak »

Hi,

does that mean, that I don't get 1 lumens output if I enter 1 lumen (1 watt and 1 efficiacy) and an angle smaller 90deg?

BR
OS - Windows 7 X64
CPU - Intel CORE i7
GPU1 - Variants of notebook card from nVidia
GPU2 - Variants of notebook onboard card from Intel
Lux - Latest possible relaease
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Crash with small spread angles

Post by Dade »

lighting_freak wrote: Mon Feb 12, 2018 6:57 pm does that mean, that I don't get 1 lumens output if I enter 1 lumen (1 watt and 1 efficiacy) and an angle smaller 90deg?
Yup, you get less. You should get (1.0 - cos(theta)) lumen.
Support LuxCoreRender project with salts and bounties
lighting_freak
Posts: 234
Joined: Thu Jan 18, 2018 6:02 pm

Re: Crash with small spread angles

Post by lighting_freak »

Hi,

This points directly to the next question... how is the energy management in area and laser light sources?
How do you solve this in volume emitters?

It might be to early to push functionality requests to you but do you think it might be possible to change the material emitter into an energy consistent one?

BR
OS - Windows 7 X64
CPU - Intel CORE i7
GPU1 - Variants of notebook card from nVidia
GPU2 - Variants of notebook onboard card from Intel
Lux - Latest possible relaease
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Crash with small spread angles

Post by Dade »

lighting_freak wrote: Tue Feb 13, 2018 5:57 am This points directly to the next question... how is the energy management in area and laser light sources?
It is correct as far as I know, only theta is an after tough. Theta is bit a problem because it is like defining 3 types of different light sources:

- Theta = 0 => it is like a laser light source

- 0 < Theta < 90 => it is light a spot light source

- Theta = 90 => it is normal area light source

The sampling used in the 3 cases is different so not updating energy management was a short cut for theta < 90.
lighting_freak wrote: Tue Feb 13, 2018 5:57 am How do you solve this in volume emitters?
It is considered a set of point lights with the specified parameters (and at the moment, it is only a scalar RGB value without power/efficiency).
lighting_freak wrote: Tue Feb 13, 2018 5:57 am It might be to early to push functionality requests to you but do you think it might be possible to change the material emitter into an energy consistent one?
Yes, I'm going to sort out the energy consistency with theta (everything else should be consistent as far as I know).
Support LuxCoreRender project with salts and bounties
Post Reply