Light without intensity control

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

Light without intensity control

Post 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 ..
Attachments
darkseid.scn
scn
(5.36 KiB) Downloaded 190 times
darkseid.cfg
cfg
(437 Bytes) Downloaded 197 times
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Light without intensity control

Post 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
Support LuxCoreRender project with salts and bounties
kybio
Posts: 14
Joined: Tue Apr 30, 2019 4:11 am

Re: Light without intensity control

Post by kybio »

Thank you very much!! :)
kybio
Posts: 14
Joined: Tue Apr 30, 2019 4:11 am

Re: Light without intensity control

Post 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
Attachments
dark.jpg
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Light without intensity control

Post 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.
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Light without intensity control

Post 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
Support LuxCoreRender project with salts and bounties
kybio
Posts: 14
Joined: Tue Apr 30, 2019 4:11 am

Re: Light without intensity control

Post 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
Post Reply