Group Composer framing issue

Hi all!

I am using Cinemachine 2.8.6 on Unity 2021.3.2f1 and I am having an issue with framing two objects on screen. The two objects are in a Target Group, I want the camera to follow their center and keep them on screen, the yellow sphere is the Target Group position (but the sphere is not a target).
My VCam settings are the following:


the camera is still within the maximum distance but one of the two “characters” is offscreen.

If I place another camera to the very same world position and rotate it slightly around its local Y axis I get this shot, which is what I was expecting to see.

Am I doing anything wrong? I have attached a sample project with the issue, thanks!

8374857–1104030–Sample.zip (76.9 KB)

Unfortunately the current group framing algorithm is only approximate and it can be a little off, especially when looking obliquely at a group of objects. We recommend in these situations not trying to frame things exactly on the edges of the screen, but to give a little buffer to account for inaccuracies.

You might get better results with a FramingTransposer in the Body and DoNothing in the Aim.

Also, sometimes the framing is better if you use zoom instead of dolly (because dolly results in a parallax shift when the camera is moved, which affects the composition, which means the position has to get recomputed, and so on… CM has to give up at some point and make an approximation).

Thank you so much for your reply!

I see that I am having a better result by combining a framing transposer and a Composer that aims at the target group. Any possible issue with this approach? Also every time I try to combine the framing transposer with a group composer I always get really weird results, I assume the two should never be used together?

FramingTransposer + Composer is ok. FramingTransposer + GroupComposer is not good because they will compete at trying to group frame and mix each other up.

1 Like