20
Dec
07

3D Transform Hair-Tearing, and Solution

I spent some time struggling with the problem of how to consistantly translate and rotate a set of objects created by an Iterator Patch.

The problem, it turned out, was the result of my assumption (incorrect, as I eventually discovered), that if an object, or group of objects, is translated using a 3D Transform patch, the Rotation Origin on the Z, Y and Z axes will remain in the same place, and the objects will be moved in relation to this fixed point.
This misapprehension caused me all kinds of confusion, as I tried to create logic to compensate for the translation, and the Z-axis depth of the iterated objects, by moving the Origin. The maths should of course have been very simple, but I wasn’t getting anything like the result I expected.

Eventually, through trial, error, hair-tearing and gnashing of teeth, it dawned on me that if I translate the objects on the Z-Axis (for a ‘zoom’ effect), the Rotation Origin moves with them! So, to have the objects rotate around their centre on the Z-plane, all I needed to do is move the Rotation Origin on the Z-axis forward by half the combined depth of the array of iterated objects.

I love simple solutions!

Advertisements

0 Responses to “3D Transform Hair-Tearing, and Solution”



  1. Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


December 2007
M T W T F S S
« Nov   Jan »
 12
3456789
10111213141516
17181920212223
24252627282930
31  

Links

Blog Stats

  • 476,382 hits

%d bloggers like this: