|
|
I put all the objects within a final object by union. Then, I calculate the
final object width to estimate the camera location (to have a full view of all
objects).
This approach works perfectly, but when using for an animation, the final object
width is calculated separately at each frame, which gives different camera
locations at different frames. In other words, the camera location changes
during the animation.
How can I calculate the final object width at first frame to estimate the camera
location and used it in all frames?
Post a reply to this message
|
|
|
|
"Kima" <nomail@nomail> wrote:
> How can I calculate the final object width at first frame to estimate the camera
> location and used it in all frames?
Well, that's going to depend on the details of how your animation runs, but you
could use a loop to simulate the relative positions of the union and the camera
and store the max/min in a file, and set a flag to not run the loop from then
onward.
Or output the result to the #debug stream and then halt the render. Then
hard-code that number into the scene.
Post a reply to this message
|
|