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 G3R1 · Dec 24, 2016 at 08:09 AM · shadermaterialscript.reflection

Mirror reflecting another mirror ...

Hi guys,

is it possible to make a mirror reflect another mirror like in real life ? I found a nice script and a material for the mirror where i can attach it to a plane and it works perfectly, but when I face two of the mirrors they disappear from each ones reflection. I have no idea how to write a shader or a script to make this happen for the moment, so if there is a way to make it work it would be great. :)

Thanks.

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 Namey5 · Dec 24, 2016 at 10:23 PM 0
Share

It depends how you are doing reflections. Ordinarily (using reflection probes), you can just increase the reflection bounces in the lighting menu.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by IgorAherne · Dec 24, 2016 at 11:08 PM

there is no way to get a dynamic, 2nd reflection (even with voxel global illumination) in games as of 2016.

However, you can achieve it with render textures in small places of your game, look up tutorials on youtube

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 Namey5 · Dec 25, 2016 at 08:12 AM 0
Share

From the sounds of it, they're using planar reflections. You could probably get away with rerendering the reflection camera multiple times, although I wouldn't know how to go about it. That is, however, how the reflection probe bounces are handled in Unity.

avatar image G3R1 · Dec 25, 2016 at 10:14 AM 0
Share

Actually, i tried something similar with tutorials on youtube. I used one camera faced at the main mirror that i took from this site ( wiki.unity3d.com, $$anonymous$$irrorReflection5), then i created a render texture and applied this texture to the camera which is faced to the main mirror (not the main camera) and applied again this render texture to the plane where camera is standing. The problem now is that when i run the game, the plane where the camera should project goes black and i need to take again the same steps to make it work, but again it crashes. If I don't press the play button on the editor the camera that reacts as a mirror in that plane works fine. Have no idea why this is happening.

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 I get a reflection on the floor and on other objects ? 0 Answers

Changing the reflection cubemap of all materials? 1 Answer

How to manage shader with script 1 Answer

How to Modify Standard Surface Shader's SpecCube? 1 Answer

Creating realistic glass 4 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