|
Kanzi Graphics Engine
|
Utility for calculating 2D pixel coordinate from 3D point and camera projection. More...
Functions | |
| kzsError | kzuProjectionVector3ToPixelCoordinates (const struct KzcVector3 *vectorInWorldCoordinates, struct KzuCameraNode *cameraNode, const struct KzcDynamicArray *transformedObjects, kzInt viewportX, kzInt viewportY, kzUint viewportWidth, kzUint viewportHeight, kzInt *out_x, kzInt *out_y) |
| Projection vec3 in world coordinates to actual pixel coordinates. More... | |
Utility for calculating 2D pixel coordinate from 3D point and camera projection.
Copyright 2008-2019 by Rightware. All rights reserved.
| kzsError kzuProjectionVector3ToPixelCoordinates | ( | const struct KzcVector3 * | vectorInWorldCoordinates, |
| struct KzuCameraNode * | cameraNode, | ||
| const struct KzcDynamicArray * | transformedObjects, | ||
| kzInt | viewportX, | ||
| kzInt | viewportY, | ||
| kzUint | viewportWidth, | ||
| kzUint | viewportHeight, | ||
| kzInt * | out_x, | ||
| kzInt * | out_y | ||
| ) |
Projection vec3 in world coordinates to actual pixel coordinates.
Result in X, Y pixel coordinates using mathematical coordinate system from bottom-left growing to top-right.