+1 vote

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: https://www.reddit.com/r/godot/comments/ar77mc/is_it_possible_to_use_a_viewporttexture_with_a/), it seems to work:

enter image description here

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:

enter image description here

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

asked Mar 12, 2019 in Engine by frankiezafe (86 points)

1 Answer

+1 vote

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?

answered Mar 12, 2019 by frankiezafe (86 points)

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

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.