Page 1 of 1

Light without intensity control

Posted: Tue Apr 30, 2019 4:49 am
by kybio
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 ..

Re: Light without intensity control

Posted: Tue Apr 30, 2019 7:33 am
by Dade
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

Re: Light without intensity control

Posted: Tue Apr 30, 2019 11:26 am
by kybio
Thank you very much!! :)

Re: Light without intensity control

Posted: Tue Apr 30, 2019 10:55 pm
by kybio
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

Re: Light without intensity control

Posted: Wed May 01, 2019 8:56 am
by B.Y.O.B.
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.

Re: Light without intensity control

Posted: Wed May 01, 2019 10:47 am
by Dade
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

Re: Light without intensity control

Posted: Wed May 01, 2019 1:50 pm
by kybio
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