Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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
1
Question by r1chard3 · May 07, 2010 at 03:37 AM · textureterrainterraintexture

How do I extract a texture map from a terrain?

I used the Export Terrain script to generate a .obj and opened it in Maya.

I'd also like to get my procedurally generated texture map out (I was using TerrainToolkit) so I can work with it in Maya and Photoshop.

Is there a way to do this?

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
0

Answer by VivienS · Apr 11, 2011 at 10:01 AM

As far as I know, there is no complete "procedurally created terrain texture" in Unity, because as a single map it would have to be an enormous file. Instead, the terrain texture is a result of the tiled terrain textures you assigned via the inspector and a splat map.

To get the best quality in Maya, I'd suggest you export the splat map and use the HyperShade to recreate the procedural map from Unity. I did a similar thing some time ago, and it worked fine (If you want, I could explain the Maya shader-setup).

You can view your splat map in the project panel: it is a child of your terrain object. Select the splat map in the project panel and convert it via this script into a PNG:

// For saving splat map as PNG file. import System.IO;

@MenuItem("Assets/Export Texture") static function Apply () { var texture : Texture2D = Selection.activeObject as Texture2D; if (texture == null) { EditorUtility.DisplayDialog("Select Texture", "You Must Select a Texture first!", "Ok"); return; }

var bytes = texture.EncodeToPNG(); File.WriteAllBytes(Application.dataPath + "/exported_texture.png", bytes); }

Source: The script is mentioned in this forum thread.

Alternatively, I'm sure you could find a script to export a scaled down version of the terrain map.. (or the quick and dirty method: just take a screenshot from the top view) ;)

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 VivienS · Apr 11, 2011 at 10:05 AM 0
Share

Oh yeah.. and you have to re-import the splat map again, if you want to use it in unity.. quite the exhausting workflow ... ;)

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

No one has followed this question yet.

Related Questions

Can't paint more than 8 textures on terrain 3 Answers

Terrain Texture Android And OpenGL ES 1.x 1 Answer

Paint textures like on terrain but without terrain? 0 Answers

cannot find terrain texture 0 Answers

Details texture casting shadows ? 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