Background image

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

Background image

Post by bartek_zgo »

Hi Guys,
I have a HDRI image that I want to use as background. But this image is not 180 degrees in vertical but only 90.
environment.PNG
So I want to repeat this image 2 times in vertical. Than we put a ground surface, and don't care about the sky under the ground. Is it possible to do this?

Code: Select all

scene.lights.__WORLD_BACKGROUND_LIGHT__.gain = 1.19 1.19 1.19
scene.lights.__WORLD_BACKGROUND_LIGHT__.transformation = -1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 
scene.lights.__WORLD_BACKGROUND_LIGHT__.id = 0
scene.lights.__WORLD_BACKGROUND_LIGHT__.temperature = -1
scene.lights.__WORLD_BACKGROUND_LIGHT__.temperature.normalize = 0
scene.lights.__WORLD_BACKGROUND_LIGHT__.visibility.indirect.diffuse.enable = 1
scene.lights.__WORLD_BACKGROUND_LIGHT__.visibility.indirect.glossy.enable = 1
scene.lights.__WORLD_BACKGROUND_LIGHT__.visibility.indirect.specular.enable = 1
scene.lights.__WORLD_BACKGROUND_LIGHT__.type = "infinite"
scene.lights.__WORLD_BACKGROUND_LIGHT__.file = "imagemap-00001.exr"
scene.lights.__WORLD_BACKGROUND_LIGHT__.gamma = 1
scene.lights.__WORLD_BACKGROUND_LIGHT__.storage = "half"
scene.lights.__WORLD_BACKGROUND_LIGHT__.sampleupperhemisphereonly = 0
scene.lights.__WORLD_BACKGROUND_LIGHT__.visibilitymapcache.enable = 0
I was trying to play with transformation matrix, but it looks this scales the sphere, not the texture. I found out how to rotate the sky, but no idea how to scale it (or repeat).
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Background image

Post by Dade »

I don't see a way to do it however "sky" light source has already an option for having a ground and "ground" color so the some concept could be extended to all infinite light sources.

Note: the scale and translate part of the transformation matrix have no practical effect at all, only the rotations do matter.
Support LuxCoreRender project with salts and bounties
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Background image

Post by B.Y.O.B. »

bartek_zgo wrote: Mon Nov 30, 2020 12:46 pm So I want to repeat this image 2 times in vertical. Than we put a ground surface, and don't care about the sky under the ground. Is it possible to do this?
What about doing it in an image editing program? Or is memory usage a concern?
User avatar
Sharlybg
Donor
Donor
Posts: 3101
Joined: Mon Dec 04, 2017 10:11 pm
Location: Ivory Coast

Re: Background image

Post by Sharlybg »

What about doing it in an image editing program? Or is memory usage a concern?
This feature is requested because user are exoecting the host software to behave like that ( as it is the case with maxwell). The final goal of the app is extrem simplicity.
So for Bartek knowing where to start to have it working in this duplicating mirror way is crucial.
Support LuxCoreRender project with salts and bounties

Portfolio : https://www.behance.net/DRAVIA
Post Reply