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 sebeisdrache · Mar 16, 2015 at 02:23 PM · colliderterrainblenderterraintexture

Blender Terrain in Unity

Hello,

if I made a terrain in Blender (Unity Terrain does not support holes in the Terrain). What is the Best way to texture it? I think a huge texture on a huge (10k x 10k) is not a good solution. Well I can use tiling for one Texture, but waht if I have more than one Texture for my terrain, like Grass, sand and some stone? Using blenders Texture Paint for a "huge" (20 mb or bigger) Image works well in Blender but for the players who play with unity?

Another question is about the Collider, can i Use a Mesh collider for my Terrain mesh?

Comment
Add comment · Show 4
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 taxvi · Mar 16, 2015 at 02:48 PM 0
Share

isn't 2k x 2k image enough for a game terrain? if not you might as well want to split up the terrain into tiles (like use 4 sub terrains ins$$anonymous$$d of 1 whole) and load them asynchronously. for the collider you will need to generate a low-poly of your terrain, not gonna be a big problem in blender (it's like $$anonymous$$esh > Reduce in $$anonymous$$aya, should be similar in blender).

but I'd advise you to browse some tools on asset store and online first. e.g. Unity Terrain Toolkit (though I don't think it supports holes).

avatar image sebeisdrache · Mar 16, 2015 at 03:41 PM 0
Share

Imagine you have grass texture wich is like 512x512, then you can place it 4 times on the 2k texture, in game it will look a bit like green pixels on the ground.

I found a possible workflow after some experiments:

  1. $$anonymous$$aking a terrain in blender.

  2. $$anonymous$$ake some Texturelayers with Stencil $$anonymous$$apping.

  3. Save the Stencil$$anonymous$$ap texture (its like an alpha map)

  4. export the terrain to Unity

  5. Place the $$anonymous$$esh in the Scene

  6. Select the Terrain mesh (and its Submeshes) and crate an Extra $$anonymous$$aterial or more

  7. In my experiment I use the Basic $$anonymous$$aterial as Grass with the Standart shader.

  8. Now i use the Secondmaterial as Stencil map: for this I used the Standard shader in fade render mode. at the $$anonymous$$ain $$anonymous$$ap (Albedo) i use the Exported stencil map form blender (it hav to be an grayscale alphamap). Now the Secondary $$anonymous$$ap as the Stone texture.

The result looks nice for now.

I Think terrain details (Grass and Trees) like the unity Terrain Engine can only placed by hand.

alt text

test.jpg (393.9 kB)
avatar image Owen-Reynolds · Mar 16, 2015 at 10:45 PM 0
Share

But, you know Unity terrain uses standard optimizations to run faster? A terrain collider is faster than a mesh collider. Unity terrain uses standard shader tricks to tile and blend multiple textures. You could copy and adapt those for yours (but if you never heard of those tricks before, it will be work.)

You can find threads about models vs. terrain explaining this.

avatar image sebeisdrache · Mar 17, 2015 at 12:26 AM 0
Share

the main reason is: unitys standart terrain does not support holes

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Gf15a4 · Mar 17, 2015 at 12:39 AM

The only way for you to maintain the quality and to edit the textures without the same one repeated over and over is splatmap. A splatmap alows blending of multiple texture which only contains the data of mixing. The textures themselves are repeated but opacity changed based on heightmap. If you really want this performance increase learn n' program up like I did bud.

As for the terrain collision... using a mesh collider for such a large terrain would be very very unsuitable. Instead, you need to come up with an equation yourself that determines the height based on which quad your on, relative location to the quad, then the triangle your on. From there you turn this information over to the berrycentric equation. Trust me, there is no way out of this... if you want to use a mesh collider and lose 30fps on a large mesh than to learn a simple equation then thats fine.

-Brett, hope I helped

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

24 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Object falls through terrain 1 Answer

Blender terrains and gravity 1 Answer

Large Mesh Colliders and character collider not coliding 0 Answers

Create Terrain in other Software 1 Answer

terrainData.heightmapTexture float value range 2 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