How would i transition from Orphographic to Perspective Camera

Godot Version

4.2.2

Question

I’m trying to recreate the “Flip” effect from a game called Super Paper Mario (the original effect here: - Find & Share on GIPHY )

I tried to do it using the animation player but i can’t figure out how to smoothly transition between the two, i tried using a low FOV perspective camera to simulate an orphographic camera but that didn’t look right.
I tried to just do it from orphographic directly to perspective in the animation player but it just looked like this: https://www.youtube.com/watch?v=ZmHV6-ct_68

The Scene is in 3D

If anybody could help it would be much appriciated thx

1 Like

Shaders.

Have a shader that performs the first part of the effect with the first perspective, then completes it with the second perspective

I’m not familliar with shaders at all and would have no idea where to start lol, do you have any tips on how to pull that off?

I am a total shader newb as well.

However, looking at this frame by frame, the basics seem pretty simple.

https://ezgif.com/split/ezgif-6-697f374cd2.gif

1000008791
1000008792
1000008795
1000008796
1000008798
1000008799

If I have a bunch of free time, I may take a stab at it, but I would recommend looking up @FencerDevLog posts and youtube channel and learn some basics. Give it a go yourself. At least follow some shader tutorials and see what they are about.

1 Like

I edited my other post to have some key frames. But there are two things going on here:

  1. mario (and a square area around him) spins around several times. The mario sprite disappears during the middle of the sequence and reappears towards the end.

  2. the old view slides off to the right followed by a short black strip, followed by the new view sliding in.

So, you would pause the game, grab six textures. Place them on objects you can flip and slide. And put it all together.

For the following v1 and v2 refer to the two different views.

Textures needed:

  1. v1 mario and surrounding square

  2. v1 square without mario

  3. v2 square without mario

  4. v2 mario and square

  5. v1 full screen

  6. v2 full screen

You could then make a spinning square that cycles through 1 - 4

And also make objects with 5 and 6 to slide off and into view.