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 Krpouncy · Jan 16, 2014 at 06:16 AM · model3d modelswindowglasssee through

How do I stop seeing through models by glass windows?

I can see through the model of my house and know what is on the other side. When I take a glance through the window of my house, I can see what is on the outside of the other side of the house. How can I just see the inside of the house and not through it? alt text alt text

alt text

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

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by tanoshimi · Jan 16, 2014 at 07:07 AM

By default, surfaces in Unity (as in almost all 3d modelling software) are single-sided. You only see them from the "front", when the normal direction of the surface is pointing towards you. To demonstrate this, create a new Plane or Quad object in your game scene and then look at it from behind - it will appear invisible.

The walls of your house have their single-sided surface pointing "outwards", so if you walk around the outside of the model they will all appear to face you. However, when you look through the glass window you are able to see the reverse side of the far wall of the house. Since its normal is now pointing away from you, it appears invisible.

To solve the problem, you can either:

  • duplicate the walls of your house, and flip the normals on the duplicated copies to point the other way (making them two-sided).

  • use a custom shader that renders both back faces and front faces of a surface

Comment
Add comment · Show 4 · 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 Krpouncy · Jan 16, 2014 at 07:41 AM 0
Share

Thank you for responding. How do I make a custom shader? I barely stared using unity a week ago.

avatar image thornekey · Jan 16, 2014 at 07:43 AM 0
Share

http://docs.unity3d.com/Documentation/$$anonymous$$anual/Shaders.html Check the unity manual for information - it has everything you need. This is the link to the Shaders

avatar image tanoshimi · Jan 16, 2014 at 08:29 AM 0
Share

Try searching ;) I posted this two-sided surface shader in response to a question just the other week: http://answers.unity3d.com/questions/610316/multipass-surface-shader-or-equivalent.html

avatar image Krpouncy · Jan 16, 2014 at 11:14 PM 0
Share

Thank you tanoshima

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

Best performance for repeatable objects in a City scene. 1 Answer

Problem with Model Scale 0 Answers

Multiple gameobject instances causes model glitch 0 Answers

Importing Luxology Modo's compound 3d model 1 Answer

picture in picture 3d. 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