THIS COMMAND IS NO LONGER SUPPORTED. Due to an issue regarding normalization of the ray direction cosines, this command is no longer functional. Please use the following command in its place: SetRayDirection. Depending on the number of rays traced, it may be necessary to dimension ray index and ray counter variables as data type Huge_ instead of Long. Please see Multi-threaded Raytracing for more information.
Description Sets the C direction cosine for a specified ray in the ray buffer.
Syntax SetRayC id, dirC
Parameters id As Long (or Huge_) Identifier of the ray.
dirC As Double New value for the C direction cosine.
Remarks This subroutine sets the C direction cosine (Z component of the ray's unit length direction vector in global coordinates) for a specified ray in the ray buffer. If there is a problem, the subroutine posts an error and returns without modifying the ray.
See Also Examples
|