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 eric1254 · Feb 14, 2014 at 07:24 AM · transparent-texture

Cannot see the back part of transparent globe

Hi every body,

May be its a noob question,but i not able to understand the problem. I have a globe and i make it transparent,but i cannot see the opposite side of globe and at the same time i can see background screen exactly,as shown in attached image.

Please help!! and please excuse me for my poor English.

Thanks in Advance.

alt text

capture1.jpg (112.4 kB)
Comment
Add comment · Show 3
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 robertbu · Feb 14, 2014 at 07:39 AM 1
Share

In Unity, meshes are one sided. So when you view the partially transparent globe you don't see the backside of the other side of the sphere. You can modify the shader to turn off backside culling, but there are often lighting issues since both sides will be displayed as if they they are the 'front' with respect to the light. In theory it is possible to create a shader that renders both sides. There are several long posts about the issue on UA, but this would be a special shader that you may have to hunt up or create yourself. You might be able to play games by have two spheres, one with normals facing outward and one with normals facing inward. There is a Wiki script that will reverse normals at runtime, but it would be better to do it at edit time if possible.

avatar image eric1254 · Feb 14, 2014 at 01:33 PM 0
Share

thanks robertbu for your help could you please tell me how to turn off backside culling.

avatar image Jellezilla · Feb 14, 2014 at 02:48 PM 1
Share

I believe that it is usually achieved by writing another subpass in your shader that renders the faces even if their normal is facing away from the camera or is blocked.

1 Reply

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

Answer by MakeCodeNow · Feb 15, 2014 at 08:29 PM

You just need to set Cull to Off in your shader. That will tell Unity to render both front and back faces.

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 eric1254 · Feb 17, 2014 at 09:04 AM 0
Share

can you please tell me from where to set off in shaders,I am very new to unity and i am not able to find it.

avatar image fafase · Feb 17, 2014 at 09:12 AM 0
Share

http://docs.unity3d.com/Documentation/Components/SL-CullAndDepth.html

The reveal backface shader.

avatar image eric1254 · Mar 03, 2014 at 09:38 AM 0
Share

@fafase Thanks a lot

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

20 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

Related Questions

System.Collections error while building the player for windows phone 8 1 Answer

Crashing of unity 0 Answers

Need help to earn Krama 2 Answers

Help! My script wont work! 1 Answer

The character fails to jump sometimes 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