Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 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
1
Question by dbalaji94 · Aug 04, 2017 at 07:07 AM · shadersskyboxportaldepthmaskportals

How to make the Skybox visible only through a window?

Hi Guys,

Is it possible to make the skybox visible only through a window like object?

I'm trying to make a portal kind of thing with ARKit.

I'm using Depth mask to hide the objects behind

alt text

So it actually looks like this

alt text

The problem here is, the AR Camera needs to be cleared with depth only and so the skybox inside the portal is not visible.

After passing through the portal I can make the camera to clear skybox but before entering into the portal I need to see the skybox.

Is there any way to make the skybox visible with shaders or somehow?

I hope you understand my question.

Thank you

screenshot-8.png (224.3 kB)
screenshot-5.png (164.3 kB)
Comment
Add comment
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

3 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by x4637x · Aug 04, 2017 at 07:12 AM

I think what you are talking about is something like this : Fake Interior Check out the "Fake Interior" in that link.

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 dbalaji94 · Aug 04, 2017 at 08:05 AM 0
Share

Thank you for your response. But I don't want to use Render Texture as it needs a second camera or if we use a normal image it doesn't looks realistic. So I just need a shader which can show custom skybox ins$$anonymous$$d of regular skybox.

avatar image x4637x dbalaji94 · Aug 04, 2017 at 08:39 AM 0
Share

Then there is nothing else I can help you with, I know very few about shader and skybox. Good luck solving that out.

avatar image
0

Answer by Dragantium · Nov 27, 2020 at 02:30 PM

Use skybox in the camera, and select the one you need in the render texture

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
avatar image
0

Answer by Envans · Nov 27, 2020 at 02:59 PM

Here is a GREAT youtube channel with low subscribers and relatively not known https://www.youtube.com/channel/UCQrD9U5-jVdmzF2Bt7cjtNg he makes great tutorials very professional and well versed. He has a skybox with clouds shader tutorial video that you can check. Good luck with your project.

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 Envans · Nov 27, 2020 at 03:01 PM 0
Share

I just noticed the question is from 2017. For anyone looking for a solution to these you add the shader material to a plane and make it seem like its a "window" then you can fade the plane out when you pass through it or something similar.

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

75 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

Related Questions

Use Skybox material on Cube 0 Answers

Portal between scenes? 3 Answers

Unity URP Skybox shader Graph not wrapping properly 1 Answer

Another question about portals... 0 Answers

Depth mask shader and Unity shadows 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