Page 1 of 1

Background image

Posted: Mon Nov 30, 2020 12:46 pm
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).

Re: Background image

Posted: Mon Nov 30, 2020 1:18 pm
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.

Re: Background image

Posted: Mon Nov 30, 2020 4:36 pm
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?

Re: Background image

Posted: Mon Nov 30, 2020 7:57 pm
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.