• 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 Erikulum · Aug 08, 2014 at 04:29 PM · smoothnormalstiledseamless

Remove seam on tiled gameObject while keeping a smooth-shaded look

Here's my problem, I want to create randomly generated "biome" based on "mini zone" using hexagonal building block and I want to have seamless smooth shading between the block.

Here's what it's currently look like in my zonemaker

alt text

And here what I don't want it to look like (flat shaded)

alt text

How can I achieve this

problem.png (129.2 kB)
easy.png (426.4 kB)
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

3 Replies

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

Answer by Erikulum · Oct 06, 2014 at 02:53 AM

Nailed it!!!

alt text

For those interested to obtain a similar result, I did it by recalculating the normals for each block while taking into account the vertices of the adjacent ones. I wouldn't recommend trying to do it without prior knowledge about meshes, normal, UVs etc...

...but I was able to do it so if you wish to try, here's some useful links:

Anatomy of a Mesh

Script References - Mesh

Computing a perpendicular vector


hard.png (297.8 kB)
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 GTASUPERFAN · Aug 08, 2014 at 06:45 PM

what is mesh normals set to, in the mesh properties?

try setting it to calculate, the to 30 to 35 and apply and see if that works

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 Erikulum · Aug 08, 2014 at 07:20 PM 0
Share

Already tried it, it gave me that second image flat-shaded look, not what I'm looking for

avatar image
0

Answer by bugmagnet · Aug 13, 2014 at 03:18 PM

If you want seamless smooth shaded along the entire top when you put tiles together it won't be possible unless they are actually a single piece of geometry.

You may be able to do this dynamically by modifying the mesh in code, but i think here is an easier way: for every type of tile, have different versions with different combinations of soft/hard normals. Then in the scene you can detect which is needed: you put the soft ones along the edges and the 100% hard one in the center.

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 Erikulum · Aug 16, 2014 at 09:13 PM 0
Share

I don't think I'd like to use that workaround, since it would mean having dozen of variation of each block. I want to be be able to add more complex block and more variation without hassle. I've searched for a while about this problem after asking and was hoping $$anonymous$$esh.Combine$$anonymous$$eshes and $$anonymous$$esh.RecalculateNormals would work, but you seem to implies I'll have to fuse vertices together to obtain a good result. Guess I'll go back to this problem at a later time, probably just before creating more variety

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

Smooth Normals 0 Answers

Game Lags when 2 same Objects in scene 1 Answer

Reflections not seamless 1 Answer

Semaless Textures 1 Answer

How to Prevent Vertice/Normal Seams Visible on Mesh? 0 Answers

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