Maintain screenspace scale/position as camera field of view changes?

I have a 3D model rendering in a perspective camera whose field of view changes from time to time.

When I change the cameras field of view the 3D model obviously also changes the position in screenspace it’s rendering as well as its size.

Is it possible to calculate an offset scale/position as the cameras field of view changes to keep the 3D model in roughlyu the same spot and size in screenspace?

Yes…

Camera field of view is basically a Frustum, but I think that you will need alot of math to do this.

Uhm, i guess all you actually want to use is a second camera, but it’s hard to say without knowing your exact purpose. The exact same position and scale isn’t possible since changing the FOV will always change the perspective distortion.

If you just want to display an object at a fix position on the screen:

Now your object will always look the same even when you change the main camera.