Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 andresp · Sep 27, 2012 at 03:03 PM · cameragraphicsrenderviewport

Wipe transition between two cameras

How can I implement an horizontal wipe transition (controlled by a slider) between two cameras which share the same perspective, like this:

Slider

I need to keep the same perspective on both cameras, so simple changes to the viewport or field of view will not achieve the desired effect. Basically, the effect would be equivalent to applying a 2D mask on the front camera.

Thanks.

Comment
Add comment · Show 4
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 Fattie · Sep 27, 2012 at 04:09 PM 0
Share

huh ?

you want to "wipe" form one camera to another is that right?

note that it's O$$anonymous$$ for the two cameras to be in exactly the same place.

avatar image andresp · Sep 27, 2012 at 04:19 PM 0
Share

exactly, but I want to do that with an horizontal slider controlled by the user. I will edit the question to make it clearer.

avatar image andresp · Sep 27, 2012 at 04:30 PM 0
Share

like I said on the question, changing the viewport will not do. when you change the viewport width the entire scene is resized to that width. What I want to do is to "remove" the area of the viewport at the right of the slider.

avatar image andresp · Sep 27, 2012 at 04:44 PM 0
Share

no... actually if you move the camera you are changing the perspective, which breaks the seamless transition effect.

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by Eric5h5 · Sep 27, 2012 at 04:56 PM

Use a plane with a depthmask shader, which you can slide in front of the camera, so that it reveals the other camera. See here for more info on the general technique of using a depthmask shader on an object.

Comment
Add comment · 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

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

11 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

Related Questions

Changing the Camera viewport rect results in resizing the objects rendered by the specific camera ? 1 Answer

Display all scene cameras in another camera? 1 Answer

White line along the edge 2 Answers

Changing camera.projectionMatrix doesn't affect skyboxes? 0 Answers

Semi transparent Object behind walls? 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