• 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 Affy · Aug 29, 2014 at 05:27 PM · terrainmeshnormalsprocedural mesh

Procedural mesh artifacts.

I have written my own terrain generation and when I generate terrains, I get these patches of dark areas occurring whenever there is a "hard" edge.

Like this:

There is a group of 9 quads which are less lit than the others. alt text

I create the verts, triangles and UV's, then I call RecalculateNormals().

I can confirm the following:

  • There are no duplicate vertices.

What am I missing? Thanks in advance.

Comment
Add comment · Show 1
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 AlwaysSunny · Aug 29, 2014 at 08:20 PM 0
Share

Can you describe what you mean by a "hard edge"? Are these 9 quads an individual object? What other possible differences might exist where these artifacts are present?

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by flaviusxvii · Aug 29, 2014 at 10:07 PM

It sort of looks to me like the triangles aren't sharing normals at the vertexes. Have them share normals where you expect the faces to look smooth.

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

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

How do I combine normals on procedural mesh with multiple tiles? 2 Answers

What's wrong with this simple mesh manipulation? 1 Answer

how to calculate this? 2 Answers

Procedural mesh's normals are reversed (Solved) 2 Answers

Holes in procedural mesh 0 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges