Structural Informatics Group (SIG) logo
Home | Projects | Demos | Downloads | Publications | Local Info | About Us | New site
Go to the first, previous, next, last section, table of contents.

;SET-SPHERICAL-LOCATION cmr

source files: xg.3d-cmr.lsp

SYNTAX

(require "xg.3d-cmr.lsp")
(SEND <cmr> :SET-SPHERICAL-LOCATION 
      [ :DISTANCE <flo:distance> ]
      [ :AZIMUTH  <flo:azimuth>  ]
      [ :ALTITUDE <flo:altitude> ]
)

DESCRIPTION

Set a camera's location relative to a sphere around its target point. This is useful when moving a camera around a single object of interest.

:DISTANCE
sets the distance from the target point to the camera (i.e. the radius of the sphere)
:AZIMUTH
controls longitude, or rotation around the sphere (range is -180 to 180 degrees)
:ALTITUDE
controls latitude, or rotation away from the sphere's equator (range is -90 to 90 degrees)

The :DISTANCE/:AZIMUTH/:ALTITUDE settings are stored in the camera's property list. However, changing them directly will not update the camera's position. (This is simply because it's not a needed feature yet. It wouldn't be hard to do.)


Go to the first, previous, next, last section, table of contents.