Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • 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
0
Question by Bentoon · Oct 31, 2016 at 06:48 AM · uivrmultiple cameras

U.I. rendering multiple cameras in VR

Hello All

I want to use the Unity UI in VR to render multiple cameras that also respond to the roomscale camera tracking.

The closest example I have found is 2 minutes into this demo:

https://youtu.be/wBuFBVB5hqw

Any ideas? Thanks

~be

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 PeterMorris · Oct 31, 2016 at 03:51 PM 0
Share

You can use Camera.renderTexture to get a secondary camera to render to a texture that you can then display in a canvas object that is set to World Space. If you measure the angle of incidence between your camera and the canvas element you are looking at then you can use that to adjust the viewing angle of the 2nd camera that is rendering to your texture.

https://docs.unity3d.com/ScriptReference/Camera-targetTexture.html

2 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by PeterMorris · Oct 31, 2016 at 10:09 PM

I didn't notice the view portals had parallax. In that case....

You can use Camera.targetTexture to get a secondary camera to render to a texture that you can then display in a canvas object that is set to World Space. If you measure the angle of incidence between your camera and the canvas element you are looking at then you can use that to adjust the viewing angle of the 2nd camera that is rendering to your texture.

Comment
Add comment · Show 2 · Share
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 Bentoon · Nov 01, 2016 at 05:01 PM 0
Share

@Peter$$anonymous$$orris Thank you! I am going to try this a bit later on today after work. I'll let you know - I appreciate your help!

~be

avatar image Bentoon · Nov 02, 2016 at 04:00 AM 0
Share

@Peter$$anonymous$$orris,

Thank you Peter! Works like a charm

~be

avatar image
0

Answer by mrpmorris · Oct 31, 2016 at 07:31 AM

Note how the controller interacts. The images are moved without moving the narration at the bottom. I suspect these are just UI elements on a canvas in world space and no additional cameras were required.

Comment
Add comment · Show 1 · Share
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 Bentoon · Oct 31, 2016 at 03:42 PM 0
Share

@mrpmorris Thanks. Yes, it looks like these are UI elements in a world space canvas but ins$$anonymous$$d of displaying images they are showing what look like windows into other small animations, so you see parallaxing as you move around - this is what leads me to think they are cameras rendering part of a world while still being a flat UI screen space elements.. Yes?

How could you make this? Could a camera be a child of a panel in a canvas in world space?

Thanks for your help,

~be

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.

Follow this Question

Answers Answers and Comments

102 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Unity 5: How to display bird eye view layout of a 3D scene with UI component overlay on screen? 1 Answer

How to invoke a button when pointing at it with Oculus VR hand controller?,How do you invoke a UI Button when pointing at it with an Oculus VR hand controller? 0 Answers

How to use two cameras in VR to display 3D object on top of UI panel? 0 Answers

UI canvas attached to vive controller disappears after first run in editor on vive 0 Answers

interactable laser pointer with UI elements 0 Answers


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