Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 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 /
This question was closed Feb 03 at 09:04 PM by mjonasz for the following reason:

The question is answered, right answer was accepted

avatar image
0
Question by mjonasz · Feb 02 at 06:35 PM · cameras

Camera shows the gameObject at the bottom cover the gameObject on top.

I have a map graphic with a white band around it (Terrain in the hierarchy center left in the attached image.). To cover the white band I put game objects over it (metalBand). However, the camera shows the Terrain over the metalBand, hence you see the white band (top right) whereas you should see the metalBand that covers it (next to that) (if I move the camera to the side, I can see the metalBand where it extends past the Terrain so I know that the camera can see it - only the order is reverse). Settings for the camera and the two game objects are in the attached image.

I played around with the camera settings but have not been able to figure out how to fix this. If anybody could point me in the right direction it will be most appreciated. alt text

camera-problems.jpg (279.4 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

1 Reply

  • Sort: 
avatar image
0

Answer by privatecontractor · Feb 02 at 09:34 PM

Hi @mjonasz,

maybe have solution for you (not the best but supposed to work...) Let's add another camera in order to being able to decide about sorting order...


Step 1: add a second camera to your scene (at some point, making GameObject "Cameras Root" and watching all cameras as children could be useful... maybe consider this also).

Step 2: create a new Object Layer that you will atache to all objects you willing to have on Top. Chose name withc you prefer like "Top Layer" etc..

Step 3 Select new created camera in hierarchy tab, and in camera preferences click Culling Mask dropdown... deselect all elements and select only your new created "Top Layer"

Step 4 Conduct almost same step on old camera, but deselect just "Top Layer"

Step 5 On new camera settings. Set depth value higher than original value.

Step 6 On new camera settings, click the Clear Flags dropdown and select Depth Only.

Hope will do, Let me know! Know it's terrible solution, but sometimes we just need push things forward. Personally using this solution for ParticleSystem and some WorldSpace Canvas Ui elements (like healthbars atached to enemy's) so belive it will help you.

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 mjonasz · Feb 03 at 09:04 PM 0
Share

Turns out the problem was the lack of a depth buffer in the render texture used by the camera - this was a $$anonymous$$i map camera.

avatar image privatecontractor mjonasz · Feb 03 at 09:26 PM 0
Share

@mjonasz,

Good job! As you manage to solve it on you own. Change your comment to answer, then: mark it as best answer.... so if anyone will have similar issue will be able to fix it.

Follow this Question

Answers Answers and Comments

135 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 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

How to use 2 Cameras in FPS 2 Answers

have a camera from a different scene? 1 Answer

2 different cameras 2 Answers

Putting an image in the middle of two cameras (not repeated) 2 Answers

How do I make camera not render specific lights? 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