1 / 11

Worldwide Telescope

Worldwide Telescope. Using the WWT HTML5 Web Control in your applications Jonathan Fay Microsoft Research. WorldWide Telescope API options. WorldWide Telescope desktop clinet using Layer Control API Use any language that supports HTTP calls

basil
Télécharger la présentation

Worldwide Telescope

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Worldwide Telescope Using the WWT HTML5 Web Control in your applications Jonathan Fay Microsoft Research

  2. WorldWide Telescope API options • WorldWide Telescope desktop clinet using Layer Control API • Use any language that supports HTTP calls • Desktop client is windows only, but LCAPI can run anywhere. • Use full dome, HMD, Kinect and other technologies • WebClient for HTML5 • Jscript client code glue • Runs on virtually any HTML5 client • WebClient for Silverlight (deprecated)

  3. When to use the LAYER Control API

  4. What is the HTML5 control • A Scriptable Sky & Planet viewer • A canvas for adding interactive visual elements using coordinate systems • A scalable viewer for your images and data • Hundreds of all-sky surveys in several bands instantly available for reference • Playback of tours by script control

  5. Getting started • On-line user guide at: http://www.worldwidetelescope.org/authoring/Developer.aspx?Page=WebControlScriptReference

  6. Hello World Sample

  7. <!DOCTYPE html > <html> <head> <title>Hello World with WWT</title> <script src="http://www.worldwidetelescope.org/scripts/wwtsdk.aspx"></script> <script> varwwt; function initialize() { wwt = wwtlib.WWTControl.initControl("WWTCanvas"); wwt.endInit(); } </script> </head> <body onload="initialize()"> <div id="WWTCanvas" style="width:750px; height:750px; border-style: none; border-width: 0px;"></div> </body> </html>

  8. Adding a ready event function initialize() { wwt = wwtlib.WWTControl.initControl("WWTCanvas"); wwt.add_ready(wwtReady); wwt.endInit(); } functionwwtReady() { wwt.loadImageCollection("http://www.worldwidetelescope.org/COMPLETE/wwtcomplete.wtml"); wwt.gotoRaDecZoom(286.485, -27.5231666666667, 60, false); }

  9. Adding your data • You add your own glue to bind together your database/images to viewer • Load WTML collections for custom background, foreground image sets • Plot data points, lines and polygons with click-back notification • Use libraries your favorite Library for VOTable & WebSAMP handling

  10. Sample “Complete coverage map tool” • http://www.worldwidetelescope.org/complete/wwtcoveragetool5.htm

  11. Mahalo!

More Related