Thursday 5 February 2009

Assigning Objects To a Path

Assigning paths to objects is a good way of performing animations.
You use the line tool, set the options to smooth to get smoother movements. The object will then follow the path of the line.
Imagine a rollercoaster train following the tracks.

You can also use a circle line path to make an object go round in a circle, which would be good for animating things like planets in space etc.
The camera can also be assigned to a specific path which is useful for things like fly through.

To create one of these you have to create the object you want, a sphere for example. Then under shapes select the circle line tool or one of the other line tools and put the shape on the stage next to the sphere. Select the sphere object and go to the animation tab at the top and then to Constraints and then to Path Constraint. The sphere object will then automatically snap to the circle path. It also places a key frame at the end of the timeline so it can move around the circle path on a loop.
It is also good to activate the follow and bank options so the camera will bank when turning corners and act more smoothly when it moves. There is also a smoothing option.
I created a floor plan of a building, complete with rooms, doors and windows etc and then used the line tool to create a path around the rooms for which I wanted the camera to follow. I made a camera and snapped it to the path.
I also added up to 600 frames at 25 frames a second. Then moved the key frame up to the 600th frame. This slows down the whole animation so the camera doesn’t fly through the rooms too fast.

I then textured the building and added lighting to make it appear more realistic.

No comments: