Separate environment maps for reflections and lighting

Use this forum for general user support and related questions.
Post Reply
Storen
Posts: 4
Joined: Tue Jan 14, 2020 3:27 am

Separate environment maps for reflections and lighting

Post by Storen » Tue Jan 14, 2020 3:44 am

Is it possible to use two different environment maps - one for lighting (HDRI) and one for reflections (JPG)?
The same file (HDR image) seldom works well for both.

Alternatively is it possible to limit the LuxCore environment to affect only the reflections and use only lights for the scene lighting?

If not, could you suggest some alternative solutions?

User avatar
Dade
Developer
Posts: 3927
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Separate environment maps for reflections and lighting

Post by Dade » Tue Jan 14, 2020 10:58 am

You could use a large texture map sphere for reflection and made it shadow transparent to infinite light, it may work :idea:
Support LuxCoreRender project with salts and bounties

Storen
Posts: 4
Joined: Tue Jan 14, 2020 3:27 am

Re: Separate environment maps for reflections and lighting

Post by Storen » Tue Jan 14, 2020 12:48 pm

Dade, thank you very much for the prompt response!

Using a map sphere sounds like a really good idea. I am new to LuxCore. Could you please explain how to turn off the sphere shadow and make it transparent to infinite light? The only option in the Object properties I see is "visible to camera".

Do you know if there any plans to support multiple reflection maps in the future, or the LuxCore development team prefers to keep it as it is for simplicity?

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

Re: Separate environment maps for reflections and lighting

Post by B.Y.O.B. » Tue Jan 14, 2020 12:58 pm

You will need the latest build from https://github.com/LuxCoreRender/BlendL ... tag/latest
Then add a new material to a sphere and change the shadow color from the default black to white in the material output node.
Attachments
Capture.PNG
Capture.PNG (19.87 KiB) Viewed 348 times

Storen
Posts: 4
Joined: Tue Jan 14, 2020 3:27 am

Re: Separate environment maps for reflections and lighting

Post by Storen » Tue Jan 14, 2020 1:41 pm

Thank you B.Y.O.B.! That worked.

There is another problem - the scene reflections are very dark because the map-sphere is lit only by the bounced light.
I tried compensating this with the material "emission", however, this messes up my scene lighting.

Is there a way to render the map-sphere texture without any shading?

User avatar
Dade
Developer
Posts: 3927
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Separate environment maps for reflections and lighting

Post by Dade » Tue Jan 14, 2020 2:33 pm

Storen wrote:
Tue Jan 14, 2020 1:41 pm
There is another problem - the scene reflections are very dark because the map-sphere is lit only by the bounced light.
I tried compensating this with the material "emission", however, this messes up my scene lighting.

Is there a way to render the map-sphere texture without any shading?
You could try to enable sphere emission (some quite low value) and to disable sphere emission direct light sampling (aka DLS). This way should have little impact on scene lights and rendering speed.
Support LuxCoreRender project with salts and bounties

Storen
Posts: 4
Joined: Tue Jan 14, 2020 3:27 am

Re: Separate environment maps for reflections and lighting

Post by Storen » Tue Jan 14, 2020 5:15 pm

Awesome, thanks much!

Post Reply