There is no spoon
- 1 Unreal Movie Studio Advanced Tutorial
Unreal Movie Studio Advanced Tutorial
by Hugh Macdonald
This tutorial aims to give you the understanding of how interpolation points work, and how to set them up
How Interpolation Points work
- Interpolation is a way of getting a smooth path (in this case for a camera) from a series of points. It is not the same as splining, as I will explain.
- A spline is a smoothed line that goes through all of the points in the path. This is commonly used for smooth paths, but not in Unreal.
- An interpolated curve doesn't actually touch the points at all. It is pulled towards the points, but without actually going through them. This is the way Unreal uses Interpolation Points.
Adding Interpolation Points to your map
- InterpolationPoints (hereafter called IP's) can be found under Keypoint >> InterpolationPoint in the Actor Classes Browser. The first thing to do is to add one to your level where you want the camera to start.
- It will have an arrow on, and can either be rotated in the 2D views, or in the InterpolationPoint Properties -> Movement -> Rotation. This will define (funnily enough) the direction that the camera will be pointing.
- In InterpolationPoint Properties -> InterpolationPoint -> Position, you should put the number that defines what point in the path this IP is at. This should start at 0, and I have been informed that the upper limit is 127 (thanks to TheMapper for that).
- I think the best thing to do, is to first add the IP's to your level, in aproximately the right places. Then you can get the path set up correctly, before changing the speed.
- Once you have got all your IP's in, there are two more that you have to put in. At the last point, you need to have two IP's. Then, put another one in the same position as the first, and give it the next Position after the last one. This is because IP paths actually loop, and the only way to get the path to go through a point is to put two IP's on top of each other. The reason the highest number IP is at the beginning of the path is because the camera will start half way between the first and last IP's.
Making your camera follow your Interpolation Point path
- Once you have youe IP path in, select all the IP's (right click on one, and select Select all InterpolationPoint actors). Change the tag on all of them to the same thing. This could be something like CamPath1.
- Now, in your Director, put the following two lines: Camera Camera1 CutTo and Camera Camera1 Interpolate CamPath1
- You will need to make sure that you have a camera called Camera1 somewhere in the level. I would recommend that it can't see anything before it goes to the IP path.
Tweaking your Interpolation Point path
- Now, if you followed my instructions for the Director in the first tutorial, you should have ChangeHUD and SetSpeed at the beginning. Change the ScriptVals on the command with SetSpeed in to 0.2. This will make the whole thing go in slow motion, which makes it much easier to write down stuff as you watch it.
- Now, run the scene. Watch the camera go round the IP path, and write down something that will remind you every time the camera goes somewhere you don't want it to, either through a wall, or just out of line. If this is your first time using IP's, then you will find that you will probably have quite a lot of dodgy points.
- Back in UnrealEd, find the offending points, and try to tweak them. There is not much I can do to tell you what to do here, as it is really just trial and error.
Setting the speed of the Interpolation Points
- Once you have your path correct, you may want to play around with the speed. You will find that it looks a lot nicer if the speed does vary. Knowing when to vary the speed isn't something that I can teach you.
- To change the speed, go to InterpolationPoint Properties -> InterpolationPoint -> RateModifier. Again, it is a matter of trial and error to find a series of values which you like. On each IP, the rate will be at that point, and it will change between the two points. If you want to change the rate very quickly, have two IPs very close to each other with different rate values
- You can, if you want, change the speed of the game with the GameSpeedModifier, but this works seperately from SetSpeed. If you do use GameSpeedModifier, then make sure that it is reset back to 1 for the end of the IP path.
- That is about it for Interpolation Points. Again, if you have any questions, do e-mail me at email@example.com.
In the next tutorial, I will cover setting up effects, like explosions and breaking glass. This is the sort of thing that, if you have used UnrealEd extensively before, you will already know about
Tarquin: Hugh, I've taken the liberty of copying the section on IPs in general to InterpolationPoint.
Tarquin: It's moved again to Making An Interpolation Path. Hugh, I suggest we move anything on creating the path to that page & point to it here.