Camera distortion effects

Hey there, I have been recently trying to manipulate the Roblox camera to make it skew, squash and things like that. I have been reading about CFrame and all the R00 values and things, however, no matter where I search, I can’t find a way to achieve this. An example of what I want is in this video:

It should play from where he is talking about manipulating the matrix of the camera. He then proceeds to show off the effects that he can create with this, which include squashing the screen and things like that.

I was wondering if anyone could help me to understand how to create this effect, or at least link a helpful documentation, as I have had no luck so far.

Thank you

4 Likes

This is a very tough one to explain without any prior knowledge on matrix algebra. You might want to learn the underlying math before attempting to do this.

1 Like

Sorry I have absolutely no clue on how to use that, I have read through it but I can’t understand any of it

Yeah, this is college-level stuff. Your average computer science major will likely have taken a class on this. Khan Academy has some good videos on matrix algebra. The idea behind CFrames is that they are really just 4×4 matrices, and when you multiple two CFrames together you get another 4×4 matrix. The idea is that using this and some trigonometry, you can create a matrix which shears (that rhombus effect) when multiplied against another CFrame. It all gets even more complicated when you translate it into 3D :worried:

I’d try to explain it myself but I did terribly in my matrix & linear algebra class :sweat_smile: Hopefully this can point you to the right direction or attract a bigger nerd to this thread.

2 Likes

Oh alright, thank you for the help though, hopefully I can learn a bit about it and try to make something work

1 Like