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?
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: