• 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
1
Question by Lypheus · Dec 01, 2010 at 11:19 PM · culling

Culling With Terrain

I'm just building my scene and I noticed that when two objects intersect, theres a lot of "flashing" and oddities that can occur, esp. in regards to terrain. It's probably something simple that i've failed to RTFM on but never the less if someone could enlighten me it'd be much appreciated :).

So for instance, heres a section of the scene with a few dumpsters that i'm looking to simulate being "buried" in sand a bit. As I approach, the sand seems to translate up/down where it intersects with the dumpsters:

http://grab.by/7G4z

vs

http://grab.by/7G55

Also, if the terrain is slightly intersecting the bottom of a dumpster it will flicker/flash quite a bit.

Is there a way to tell unity to cull one object in preference to another? I can see just smart object placement to solve the flickering and that's no problem, but watching the terrain "grow" and "shrink" is a little harsh :).

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

2 Replies

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

Answer by Eric5h5 · Dec 01, 2010 at 11:28 PM

Try reducing the camera's far clip plane as much as possible. From what I can tell the issue might be the result of not enough zbuffer precision.

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 Lypheus · Dec 03, 2010 at 08:59 AM 0
Share

I increased the "near clip plane" to 0.5 and no more problems - woot, thanks for the tip!

avatar image Linus · Aug 14, 2013 at 10:19 PM 0
Share

Thanks @Lypheus and Erich that solved it for me as well. I have an nVidia GeForce GTX 460, throwing that in there for future searchers since I found many people having the problem, but not this solution posted.

avatar image
0

Answer by TowerOfBricks · Dec 02, 2010 at 07:05 AM

Using anti-aliasing (Project Settings--> Quality) can help quite a bit for the visual quality too, but not so much for the flickering. Make sure you don't have surfaces which overlap exactly (one polyon is at the exact same place as another poly), this will cause Z-fighting which is probably what you are seeing.

Other than that, follow Erics answer.

Comment
Add comment · 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

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.

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

1 Person is following this question.

avatar image

Related Questions

double-sided plane with texture? 4 Answers

Does Unity Do "Portals"? (Not the Valve Game) 1 Answer

Culling part of a sprite in Sprite Manager 2 1 Answer

Lights and Culling Masks 1 Answer

Hiding sections of arbitrary models that lie one side of a plane 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