Search Unity

Cinema Pro Cams - Film Lens & 3d Toolkit with Unity 2017.2

Discussion in 'Cinemachine' started by design89, Dec 15, 2017.

  1. design89

    design89

    Joined:
    Dec 13, 2017
    Posts:
    3
  2. Adam_Myhill

    Adam_Myhill

    Joined:
    Dec 22, 2016
    Posts:
    342
  3. Pourya-MDP

    Pourya-MDP

    Joined:
    May 18, 2017
    Posts:
    145
    Hello
    Hello adam and so much thanks for cinemachine:) i have one question and hope you can help me im using cinema pro cams and cinemachine at the same time but i think they are incompatible with each other because whenever the cmvcam is enabled the fov will change to the cmvcam setup lens
    I just wanna know is there anyway that the main camera to use only cinema pro cams specified fov not the cmvcam?
    I need cinemachine for its wide range movements and features and cinema pro cams for its filmic lens setups
    Any help will greatly appreciate
     
  4. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,719
    I'm not familiar with ProCams, but it is possible to prevent CM from touching the FOV, by implementing a custom extension. Drop this in your project and use the Extensions dropdown in the vcam inspector to add it to the vcam whose lens you want ProCams to control.
    Code (CSharp):
    1. using Cinemachine;
    2.  
    3. public class CinemachineNoLensExtension : CinemachineExtension
    4. {
    5.     /// <summary>Standard CinemachineExtension callback</summary>
    6.     protected override void PostPipelineStageCallback(
    7.         CinemachineVirtualCameraBase vcam,
    8.         CinemachineCore.Stage stage, ref CameraState state, float deltaTime)
    9.     {
    10.         if (stage == CinemachineCore.Stage.Finalize)
    11.             state.BlendHint |= CameraState.BlendHintValue.NoLens;
    12.     }
    13. }
    14.  
    15.  
     
    Pourya-MDP likes this.
  5. Pourya-MDP

    Pourya-MDP

    Joined:
    May 18, 2017
    Posts:
    145
    Hi again
    That was so fast bro
    So much thanks for fast response
    I appreciate it