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 lgt

source files: xg.3d-lgt.lsp

SYNTAX

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

DESCRIPTION

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

:DISTANCE
sets the distance from the target point to the light (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 light's property list. However, changing them directly will not update the light'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.