Functions |
|
const RwCamera * | RwCameraCalcPixelRay (const RwCamera *camera, RwLine *line, const RwV2d *pixel) |
RpAtomic * | RpWorldPickAtomicOnLine (RpWorld *world, const RwLine *line) |
RpAtomic * | RwCameraPickAtomicOnPixel (const RwCamera *camera, const RwV2d *pixel) |
The following functions are available:-
|
RpWorldPickAtomicOnLine is used to determine the atomic in the specified world that intersects the given line closest to its start point. The parameters of the line, its start and end positions, are specified in world units. Note that this function only tests the atomic's bounding sphere to determine if it has been picked. For a more accurate test based on the atomic's geometry use RpAtomicForAllIntersections. The world and collision plugins must be attached before using this function, and the rtpick library is required (header file rtpick.h).
|
|
RwCameraCalcPixelRay is used to determine the parameters of a line which passes through the specified camera's frustum at the given pixel location. The line starts and ends on the camera's near and far clip planes, respectively, and is specified in world units. This function is useful if we wish to calculate intersections of the line with atomics located within the frustum. This enables us to identify the atomics corresponding to a user pick event on the camera's image raster. The world plugin must be attached before using this function, and the rtpick library is required (header file rtpick.h).
|
|
RwCameraPickAtomicOnPixel is used to determine the nearest atomic, if any, which is selected through a user pick event on the specified camera's image raster at the given pixel location. Note that this function only tests the atomic's bounding sphere to determine if it has been picked. For a more accurate test based on the atomic's geometry use RpAtomicForAllIntersections. The world and collision plugins must be attached before using this function, and the rtpick library is required (header file rtpick.h).
|
Converted from CHM to HTML with chm2web Pro 2.85 (unicode) |