Synopsis
GISGeneratePlanet generates a sphere for use as a background "planet" for spherical projections.
Input Ports
Earth Radius |
float |
The radius (in user-defined units) of the spherical projection. The default value is 6378000. |
Parameters
UIToggle |
Turn the visibility of the planet on and off. | |
red |
UIslider |
Set the red intensity of the planet. |
green |
UIslider |
Set the green intensity of the planet. |
blue |
UIslider |
Set the blue intensity of the planet. |
Output Port
obj |
DefaultObject |
Output DataObject containing the geometry of the planet. |
Description
The spherical transforms in AVS/Express' GIS modules will produce geospatial mappings without hidden line removal. While useful for some applications, others may wish to place a spherical object at the center of the projection to hide objects in the distance.
GISGeneratePlanet produces a simple sphere of radius (Earth_Radius * 0.99). The reason for reducing the radius size by 1% is to allow easy viewing of 2D objects and textures mapped directly onto a sphere at radius Earth_Radius. Without the 1% reduction, both the user-mapped object and the surface of the generated sphere would compete for the z coordinate.
Parameters
Invisible Planet
This toggle turns the sphere on (rendered to a stated color) or off (rendered to a background color).
red
green
blue
Convenience widgets to allow you to select the preferred color of the planet.
Output Ports
obj
This DefaultObject contains the geometry of the sphere to be used as the "planet." This port would normally be wired directly up to the viewer port.
Use of GISGeneratePlanet on a non-spherical projection would produce meaningless results.
Example
Examples.Visualization.GISMapDisplay
File
v/gis2.v