AppGlobe Infrastructure

From Immersive Visualization Lab Wiki
Jump to: navigation, search

AppSwitcher Demo Plugin


The AppSwitcher demo runs two "apps" in the OSG Earth environment. It displays a large point-cloud model of an archaeological dig site from the ArtifactVis plugin over San Diego, and it has a small animation of four planes circling over Florida. Distance to the apps is displayed in a sub-menu of the main CalVR menu, and various features of the apps change based on the distance calculation -- for example, the point-cloud is resource intensive, so it is only rendered when the user is closer than the "near" threshold, and the plane app makes a control for the speed of the planes accessible only when the user is near the planes.


Many of the configuration options for the demo plugin have been moved into the XML config file. Here are some of the settings:

 <AppSwitcher value="on">
      <!-- provide paths to models used -->
      <cloudpath value="/path/to/KIS2.ply" />
      <planepath value="/path/to/planeIcon.obj" />

    <!-- parameters for the ArtifactVis dig site -->
        <!-- rotations for the site orientation, in radians -->



        <!-- kilometers -->

       threshNear = "2000"
       threshFar  = "5000"


Once the demo plugin has been loaded into CalVR with OSG Earth enabled, the AppSwitcher menu should be available as an option in the CalVR menu. The dig site and plane distances are approximated in kilometers. Also provided is an indication of what mode the app is in (near/middle/far) based on the threshNear and threshFar options under "digsite" and "flyer" configuration options. If you fly the simulation over Florida, a range selector will be added to choose the speed of the planes when you are within the "near" threshold (and this option will be removed at other times). The planes are rendered in both "near" and "middle" modes, but the dig site is only rendered in "near" mode.


Here is a screenshot showing the point cloud rendered over San Diego.
This is a view of the planes flying over Florida. The models were made by Cathy Hughes for her Sketch project, but she kindly allowed me to use them in my demo. Thanks Cathy!
A view of the planes in "near mode" showing the speed control.


  • A lot of the code is exploratory, and could use some cleanup to improve readability and reusability.
  • I could not get access to the database for ArtifactVis, and may have been missing some data or configuration files; future projects involving ArtifactVis will likely need this data.
  • It would be nice to integrate the point cloud with the earth's terrain.