PDA

View Full Version : Make camera follow rider.



DragonCon
06-24-2014, 03:46 PM
How can I make a camera follow the rider for a few moments then switch back the game camera?

dasraizer
06-24-2014, 04:01 PM
hi, you can use an area trigger to send an impulse from its OnHit to a Camera Event thats targeting your custom camera and then use either a delay filter from the camera event to another camera event to switch back or use another area trigger to do it.

In the basic option in the main camera properties like 'cut' which simply cuts to the new camera (it will still interpolate to it) and 'interpolate and cut' this is the same as cut but uses the current camera to interpolate from before cutting to the new camera.

In the advance camera options you have interpolation options these set the blending from one camera to the next, the amount is kind of like a percentage of how much it will blend to and the speed setting is how fast you want the blend to occur at, there are also tracking options, iirc it should be set up to track the bike/rider as default, if not just set the sliders and pick the object you want to track (bike/rider)

one thing you may need to adjust is the max distance (20 is default) as this can create odd splices when two or more cameras are in close proximity, just lower them to near 0 and that should fix that.

hope this helps :)

DragonCon
06-24-2014, 06:27 PM
Good thought, but the camera would still be stationary and I want it to track the rider like the game camera does.

dasraizer
06-24-2014, 07:38 PM
lol, oh yeah not sooo many options in custom!!

place you custom camera and a physics joint, set it to point-to-point and choose the bike and camera as targets

open the custom, enable physics, open the advance physics options and set the mass to its lowest value, disable global damping and set it to 'no contact response' (this keeps physics active and act like its decoration)

and that should do it, you might need to adjust the interpolation settings, although most of the ones effecting it are in the main blue camera! so you may have to adjust these with data sources.

pArA8D
06-24-2014, 11:24 PM
I would use OPE and toggle on off as required -- video guide for OPE camera below.

http://youtu.be/hYcr12_nfTU?t=1h31m43s

Mattyb2001uk
06-25-2014, 11:54 AM
I would use an OPE. My "wormholin'" tutorial shows how to make the camera follow the rider: http://www.youtube.com/watch?v=xuMm2VnpLbk&list=UULORmdhTCQbvOJX4qAgwesA

BlastergamerX
06-25-2014, 11:58 AM
I would use an OPE. My "wormholin'" tutorial shows how to make the camera follow the rider: http://www.youtube.com/watch?v=xuMm2VnpLbk&list=UULORmdhTCQbvOJX4qAgwesA
that might be too shaky. You could do it with interpolating variables, but that's probably too much and can be trial and error.