LuxCoreRender / BlendLuxCore

Blender Integration for LuxCore
GNU General Public License v3.0
727 stars 91 forks source link

wrong export of area lights in final render #42

Closed neo2068 closed 6 years ago

neo2068 commented 6 years ago

System Information

windows 10, NVIDIA GTX 1080 + GTX 780

Software Version

Blender version: 2.79, 850f736, LuxCore version: 2.0 alpha1, 9b3ae9168be1495395e8057165eb1948c79b444b

Short description of error The plane of an area light is not exported correctly in final render mode. In viewport rendering everything is fine.

Exact steps for others to reproduce the error Add an area light visible in the camera view and hit F12. Viewport render: arealight1

Final render: grafik

neo2068 commented 6 years ago

Could that error be related with the change of the transform matrix code for motion blur in LuxCore?

Theverat commented 6 years ago

It seems like this code is not working properly: https://github.com/LuxCoreRender/BlendLuxCore/blob/master/export/light.py#L333 In viewport render, we use instancing (by setting the transformation property of the object). In final render, we don't use instancing for better performance. In this case, we want to "bake" the transformation into the mesh. The latter case seems to fail.

Dade916 commented 6 years ago

I'm trying to reproduce the problem here but it works fine. Can you post the .blend ?

Dade916 commented 6 years ago

Ok, it is a lamp => area, not a mesh area light.

Dade916 commented 6 years ago

I should have fixed the problem.

neo2068 commented 6 years ago

Sorry, commit hash came from BlendLuxCore. Dade fixed the issue in the meantime.