Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Question Custom projection matrix for Projector component

Discussion in 'VR' started by steveaudia, Jun 1, 2022.

  1. steveaudia

    steveaudia

    Joined:
    Sep 17, 2020
    Posts:
    5
    I have a need to use the Projector feature in Unity, for a VR/XR/AR/CAVE application. I have looked here...
    https://docs.unity3d.com/ScriptReference/Projector.html

    I need to mimic the projection path of a real-world projector (specifically an "ultra-short throw projector) which means a "frustum" for the virtual projector that is skewed (see attachment).

    Is there a way to manipulate the projection matrix of a virtual projector in Unity?
     

    Attached Files:

  2. arfish

    arfish

    Joined:
    Jan 28, 2017
    Posts:
    783
    How about just putting the projector gameObject directly in front of the wall?
     
  3. steveaudia

    steveaudia

    Joined:
    Sep 17, 2020
    Posts:
    5
    I am projecting onto a curved wall. The distortion, that I need to counter, will be unique to the "beam path" of each projector.

    This problem is somewhat unique to ultra-short throw projectors since the distortion is so pronounced. Technically most (cheap) projectors don't throw straight ahead and suffer a little bit of such distortion.
     
  4. arfish

    arfish

    Joined:
    Jan 28, 2017
    Posts:
    783
    steveaudia likes this.
  5. steveaudia

    steveaudia

    Joined:
    Sep 17, 2020
    Posts:
    5
    I bought the regular (not Pro) version of this and checked it out. Its virtual projectors have H-Shift and V-Shift parameters that accomplish what I'm looking for.

    You can see in the first attachment the "sheared" shape of the projection path I need, as well as the "U" shaped distortion that is unique to ultra-short throw in the other attachment.

    Thanks.
     

    Attached Files:

    arfish likes this.
  6. sampaul9870

    sampaul9870

    Joined:
    Nov 14, 2022
    Posts:
    1
    Hey, I have come up with the best short throw projectors under 500. These projectors are distortion free and can compete for high-end devices in terms of quality of the projection throw.