Extended Navigation Mode in NASA World Wind Java

2,441 views

Published on

World Wind is an open source 3D interactive world viewer created by NASA. This project has extended the basic navigation mode in World Wind version 0.4.1 to include the following:
- Look left & right
- Look up & down
- Change the altitude of the camera
- Fly mode (mouse only)

Published in: Education, Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,441
On SlideShare
0
From Embeds
0
Number of Embeds
9
Actions
Shares
0
Downloads
10
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Extended Navigation Mode in NASA World Wind Java

  1. 1. Extended Navigation Mode in NASA World Wind Java Sheryl Leong University of Trento, Italy Principles of Computer Graphics First Semester 2007/08
  2. 2. Introduction <ul><li>World Wind is an open source 3D interactive world viewer created by NASA. </li></ul><ul><li>It allows any user to zoom from outer space into any place on Earth and experience Earth terrain in visually rich 3D. </li></ul><ul><li>It supports both keyboard and mouse navigation modes. </li></ul>Basic Navigation Modes
  3. 3. Project Description <ul><li>This project has extended the basic navigation mode in version 0.4.1 to include the following: </li></ul><ul><ul><li>1) Look left & right </li></ul></ul><ul><ul><li>2) Look up & down </li></ul></ul><ul><ul><li>3) Change the altitude of the camera </li></ul></ul><ul><ul><li>4) Fly mode (mouse only) </li></ul></ul>Move mouse backward S Look down Move mouse forward W Look up Move mouse right D Look right Move mouse left A Look left Mouse + SHIFT key Keyboard
  4. 4. Project Description <ul><li>On the keyboard, Q increases the altitude of the camera while E decreases the altitude of the camera. </li></ul><ul><li>When the ‘ Alternate Mouse Navigation ’ checkbox on the left panel is checked, the following actions are possible: </li></ul><ul><ul><li>Left dragging the mouse simulates the fly mode. The speed is determined by the distance of the mouse dragged. Since speed is also affected by the speed of the computer, the desired speed can be adjusted by using the slider below checkbox. </li></ul></ul><ul><ul><li>Right dragging the mouse simulates the keyboard look left & right action. </li></ul></ul><ul><ul><li>Scrolling the mouse wheel simulates the keyboard look up & down action. </li></ul></ul><ul><ul><li>The camera’s altitude can also be changed by either holding down the middle button or holding down both the left and right buttons and then moving the mouse up or down. </li></ul></ul>
  5. 5. Project Implementation <ul><li>Look left & right </li></ul><ul><li>Used the existing method computeNewHeading(…) to rotate the view. Since this method also moved the camera, the position of the camera before rotation is first saved and after the rotation is applied, the camera is moved back to the original position. </li></ul><ul><li>Look up & down </li></ul><ul><li>Used the existing method computeNewPitch(…) to change the viewing angle. Since this method also changed the altitude of the camera, the altitude of the camera is first saved and after the method is applied, the altitude of the camera is reset back to the original altitude. </li></ul>
  6. 6. Project Implementation <ul><li>Change the altitude of the camera </li></ul><ul><li>Used the existing methods getAltitude() and setAltitude(…) to first retrieve the current altitude, increase/decrease the amount by a constant (500) and set the new altitude. </li></ul><ul><li>Alternate mouse navigation </li></ul><ul><li>A checkbox is added to the left panel to activate the alternate navigation mode for the mouse. </li></ul><ul><li>Fly mode </li></ul><ul><li>The distance of the left mouse dragged is used to determine the amount of rotation. A Timer task is used to rotate the world according to the direction of mouse drag and is scheduled to run every 25milliseconds (default). The task is started when the mouse is left dragged and stopped when the left mouse button is released. The flying speed can be adjusted using the slider below the checkbox that will change the delay time of the task. </li></ul>
  7. 7. Result
  8. 8. References <ul><li>The World Wind Java SDK alpha 4 - version 0.4.1, http://worldwind.arc.nasa.gov/java/0.4.1/worldwind.release.0.4.1.zip </li></ul><ul><li>NASA World Wind Web Manual, http://worldwind.arc.nasa.gov/manual.html </li></ul>

×