Intel IPP Realistic Rendering Objects

This section contains the descriptions of the objects that are used in the Intel IPP realistic rendering functions.

Scene

In the current implementation the scene is presented as a set of the triangles and per vertexes normals (if they are required for the description of the scene).

Triangles are specified by two arrays:

Each vertex of the triangle is specified by its coordinates X, Y, and Z in the 3D space (Euclidean space). These coordinates are stored in the array of vertexes coordinates (see Figure “Structure of Arrays for Triangle Description”).

The description of the triangles consists of a four indexes: A, B, C, T. A, B, C - indexes of vertexes in the array of triangle vertexes coordinates, and T - index in the array of textures (reserved, is not used now).

Structure of Arrays for Triangle Description

These indexes are stored in the array of triangles indexes (see Figure “Structure of Arrays for Triangle Description”). For example, Figure “Structure of Arrays for Triangle Description” shows that vertex B of the triangle 0 has coordinates X1, Y1, and Z1 from the array of vertex coordinates.

Normals are specified by two arrays:

Each normal to the vertex of the triangle is specified by its coordinates X, Y, and Z in the 3D space (Euclidean space). These coordinates are stored in the array of normals coordinates (see Figure “Structure of Arrays for Normal Description”).

The description of the normals consists of a three indexes: A, B, C, that are indexes of vertexes in the array of triangle vertexes coordinates. These indexes are stored in the array of normals indexes (see Figure “Structure of Arrays for Normal Description”).

Alternatively the normals coordinates can be specified using the array of triangles indexes. Note that in this case the array of normals coordinates should correspond to the array of vertexes coordinates (see Figure “Structure of Arrays for Triangle Description”).

Structure of Arrays for Normal Description


Submit feedback on this help topic

Copyright © 2000 - 2010, Intel Corporation. All rights reserved.