• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
2
Question by khaled · Mar 26, 2011 at 11:09 PM · frustrumprojection-matrixdistort

creating an asymmetric viewing frustum

Hey everyone, Ive got a system ive been working on for what feels like years and i feel like im so close to completion. I have managed to obatain a users position in a given physical space and have interpreted this to an XYZ co ordinate. This co-ordinate is translated into the unity co-ordinate system and is currently moving a camera (locked with lookat. this is controlling the pitch of the camera) within my scene.

everything works up to the point of manipulating the cameras output to create an off-axis projection.

so i have implemented the code for the custom projection matrix from here : http://unity3d.com/support/documenta...ionMatrix.html

My real question is what manipulations would i need to perform on the code to obtain the correct anamorphic distortion so the user sees the image correctly based on there perspective.

I basically suck at matrices and have realised this now but if anyone could help me to understand the relationship between the cameras XYZ position and the matrix to enable the distortion i would be really grateful.

Ive been tearing my hear out with this projection matrix stuff so any help would be amazing.

just a litle background:

the display is a montior layed on its back and facing right upwards (layed on a table) The user walks around the table to view the object in 3D. Y co ordinate is up.

Thanks! K

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Bunny83 · Mar 27, 2011 at 02:32 AM 0
Share

Very interesting, finally i've understand (at least i think) what you even try to do. Unfortunately I think I can't help you with this. It's even hard enough to imagine the needed projection ;). Good luck, hopefully there's someone out there with a pure mathematical brain who can solve this. I'm sure it can be done, but that's too much math for now :D. If you just want to display a single object (without environment) you could try a 2 camera approach. But it's just a crazy idea, I don't think the result would match your needs.

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

No one has followed this question yet.

Related Questions

How can I know if a gameObject is 'seen' by a particular camera? 10 Answers

Occlusion Culling issue (works like Frustum Culling) 0 Answers

Point lights shader not working anymore in 4.3.4 using custom projection matrix 1 Answer

Geometry distortion on child objects 2 Answers

Occlusion Culling Question 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges