Comments (4)
@kcgolden The basic idea of centring the map on an RA/Dec is great and something I've been wanting to exist for a while for similar reasons to yours. Unfortunately none of the current projections are set up for that; they are either longitude/latitude based or show the whole-sky with the poles fixed to the top/bottom. Many of them also take short-cuts in code/maths (for speed) on the assumption that the horizon stays attached to the bottom of the screen.
I have been working on a more general projection (gnomic tan) for this RA/Dec use-case but I've not been able to get it working correctly. I'm messing something up in my maths as I get reflections of the sky showing up at various positions on the sky.
Animating a pan is another problem. This feature would have to be limited to only work in this one projection. Should it go via the shortest path on the sky (a great circle)? That would probably involve using quaternions (I never quite got my head around them). Perhaps I should treat it like a standard telescope mount and just rotate in RA and Dec separately keeping north upwards. That will have less than ideal behaviour near the poles though.
So, in summary, I'd love to have those features but at the moment I'm a bit stuck on getting them implemented.
from virtualsky.
@kcgolden You may like to know that I think I've sorted out the problem I was having with the gnomic tan projection. I've committed an update to Github but it isn't yet on the live site. I've got a test version at http://strudel.org.uk/virtualsky/?projection=gnomic&gradient=false&ground=false&dec=22.0145&ra=83.6330833&fov=60.
I haven't addressed your suggestion of panning yet.
from virtualsky.
There we go. I've added a function very similar to the one you suggested. The only difference is that you specify the duration of the pan in milliseconds (x1000) as that matches with how other libraries set durations. Angles are provided in decimal degrees. So to pan to the Orion Nebula in 2 seconds use e.g.
planetarium.panTo(83.8220833,-5.3911111,2000);
from virtualsky.
That's really awesome. Thanks for doing that. I can't wait to get a chance
to implement this on my site. I'll let you know when.
On Thu, Nov 7, 2013 at 4:16 PM, Stuart [email protected] wrote:
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/12
.
from virtualsky.
Related Issues (20)
- Toggle Messier/external resources objects on/off HOT 4
- Constellation lines weight HOT 2
- Can I use "city" instead of coordinates? HOT 1
- How to show selected star ?
- Mod operation not needed, HOT 1
- React Component HOT 1
- Ability to add moving pointer
- Can you get back the current coordinates after the user pans/zooms?
- LookUp service HOT 4
- draw satellite orbit HOT 6
- runing problem HOT 5
- Thumbnails not appearing when moused over on Messier Objects HOT 2
- How do I use the library in my Vuejs app?? HOT 1
- How to know when planetarium is ready? HOT 2
- Add custom ground HOT 3
- jumping Jupiter HOT 1
- German language problem HOT 3
- Labels and lines not shown in android webview element HOT 1
- clarification on terms of use HOT 3
- Panning in `stereo` projection HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from virtualsky.