Light without intensity control

General project and community related discussions and offtopic threads.
Post Reply
kybio
Posts: 13
Joined: Tue Apr 30, 2019 4:11 am

Light without intensity control

Post by kybio » Tue Apr 30, 2019 4:49 am

Hello everyone, my name is Karlay and I'm working on a render based on the Luxcore API for my digital sculpture software. But I'm having trouble setting the light intensity ... when I move away the model and the light element appears in the scene the lighting seems ok, but when the light is not visible in the scene the light seems to be multiplied several times ..
Attachments
darkseid.scn
scn
(5.36 KiB) Downloaded 13 times
darkseid.cfg
cfg
(437 Bytes) Downloaded 18 times

User avatar
Dade
Developer
Developer
Posts: 2778
Joined: Mon Dec 04, 2017 8:36 pm

Re: Light without intensity control

Post by Dade » Tue Apr 30, 2019 7:33 am

It is because the default image pipeline includes an auto-linear tone mapper: it means, the brightness will be automatically adjusted. Just switch to a normal linear tone mapper by adding the following lines to your .cfg:

Code: Select all

film.imagepipelines.0.0.type = TONEMAP_LINEAR
film.imagepipelines.0.0.scale = 1.0
film.imagepipelines.0.1.type = GAMMA_CORRECTION
film.imagepipelines.0.1.value = 2.2
Support LuxCoreRender project with salts and bounties

kybio
Posts: 13
Joined: Tue Apr 30, 2019 4:11 am

Re: Light without intensity control

Post by kybio » Tue Apr 30, 2019 11:26 am

Thank you very much!! :)

kybio
Posts: 13
Joined: Tue Apr 30, 2019 4:11 am

Re: Light without intensity control

Post by kybio » Tue Apr 30, 2019 10:55 pm

Hi Dade, only more doubt.... HDR Image is very large in my scene using "infinite" type..
Is there a way to scale the HDR image and rotate it within the API?
I send image to look my problem
Attachments
dark.jpg

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

Re: Light without intensity control

Post by B.Y.O.B. » Wed May 01, 2019 8:56 am

kybio wrote:
Tue Apr 30, 2019 10:55 pm
Is there a way to scale the HDR image and rotate it within the API?
You can rotate it using the transformation matrix: https://wiki.luxcorerender.org/LuxCore_ ... ht_sources
You can't scale it, I think the only way to achieve something like that is using a wider camera angle. Or you could map it on a mesh light.
Support LuxCoreRender project with salts and bounties

User avatar
Dade
Developer
Developer
Posts: 2778
Joined: Mon Dec 04, 2017 8:36 pm

Re: Light without intensity control

Post by Dade » Wed May 01, 2019 10:47 am

You may want to check this set up with Sun+HDR (low res) and image background plugin: https://github.com/LuxCoreRender/LuxCor ... tcher2.cfg

img.jpg

By using a background image, you can decouple the HDR resolution from the image shown in the background. If you use sun+sky light source, you can even avoid to use an HDR image.

You can control the memory storage of any image map (including the one used for infinite light sources) by using the property:

Code: Select all

# 8 bits color storage
scene.lights.infinitelight.storage = byte
# or 16 bits color storage
scene.lights.infinitelight.storage = half
# or 32 bits color storage
scene.lights.infinitelight.storage = float
Support LuxCoreRender project with salts and bounties

kybio
Posts: 13
Joined: Tue Apr 30, 2019 4:11 am

Re: Light without intensity control

Post by kybio » Wed May 01, 2019 1:50 pm

Thank you guys, I will try yours alternatives

I am in the initial process of implementing the API integration in my software and I believe this forum is essential to get my doubts. My software is digital sculpture and can follow the project on http://www.meshmolder.com

Post Reply