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 jann1 · Jun 15, 2014 at 01:31 PM · shaderobjectmask

hiding behind an invisible object, shader

Hi, what I want to do is create an invisible plane that hides certain objects. But other objects are still supposed to be seen. I looked into this http://wiki.unity3d.com/index.php?title=DepthMask

but I do not know much about shaders. So please could you either tell me what to do in simple steps or lead me to a tutorial where I can learn about shaders and RenderQueues and what they do.

I might be asking for a lot but I really am helpless here. 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 PouletFrit · Jun 15, 2014 at 03:54 PM 0
Share

There is 6 great tutorial on shaders on Unity Gems

1 Reply

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

Answer by jann1 · Jun 15, 2014 at 05:50 PM

Allright I did it! I used the DepthMask and two cameras and the sorting layers and now it works the way I want it. Anyway thanks PouletFrit, Im sure thos tuts will come in handy another time.

Comment
Add comment · Show 3 · 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 gabish · Dec 11, 2015 at 08:22 AM 0
Share

Hey, i'm trying to achieve the same thing here. Could you please describe how you did it in more details? Also is this for 2d or 3d objects? Thanks a lot!

avatar image tanoshimi · Dec 11, 2015 at 09:00 AM 0
Share

Why not use the stencil buffer? https://alastaira.wordpress.com/2014/12/27/using-the-stencil-buffer-in-unity-free/

avatar image gabish tanoshimi · Dec 11, 2015 at 02:36 PM 0
Share

Thanks so much tanoshimi, i didn't know about it, so cool! Thanks again for your reply!

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

22 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

Related Questions

Rewrite simple alphamask fixed function shader to surface or cg shader 2 Answers

Sprite masking 3 Answers

Can you specify what the DepthShader masks? 0 Answers

Gradient over multiple tiled objects 1 Answer

Masking shader with alpha Color 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