blending between cameras using something other than time

As far as I know (sorry if I’ve missed something) Cinemachine only supports blends over time. I’d seen a post saying that it was possible to do arbitrary blends (over distance, say, or whatever other parameter you want to feed in), but it involved reaching into the code and making a method public which is normally only used in relation to Timeline stuff, so this was “only for the brave”.

I’ve been hoping to use some raycasts in order to bring the camera in & out depending on how tight a space the player finds themselves in, and I was going to try do this in Cinemachine by blending between two nearly identical freelooks, generating an override blend value w/ some raycasts and then passing it in the “brave” way, but that feels pretty off the rails.

Is there any plan to support ways of blending other than over time? Is this perhaps where someone would need to write their own extension? I don’t think the collider settings as-is will get us the behaviour we’re looking for on this front, at any rate.

Any help’s much appreciated!

This sounds like a job for CinemachineMixingCamera. It will continuously blend its child vcams according to weight settings that you can drive however you want.

3623602--295036--upload_2018-8-30_15-19-52.png

By default it comes with 2 standard child vcams, that you can just replace with FreeLooks. You can have up to 8 child vcams.

Wicked. Will give this a go ASAP. :slight_smile:

1 Like