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 /
avatar image
0
Question by joesobo · Sep 24, 2020 at 03:11 AM · grassgeometry shaderspherical

Issue with spherical grass shader at x polar coords,Issue with grass shader on spherical surface at x polar coords

I have been following this tutorial to create a grass shader for my spherical planet. https://roystan.net/articles/grass-shader.html

Currently everything is pretty much the same except that I made the grass into cubes instead of triangles (either way it seems this issue persists).

In my game I generate the grass using a geometry shader along a 3D spherical based surface, called a geodesic dome (Basically a sphere made of hexagons). The issue I'm having is that the width and depth of the grass blades are incredibly small, only at the x polar coords. This results in a skinny blade look. Every where else looks completely normal.

Normal surface grass: https://imgur.com/qjzLA8U

X Polar surface grass: https://imgur.com/liqNqPB

Interestingly I have tried generating the grass shader on a normal Unity sphere, and I see absolutely no issues. At this point I've been stuck on this issue for quite some time and need any help I can get. I can't think of any reason why it would generate properly at the x polar coords on a curved surface, but not a flat. If it would help I would be totally willing to share the code.,I've been working on a grass shader based off this tutorial https://roystan.net/articles/grass-shader.html. I've modified the grass to be cubes instead of triangles, but besides that everything is pretty much the same. In my game i'm using a geodesic dome as the surface (a sphere made of hexagons).

When I generate the grass geometry along the surface of the geodesic dome it appears to work perfectly except at the x polar coords (points of greatest and lowest x values). At the x polar coords both the width and depth are incredibly small and unlike the rest of the surface. However when I tried generating the grass shader on a normal Unity sphere it appears correctly.

Image of the x polar coords: https://imgur.com/liqNqPB

Image of the rest of the surface: https://imgur.com/qjzLA8U

I've been working on this issue for quite a while and would be very grateful for any help. I'd be more than willing to share the code if it would help.

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
0

Answer by joesobo · Sep 24, 2020 at 08:45 PM

Solved by use ProBuilder to fix the surface's normals and tangents

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.

Follow this Question

Answers Answers and Comments

133 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

Related Questions

Geometry Shader vs Instancing for grass 1 Answer

Procedural grass placement 0 Answers

What is more efficent? Multiple passes or a single pass with iterative loop? 0 Answers

how to draw billboards grass with alpha? 0 Answers

Grass in Geometry/Compute Shader 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