Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Is it possible to manipulate a camera projection matrix as in this example?

Discussion in 'Editor & General Support' started by absudario, Aug 12, 2023.

  1. absudario

    absudario

    Joined:
    Aug 11, 2022
    Posts:
    3
    I am not sure where to post this, please let me know if this is not the best place.

    I have developed an sketch in Processing, where I could manipulate the camera to fit a custom projection matrix, as you can see in the first half of this video:



    Is it possible to achieve the same results in Unity?
    On the second half of the video, my best attempt on arriving on the same results by decomposing a projection matrix and applying each parameter individually to an Unity Camera game object. But this method is far from ideal since it excludes skews and other sort of distortions.

    Any advices?

    Project Assets attached including the scene and scripts.
     

    Attached Files:

  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,561
    The Camera has properties to manipulate its matrix. See docs.
     
  3. absudario

    absudario

    Joined:
    Aug 11, 2022
    Posts:
    3
    Haha, sorry. I guess this is the best you can do meet your daily quota.
    Thanks for your very useful generic answer.