Changing color in Light Group Mixer

Discussion related to the LuxCore functionality, implementations and API.
Post Reply
bartek_zgo
Posts: 60
Joined: Mon Oct 26, 2020 11:42 am

Changing color in Light Group Mixer

Post by bartek_zgo » Wed Apr 07, 2021 2:17 pm

Hi Guys,
I have seen that in blender there is Light Group Mixer. I'm trying to implement something similar. So for each light I have in the scene, I create a separate Light Group. In that way I get one image output (OUTPUT_RADIANCE_GROUP) for each light. After this I take all images and merge them to obtain the render. This is working. I can multiply each radiance group by some factor to make light stronger or weaker. That is working too.
Now I would like to implement a nice thing that is working in maxwell. I want to change light color. I have no idea how to do this. As I have seen in Light Group Mixer you can change light color, but it is working by mixing the original light with another color. So it means that if the light was pure red, I will never get pure green. How can I do this?

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

Re: Changing color in Light Group Mixer

Post by B.Y.O.B. » Wed Apr 07, 2021 9:07 pm

I'd say the user should use white light. Then the light groups can be colored with a simple multiply operation.

bartek_zgo
Posts: 60
Joined: Mon Oct 26, 2020 11:42 am

Re: Changing color in Light Group Mixer

Post by bartek_zgo » Fri Apr 09, 2021 6:47 am

Thank you very much. I had the same idea but wanted be sure before writing code. Your answers are very helpful.

Post Reply