mpetroff / pannellum

Pannellum is a lightweight, free, and open source panorama viewer for the web.
https://pannellum.org/
MIT License
4.25k stars 722 forks source link

How can I set sceneFadeDuration value dynamically? #525

Open choiyoonho2 opened 6 years ago

choiyoonho2 commented 6 years ago

I want to set sceneFadeDuration value when I change the scene. So I want to use the scene change effect dynamically. What should i do?

mpetroff commented 6 years ago

I'm not really sure what you're asking.

choiyoonho2 commented 6 years ago

I want to change sceneFadeDuration value after scene loaded. I'm trying to change like this. var config = viewer.getConfig(); config.sceneFadeDuration = 2000; but It's not working.

mpetroff commented 6 years ago

Changing the configuration returned by getConfig won't do anything. Changing the scene fade duration at runtime isn't supported.

What are you trying to accomplish by changing the fade duration? It may be possible to accomplish what you want via other means (depending on what you're trying to do, of course).