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 Youngapprentice · Nov 24, 2011 at 01:31 AM · guiscenefade

fade between scenes?

I don't mean fade to black and then to the next scene. I'm talking more about scene masking. Is it possible to layer scenes based on an alpha of a guy texture?

Comment
Add comment · Show 5
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 Julien-Lynge · Nov 24, 2011 at 01:38 AM 0
Share

Not sure I understand what you're asking. When you say 'layer scenes,' do you mean that you want to have two scenes loaded simultaneously, with a camera in each scene, and then take the render from each scene and combine them into one image?

Just for clarification, in Unity 'scene' more or less means everything that currently exists (is instantiated). Loading a different scene simply means 'unload everything, then load something else.' So if I understand your question correctly ("can I have two scenes open simultaneously and render each separately"), the answer is no.

If, however, you mean 'scene' in the sense of cameras, where each scene is defined as what a camera can see, then sure, it's definitely possible to have multiple cameras and layer their output.

Can you clarify what you mean?

avatar image Youngapprentice · Nov 24, 2011 at 01:51 AM 0
Share

2 cameras is exactly what I meant, actually. How would I go about doing this?

avatar image FLASHDENMARK · Nov 24, 2011 at 06:07 AM 0
Share

http://www.youtube.com/watch?v=te-EHxxBGmw is that what you mean? (Skip to around 20 seconds) The fade between two cameras?

avatar image Youngapprentice · Nov 24, 2011 at 05:11 PM 0
Share

No. I am talking about getting an image from one camera, and an image from the other, and putting one on top of the other at the same time via a ramp. for example. If I had the 1st camera looking at a blue plane, and the 2nd one looking at a yellow plane, there would be a gradient from blue to yellow depending on the alpha values of a guy texture. Is that clear enough? Would you like an image example?

avatar image FLASHDENMARK · Nov 24, 2011 at 06:49 PM 0
Share

Oh, I see. Hope some one can help you with that!

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by tiagomelobr · Nov 24, 2011 at 06:34 PM

You may want to use render to texture on this.

Make a render to texture image about the same size of your game resolution and make your first camera render to it.

You now may use this image as GUITexture, changing the alpha you'll get your transition. To use an alpha mask in this, I think that you'll need to change the Clear Flags of the first camera.

Hope it helps.

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 Youngapprentice · Nov 24, 2011 at 07:53 PM 0
Share

Is this possible in Unity Free?

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

How to fade a scene in/out 1 Answer

Fading scene in unity 3 Answers

Skip to the previous screen without reboot ?? 0 Answers

Does removing scenes from build settings reduce the file size of a game? 2 Answers

I need help with my pause menu 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