• 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 Aug 26, 2016 at 08:57 AM by Blue-Cut for the following reason:

The issue was actually 2 different issues. One is answered in the question, and the other one need to be re-write in another post so it can be explained clearly.

avatar image
Question by Blue-Cut · Aug 25, 2016 at 03:24 PM · cameramesh manipulationclipping planehidden

Camera clipping planes : hidden planes when the transform position is too far

Hello,

I have a problem with apparently camera clipping planes. Depending on my camera's position, the black borders of my areas are $$anonymous$$dden :

Pic1 : you can see 3 areas with black borders Picture 1

Pic2: if I move the camera, so the position value of my border is too far from the field of view, my plane is $$anonymous$$dden alt text

After reading other topics, I played with the "Near" value of my main camera. And indeed, turning 0.3 to 0.01 is making t$$anonymous$$ngs better. But it's not enough, my problem is still here and I already have "Near" to the minimum value. Increasing "Far" doesn't change anyt$$anonymous$$ng.

Other (important ?) note : at start, my black border is square-shaped, then to match with my area size, I modify the position of the vertices, and at the end the black border position is at the bottom right of the area. Maybe I can solve my problem by inversing my computation and taking the top-left as base, but I didn't test that yet.

Is there anyt$$anonymous$$ng else I can do ? Thank you for your help.

2.png (73.4 kB)
1.png (70.8 kB)
Comment

People who like this

0 Show 0
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

Answer by chrstw · Aug 26, 2016 at 04:47 AM

I am not sure how your scene is set up, but it sounds like maybe you have a Z-Fighting issue. How close together are the Black and Grid planes? Z-Fighting typically occurs when the floating point accuracy of the Z-Buffer isn't $$anonymous$$gh enough to be able to determine w$$anonymous$$ch object is closer to the camera. Adjusting the Near clipping plane changes the accuracy of the Z-Buffer. It usually presents in a visual artifact where some of the object be$$anonymous$$nd clips with the object in front and changes as the camera moves around. The pictures you included don't look like what I would expect from Z-Fighting, but your mention of changing the Near clipping plane helping makes me t$$anonymous$$nk along these lines.

Anyhow, just a guess, but if you were to move the planes so that it was more obvious w$$anonymous$$ch was on top it could help.

Comment

People who like this

0 Show 1 · 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 Blue-Cut · Aug 26, 2016 at 08:19 AM 0
Share

Hi chrstw, thank you for your reply. After reading your post, I wonder if my problem is actually 2 problems : the Z-Fighting problem, and the other problem.

I manually put my borders at y++++ to separate them clearly from my grid, but the issue is still here, with the exact same behaviour : the plane is hidden when it's position value is far from the camera.

Maybe I really had a Z-Fighting issue exactly as you described, but in this case, setting the "Near" value of the camera to 0.01 resolved this issue, then only the other one remains.

My instinct tells me that my mesh manipulation could be involved here. It's like if Unity was considering the size of my border object as the basic size it had at start. So when this size is out of the field of view, Unity thinks that no part of this object is in the field of view => the object does not need to be rendered.

If you have an idea about how I could fix this, I take it ^^. I continue my investigation

EDIT : after a few test, I am pretty sure I am right about the issue. I am going to re-write my problem in another post

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

69 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

Related Questions

How to have player camera Render enemy but not itself with same tag and camera clipping mask? 0 Answers

How do you set up a 3D object so that when you slice it with the camera's clipping planes, it is solid? 1 Answer

Shadows on multiple cameras 0 Answers

Orthographic camera with rotation and ScreenToWorldPoint 2 Answers

Changing Far Clip Plane via Script doesn't work! 2 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