Mapping hdr file to area light

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.
Post Reply
stefdln
Posts: 29
Joined: Tue Oct 23, 2018 11:44 am
Location: FR

Mapping hdr file to area light

Post by stefdln »

Hey everyone
I'm a newcomer to LuxCore and I appear to have a question
Is there a way to add a hdr or exr texture file to an area light to get more interesting lighting/reflections from these ?
This could be used to mimick softboxes for instance
Thanks in advance for your answer
Cheers
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Mapping hdr file to area light

Post by B.Y.O.B. »

Yes, but you will have to use a plane object with material nodes.
The Blender area light is just a shortcut for this, internally it works the same.
Any material can emit light.

Then just create a UV map for the plane and set up the material:
(remember to set gamma to 1 on the image node, most HDR images have gamma 1 instead of 2.2)
Attachments
2018-10-23_19-21-22.png
stefdln
Posts: 29
Joined: Tue Oct 23, 2018 11:44 am
Location: FR

Re: Mapping hdr file to area light

Post by stefdln »

Thanks a lot for the answer
I guess Multiple Importance Sampling work with this type of setup too ?
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Mapping hdr file to area light

Post by B.Y.O.B. »

To be honest, no idea.
You mean that brighter parts of the area light are sampled with higher probability than dark parts?
Dade, do triangle lights use MIS?
stefdln
Posts: 29
Joined: Tue Oct 23, 2018 11:44 am
Location: FR

Re: Mapping hdr file to area light

Post by stefdln »

That's exactly what I mean yes
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Mapping hdr file to area light

Post by Dade »

A projection light source may be also what you are looking for, it depends on what you are trying to achieve. It is like the light emitted by a TV screen Vs. the light emitted by a movie theater projector.
B.Y.O.B. wrote: Tue Oct 23, 2018 6:18 pm Dade, do triangle lights use MIS?
I think he is confusing MIS and (Multile Importance sampling) just IS (Importance sampling). LuxCore always uses MIS for any intersectable light source (because you have multiple way to receive light from the light source).

However it uses Importance sampling for infinite light sources (HDR light source) but not for a light source with a texture applied. IS means you sample more the brighter area of the image.
Support LuxCoreRender project with salts and bounties
stefdln
Posts: 29
Joined: Tue Oct 23, 2018 11:44 am
Location: FR

Re: Mapping hdr file to area light

Post by stefdln »

Thanks for clarifying that point
Post Reply