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 Trond · Apr 26, 2013 at 05:39 PM · shadertessellation

How to avoid "tesselation gap"

Hello, i am experimenting with tesselation on a voxel based terrain made up of squares(yes, like minecraft). When applying tesselation to a cube a "gap" is created along its edges(see image below). Do any1 know how this can be avoided?

alt text

tesselatedcube.png (404.1 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

5 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by pinkhair · Jun 10, 2013 at 12:19 AM

You need to calculate normals/tangents as if the planes were a single mesh.

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 Trond · Jun 10, 2013 at 09:52 PM 0
Share

well, its a cube, so it is a single mesh, isnt it? anyways, how do i calculate normals/tangents? I do not have much knowledge when it comes to mesh editing

avatar image
1

Answer by vulgerstal · Nov 15, 2014 at 04:02 PM

For everyone who is facing that same problem I've two options: (This is how I fix this issue)

1) alt text

2) https://youtu.be/zZhQKL4JRtg (It's a long video but there's one moment where I fix this gap)

EDIT: Green color is height map texture. Also You'd consider green as pixels of height map texture that were converted to height in Unity. So You've to work in Z Brush/Photoshop to make height on edges of texture be 0. If You're using Photoshop You can just make those edges black with brush, and convert it to normal map in Photoshop.

Blue color is level of height map. This level should be the same for all edges of all sides of Your cube. Also make sure Your cube has proper UVW so each side of cube has one tile of heightmap.

I hope this will help You a little.


t9.png (42.5 kB)
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 vulgerstal · Nov 15, 2014 at 01:24 PM 0
Share

$$anonymous$$ake sure your height map texture has zero height on edges. Or try to https://youtu.be/zZhQ$$anonymous$$L4JRtg?t=1m53s

P.S.: I answered more fully previous time and added picture here but guys at Unity deleted my post.

avatar image
0

Answer by byteprogramming · Apr 26, 2013 at 05:41 PM

That's how it's supposed to be. You can make this not happen by splitting the cube and moving the planes so when it is tessalted it looks good

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 Trond · Apr 26, 2013 at 07:26 PM 0
Share

so there is no way to make the tesselation "tesselate around the corner" or something? Also, the cube are made up of 6 planes, so i could move them closer, but the edge doesnt seem "seamless" that way.(yes, the texture is seamless).

avatar image
0

Answer by iinewmanii · Jun 21, 2013 at 08:34 PM

Try parallax specular instead.

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 Sir-Spunky · Nov 17, 2014 at 04:39 AM

Try increasing "Smoothing Angle" on the object that use the tessellated material:

alt text

Credits to https://www.youtube.com/watch?v=zZhQKL4JRtg.


skärmklipp 2014-11-17 05.15.28.jpg (151.6 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

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

17 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

Related Questions

No Shadows on Tessellated Terrain 1 Answer

How to use this tessellation cginc with URP? 1 Answer

Standard Shader with Phong Tessellation? 0 Answers

Unity 2017 displacement for megascans objects 1 Answer

Mesh triangles are clipped before tessellation 1 Answer


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