Gears of War Camera system

Anyone know how create GoW camera + shaking when i run?
Andy proposition ?

You could create an animation in your 3d package that has a cube shaking and not shaking, then bring that cube into unity and parent the camera to it and blend between the animations using Animation.Blend() depending on the speed of the character or whether he’s running or not.

Is that the only way of making camera movements? :shock:

No, you could script the camera move, but I figured animating it in a 3d package will give you better control of the look for something specific like the Gears of War camera shake.

I’ve also been thinking a little about this…

The most flexible solution would be to have a “shaker” script that works on any transform - it doesn’t need to be limited as a camera controller.

When I write this script I think I will make it a layered random rotater with frequencies and amplitudes.

Basically you would add random shake like this:

50 Hz normal amplitude
+
200 Hz half amplitude
+
800 Hz quarter amplitude

Or something such, depending on what style you want. I think the key to good-looking camera shake is the layering of randomness with varying amplitude, much like perlin noise.

This is all just speculative though - I haven’t tried it yet. :slight_smile:

Edit: Oh and by the way… usually shaking the position of the camera doesn’t produce anything interesting. What you usually want is to shake rotation of the camera.

Edit: Actually, those frequencies are probably waaayyy to high… something more sensible will probably be in the 1-20 Hz range.

hey magwo, did you end up getting anything like this working?
I’d like to put some random shake on my camera at points in the game but I haven’t found a good way yet.

That game gave me motion sickness from all the shaking… why would someone want that in a game?

If there something stopping you from using a perlin noise generator for a random camera shake?

hey thanks Quietus, I had tried that project before and had trouble getting it to work, but this time it worked great!

mwwuhahahaha, now im going to make the most nauseating game in history!!! :slight_smile:

Where do you get that? Perlin noise generator?

It’s been awhile, but iirc try the ProceduralMesh example project on the Unity website’s resource section.

Grab it from here

then just grab these files,
Plugins\Perlin.cs
SmoothRandomPosition.js
and the Smooth random position.unity to check it out.

I did make quite decent camera shake… you can see it in my heli game if you are close to explosions or the helicopter goes low on hitpoints.