• 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 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
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
1
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
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

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

2 People are following this question.

avatar image avatar image

Related Questions

How to map texture across multiple objects? 4 Answers

Procedural terrain tiles 0 Answers

Terrain Procedural Texturing based on height? 4 Answers

Writing fragment shader data to RenderTexture 0 Answers

Normal maps using TerrainToolkit and Code? 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