Keywords: instances
Summary
This demo is to show different static instancing options available in the ODB and GLIST files. Specifically, this demo was originally created to show how to use the 4x4 "affine matrix" option in the ODB file. It was then expanded to show the same option in a GLIST file. This demo also includes an example of the binary instance file option.
Details
The scene constists of a flat plate with 4 boxes placed on it. Two of them are placed using the "old" translate, scale and rotate triplets format. The other two are placed using the "new" affine matrix format. The affine matrix INFO string is assigned a 16 element "row major" (row #1, then row #2, etc.) deconstruction of the 3D affine matrix. There are two example affine matrix instances. The first uses all positive scales (the diagonal terms). The second uses all negative scales. Note, since the Z origin of the box is not the center of the box, the Z scale flips the box into the negative Z direction and an additional +Z translation (the rightmost column) must be added.
The GLIST version of the file mirrors the same setup as that in the ODB file.
Important Files
-
The file
geometry/instances.odb
is the ODB version of the scene geometry employing the various static instance setup examples. -
The file
geometry/instances.glist
is the GLIST version of the scene geometry employing the various static instance setup examples. -
The file
geometry/bin_instances.glist
is the GLIST version of the scene geometry employing the binary static instance setup examples.
Results
