• 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
Question by Deneb · Jul 13, 2014 at 03:12 PM · textureterrainproceduraltileseamless

Procedural Texturing on Multiple Terrain Mesh

I'm building a procedural terrain system and have an issue regarding texturing. It is meant for a flight simulation game.

That system has nothing to do with the unity built-in terrain system. the terrain mesh's are generated by C#. Iterations are made to fill vertices, triangles, normals and uv's arrays to create the mesh's. I use perlin noise as heightmap.

the system works with 9 tiles ( 3 by 3 ) the user / aircraft is always in the center tile. When the aircraft is moving to another tile, that tile becomes the tile in the center and other tiles are moving to re-form the 3 by 3 shape ( with the aircraft in the center tile ).

In the current system, each tile is 24000 x 24000 units. Using proper fog settings i can hide the new terrain tiles poping at the horizon.

All of this is working great, my only problem is about the texturing: I wrote a very simple Cg shader for the terrain material. Using the multi uv mixing technique, to avoid the tiling texture effect. The shader is using 2 seamless textures, that are "mixed" in many different scales to avoid any visible tiling. I'm totaly happy with the results but here is my issue:

Every of the 9 tiles are using that same Material, and between each tiles, the texture seam is visible. I'm looking for a different approch to texture my 9 tiles in a way that we cannot see any texture seams between tiles.

Comment

People who like this

0 Show 0
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

  • Sort: 
avatar image
Best Answer

Answer by Deneb · Jul 17, 2014 at 04:45 PM

okay, the solution was to modify my shader so it uses world position as UV's instead of the 2D textures uv's! :) :) :)

this answer helped: http://answers.unity3d.com/questions/148888/generative-seamless-textures-across-multiple-plane.html

my related post in the forum: http://forum.unity3d.com/threads/procedural-terrain-system-and-shader.257274/#post-1701506

Comment
Graham-Dunnett

People who like this

1 Show 0 · 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

Unity Answers is in Read-Only mode

Unity Answers content will be migrated to a new Community platform and we are aiming to launch a public beta on June 13. Please note, Unity Answers is now in read-only so we can prepare for the final data migration.

For more information and updates, please read our full announcement thread in the Unity Forum.

Follow this Question

Answers Answers and Comments

2 People are following this question.

avatar image avatar image

Related Questions

Terrain Procedural Texturing based on height? 4 Answers

Modify Six Times Nothing Road Tool Script to have a lower wear range 0 Answers

How can I set World Builder to generate right to the edge? 0 Answers

How do I go about texturing a flat-shaded generated mesh? 1 Answer

Pixelated Texture Edges on Terrain 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