Using viewport as texture in a panorama sky

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By frankiezafe

Hello to all,

I’m struggling to change a panorama sky dynamically via a viewport texture (i need to be able to change the hours of the day in my background).

At first sight ( following this tread: Reddit - Dive into anything), it seems to work:

the sea and cube are correctly influenced by the render done in “panorama” viewport (at the top of the tree)

but as soon as i change the viewport, this appends:

the background of the scene is adpated, but not the texture used to render the models!

i have tried with proxy texture and by setting the texture at every frame, nothing is working…

Anybody could help with this? (i’m compiling godot from the master branch)

Thanks in advance

:bust_in_silhouette: Reply From: frankiezafe

The problem comes from the management of the textures for skys: i’ve checked the code, and each radiance modification triggers a complete reprocess of the texture…
Anyone with an other solution to have my reflections with a dynamic background?

i eventually enforced the reprocessing of the texture with super small images (around 64x64), it worked without destroying the framerate, but definitively not the solution

frankiezafe | 2019-05-22 13:45