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
2
Question by BrightBit · Sep 30, 2014 at 10:12 AM · transparencystencil

Transparency for several objects without overlaps

I have to admit that I already asked my question here:

Unity Support: Non-overlapping transparency for several objects

...but it seems unlikely that it will be answered there.

I would like to recreate a certain effect where multiple transparent objects won't create lesser transparent areas where they are overlapping each other. The following image illustrates what I would like to avoid:

alt text

Minecraft is a great example to show you what I would like to achieve:

alt text

The fountain has no overlapping water and it's not possible to create those artifacts from the image above in Minecraft in any other way. A friend of mine told me that this effect might be possible by using the stencil buffer which in Unity is a Pro only feature. I'm curious if he's right with that. Minecraft (Vanilla) doesn't use shaders, so can you use the stencil buffer with the fixed function pipeline?

Comment
Add comment · Show 2
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 ShadoX · Sep 30, 2014 at 12:29 PM 1
Share

this won't really help, but I'm pretty sure that $$anonymous$$inecraft simply doesn't render the surface of a cube if it's not directly facing the camera.. in your case it's a matter of having whole objects while in $$anonymous$$inecraft it seems to be more of a "render this face if it's facing the camera" type thing..

also, maybe http://answers.unity3d.com/questions/418008/render-transparent-material-without-double-occlusi.html might help

avatar image BrightBit · Sep 30, 2014 at 02:57 PM 0
Share

Thank you for trying to help me but what you describe is nothing special and is called "back-face culling". Furthermore, it doesn't avoid those overlapping areas.

0 Replies

· Add your reply
  • Sort: 

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Use stencil buffer to hide objects with same shader? 1 Answer

Shader that renders pixel with highest alpha value? 0 Answers

can see inside object that is supposed to be fully opaque 0 Answers

Sprite animation on quad with UV-coordinates 1 Answer

I have transparent areas in my sprite, how can they show up as transparent in Unity? 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