Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to prevent animation on initial load? #94

Open
alancwoo opened this issue Aug 19, 2020 · 2 comments
Open

How to prevent animation on initial load? #94

alancwoo opened this issue Aug 19, 2020 · 2 comments

Comments

@alancwoo
Copy link

I can't seem to figure out how to prevent the animation that occurs on the initial load? It seems to happen on every example provided as well.

There are a number of comments on the site that are asking this question as well: https://armchairastronautics.blogspot.com/p/skymap.html

No matter what I set as the initial center, the map always seems to animate on load

@oudeicrat
Copy link

When I set the third value (orientation) of config parameter center to 0, for example center:[0,0,0] my sky doesn't animate. Or you could try setting the ANIMDISTANCE variable in celestial.js (line 9) to some big number, for example 7

@ofrohn
Copy link
Owner

ofrohn commented Aug 20, 2020

If you set follow = "center" in the configuration, it should not animate on load and be set to whatever you put into center, [0,0] by default.
As to your second issue, center:[0,0,0] appears not to work as expected, while ANIMDISTANCE = 2*PI should switch off animation completely, as you found out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants