Forum: Poser Technical


Subject: More Poser secrets revealed - Don't read...

VK opened this issue on Oct 27, 2003 ยท 33 posts


VK posted Mon, 27 October 2003 at 9:46 AM

Tran channels, which follow the Rotate channels, move the prop geometry and the origins. To move the prop, but keep the origins at a fixed position, we can use a different configuration of the Tran channels. In this example, the Tran channels are placed at the very beginning of the code. When the xTran channel is evaluated, the prop moves for example to x=1. At this point, the Poser origin data is not yet activated (because the OffsetA follow), and the prop is at the default orientation (because no Rotate channel has been evaluated yet). Next, the OffsetA channels activate the Poser Origin (x=0, y=1, z=0 in this example), and the RotateB's are evaluated. If zRotateB is set, for instance, the prop rotates around the Poser Origin. The center of rotation is still at x=0, y=1, z=0, whereas the prop geometry is already at x=1 (because of the xTran channel evaluated before). When the scene is updated and rendered, the orientation and position of the prop is calculated from the new position of the prop after the x-translation, and the rotation about the Poser Origin. As a result, the prop always orbits the Poser Origin, wherever the prop geometry may be. The xTran channel in this configuration moves the prop geometry, but leaves the origin alone. The same is true for the RotateA channels in this example: The RotateA's are evaluated after the OffsetB's, when the Default Origin has been reset (to x=0, y=0, z=0). So, zRotateA always rotates around the center of the scene, wherever the preceding xTran has moved the prop before. Such initial Tran channels could be a bizarre method to create a variable origin. This is exactly what we're going to do a bit later. To sum up as far, the following rules are very likely to be true: - Rotate channels placed between the OffsetA and OffsetB channels rotate about the Poser Origin (official configuration). - Rotate channels placed before the first, or after the last, Offset channel rotate about the Default Origin, that is the center of the scene. - Translate channels placed before the first Offset and Rotate channel move only the geometry, not the origin. - Translate channels placed after the last Rotate channel move the geometry and the origin (official configuration).