Camera Shake on Beat drop

I created this Camera Shake effect when the music intensifies or hits a beat drop. Its pretty cool for vibe games. It uses PlaybackLoudness and an arbitrary peak value so its not the most accurate, but works well for lofi music!

Any form of feedback is appreciated. (Sorry for the bad video quality)

9 Likes

I think this looks quite nice, would be quite nice to see used in a variety of games

1 Like

How does it work with songs that have like very strong beat
smth like this type of song

but very well done

1 Like

There’s debounce to it, so it should be fine, though I haven’t tested it with that kind of music yet. I’ll test and get back to you!

I would rather have the camera go into the player rather than an offset position. Maybe by changing the FieldOfView? It’s a good system though! Great work!

1 Like

try it on a rock music and see the world explodes

How did you even make camera shake? I find manipulating all of the players/ a players camera very hard to understand.

The camera shake is client sided. I just lerp the CameraOffset according to the loudness and of the music if the PlaybackLoudness exceeds a certain point.

1 Like

It is very smooth and doesn’t shake to unwanted parts of the song, which is always the problem I used to have.

However, since you’re using the CameraOffset, it looks a little off and is somewhat violent.

Most vibe games will use FieldOfView to create the effect. And since you’ve nailed the smoothness of it, I think if you just changed the parameters to FOV, it would be great!

1 Like

A good idea would be to use an equaliser so that you only detect Low Frequencies.

3 Likes

Contrary to the other replies, camera shake tied to the CameraOffset can be good in a number of situations. Many games use CameraOffset to simulate a feeling of movement. You might want to randomize the direction of the offset so it doesn’t always move to the bottom left.

1 Like

I think making the camera’s FOV go up and down would look nice with it