PointLamp vs Constraint

Use this forum for general user support and related questions.
S0rda
Posts: 81
Joined: Sun May 27, 2018 8:34 am

PointLamp vs Constraint

Post by S0rda » Fri Feb 08, 2019 3:08 pm

Hey. Please explain one thing. I use the Point light source, which should follow or be at a given distance from the object. However, when I use the limiter for a given light source, and adjust the size of the lamp, it’s as if the lamp is split and I get the “center” of the lamp and the “lamp” itself. I do not understand which of these is which, and which part of it actually shines.
Attachments
Снимок.PNG

User avatar
B.Y.O.B.
Developer
Developer
Posts: 2884
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: PointLamp vs Constraint

Post by B.Y.O.B. » Fri Feb 08, 2019 3:23 pm

Looks like a bug in our Blender addon: the function drawing the lamp size does not use the correct lamp position if a constraint is involved.
Can you upload a small testscene that shows the problem?
The true lamp position should be Blender's widget on the left.
Support LuxCoreRender project with salts and bounties

S0rda
Posts: 81
Joined: Sun May 27, 2018 8:34 am

Re: PointLamp vs Constraint

Post by S0rda » Fri Feb 08, 2019 3:31 pm

Keep the file please. This bug occurs if you set the limiter on "On the surface" and move the lamp.

S0rda
Posts: 81
Joined: Sun May 27, 2018 8:34 am

Re: PointLamp vs Constraint

Post by S0rda » Fri Feb 08, 2019 3:32 pm

untitled.blend
(468.16 KiB) Downloaded 38 times

S0rda
Posts: 81
Joined: Sun May 27, 2018 8:34 am

Re: PointLamp vs Constraint

Post by S0rda » Fri Feb 08, 2019 3:42 pm

Forgot to specify my data.
Windows 10, Blender 2.79, last version LuxRender addon for Blender.

User avatar
B.Y.O.B.
Developer
Developer
Posts: 2884
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: PointLamp vs Constraint

Post by B.Y.O.B. » Fri Feb 08, 2019 3:45 pm

Thanks for the report, I fixed the problem.
https://github.com/LuxCoreRender/BlendL ... issues/240
Support LuxCoreRender project with salts and bounties

S0rda
Posts: 81
Joined: Sun May 27, 2018 8:34 am

Re: PointLamp vs Constraint

Post by S0rda » Fri Feb 08, 2019 5:06 pm

However, what should I do?

User avatar
B.Y.O.B.
Developer
Developer
Posts: 2884
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: PointLamp vs Constraint

Post by B.Y.O.B. » Fri Feb 08, 2019 5:10 pm

Either wait for the next release or download a daily build: viewtopic.php?f=9&t=736 (note, daily builds are unstable and should not be used in production)

Or you apply the patch I did manually, it's just one line: https://github.com/LuxCoreRender/BlendL ... aac6451f7a
Support LuxCoreRender project with salts and bounties

S0rda
Posts: 81
Joined: Sun May 27, 2018 8:34 am

Re: PointLamp vs Constraint

Post by S0rda » Fri Feb 08, 2019 5:16 pm

Can you tell me how I can use this fix? From the command line blender?

User avatar
B.Y.O.B.
Developer
Developer
Posts: 2884
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: PointLamp vs Constraint

Post by B.Y.O.B. » Fri Feb 08, 2019 5:46 pm

The github page contains all the necessary information, but it might be a bit hard to read for someone not used to it.
Open your Blender addon folder and go into the BlendLuxCore folder, then into the "handlers" folder.
Then open the file draw_3dview.py in a text editor and replace the line marked in red with the line marked in green.

Note that this is just a cosmetic bug, so for the render itself it doesn't matter if you have the fix or not.
Support LuxCoreRender project with salts and bounties

Post Reply