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 Overcast · Oct 19, 2013 at 11:11 AM · terraingrassflickeringdetail

Flickering grass on terrain

Hi everyone,

I have imported a terrain via a heightmap, the only problem is when I add grass details to the terrain, they flicker in the game view where they are on slopes. In the scene window, they don't exhibit the same behavior fwiw.

Can anyone offer a solution for this? I've played around with all the terrain settings and the render settings which seemed likely to no benefit.

EDIT: I thought I should add, this is largely because I am looking down on the terrain quite often, and it seems the bill boarding is having z issues with the terrain.

Thanks for your time

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
0
Best Answer

Answer by Overcast · Oct 20, 2013 at 02:41 AM

Solution found, the camera's near clipping was set to 0.01, changing this to 0.1 fixed everything.

Solution originally provided here: http://answers.unity3d.com/questions/36275/culling-with-terrain.html

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
avatar image
0

Answer by Owen-Reynolds · Oct 19, 2013 at 04:37 PM

Unity grass is a little different from typical MMO terrain grass. It Y-spins to face, and it also leans back a tiny bit as you look down on it. This prevents you from seeing an ugly edge when you look almost straight down.

The problem is, if you go "over the top," it has to snap slightly in the other direction. So, yes, a moving/spinning down-looking camera makes Unity grass snap. Not sure why slopes matter (I think the grass always grows straight up, slope or not.) I'd guess the camera is just more active near a slope, so you see it more.

Only fix I can think of is to prevent the camera from looking too much down, and forcing a 180 spin instead of an over-the-top.

Alternately, could plant your own 2-sided grass-textured planes. But that would be a huge pain -- you'd be writing a new grass-rendering system.

Comment
Add comment · 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 Overcast · Oct 19, 2013 at 09:47 PM 0
Share

Thanks for the reply Owen, do you have any idea what the scene/editor viewport does differently in its render? It doesn't happen at all in this view, regardless of the angle.

I was hoping there was something I could do to have the game camera render it differently, even if that meant a quality hit.

EDIT: one more note, even if I tell the grass not to billboard, it still has a similar effect, flickering near slopes when being looked upon from a high angle.

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

15 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

Related Questions

whats a good size for a standard terrain? Details, grass, trees disappear when zoomed out editing. 1 Answer

Forward rendering shadow flicker glitch (with video) 1 Answer

Can I render backfaces on vertex lit terrain detail meshes? 0 Answers

Some questions about the choice between terrain editor's built in in unity 3D or make all whitin a 3rd partyy program like 3DSMAX. 0 Answers

Painting grass with detail mesh and grass texture? 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