• 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
2
Question by eyal · May 25, 2011 at 07:44 PM · blender

Importing Blender material

Hi All

I use Blender as my modeling and animation tool. I've created some models with material including some procedural textures that influence both roughness and color of my model.

How can I export the all model (with the material) into Unity?

I use Unity 3.3 pro and Blender 2.57b

Thank u in advance

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

4 Replies

· Add your reply
  • Sort: 
avatar image
4

Answer by the_Simian · May 25, 2011 at 08:40 PM

Howdy, I've been working with blender and Unity and this is what I do.

1). So in Blender, be sure to assign the right materials to your objects, and as you know you can assign multiple materials to multiple objects. make sure you've done this.

Here is a link to help with that step:

  1. http://www.blendercookie.com/2010/06/15/tip-adding-multiple-materials-to-a-single-object/


2) After that, you'll need to UV Unwrap in blender. Of course, a quick and dirty way is to use the "Smart" Unwrap". However, the 'correct' way is to use seams. You can access these menu's in blender with Ctrl E, for seam marking/ and clearing. Since your procedural texture will tile across the model, you should make sure the unwrap looks right in the UV editor. You can easily apply a test grid texture to see how it turns out, especially over Complicated models.

Here are two links, one simple and another more advanced on this topic.

  • http://www.blendercookie.com/2011/01/21/intro_uvmapping/

  • http://www.blendercookie.com/2010/03/28/unwrapping-a-building-part-01/


3) Now Export the Model as an FBX, and drop the FBX into your assets folder. For ever material you had assigned, Unity makes a Materials folder, and makes an empty material. What I do at this point is add another folder called textures. Here is where we assign your textures to the slots in the materials.

Unity Does this part. Assume you had a bumpy wood texture, this consists of a normal map and also a diffuse map. For the appropriate Material (correspoinding to the fbx export), simply select bumped diffuse from the dropdown menu. Now, drag the color information to the diffuse part, and the blue-bump information to the other. You shoudl see the result appear in the Unity material preview. You can even switch between cube, spehere, and cylinder to make sure it looks right. Now, how this material tiles across your model will be determined by how you UV unwrapped from before.

If you're unclear on this part of the process, here is a video to help:

-http://www.youtube.com/watch?v=Op10dBJ69dU

Now do this for every material!

You might have to play with the repeat setting in the Unity material editor to make it look correct. For htings like metal and glass, there are other texture types that will work. Specular, for example, will give you shiny stuff. More on that here in the Unity manual on textures.

-http://unity3d.com/support/documentation/Components/Built-in%20Shader%20Guide.html

Read a little here on the texture types, to bring it all together like you like.

Edit: so did this answer your question? Do mark it as answered if so.

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 CER · Jul 30, 2016 at 04:08 AM 0
Share

This is good information. I keep searching for a way to do step 3 without having to relink each material to the texture file. I am probably going to write a quick editor script to do it, but it seems like a problem everyone else is encountering? It seems like something Unity would do for me but that doesn't seem to be the case...

avatar image
0

Answer by fusobotic · May 25, 2011 at 07:53 PM

I would suggest baking the procedural textures into a UV image or bump map before importing in Unity, as I believe Unity does not have the ability of emulating said procedural textures. Also unity has a different set of Materials, try using Bumped Diffuse or Bump Specular under the shader type with the textures that you baked. Baking options in blender are under the Render tab, at the very bottom.

Here's a small tutorial about this, though it uses 2.49

Blender Cookie Unity Export

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 Arctic_Evolution · Feb 15, 2018 at 05:48 PM

For me I have to manually bring in the texture. But it automatically has the UV material mapped. I have to link the texture to the material, and then it renders.

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 SlobbishBurrito · Feb 22, 2018 at 12:36 AM

How do you export the material that was used in blender?

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

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Blender FBX import model with animation issues 0 Answers

Car rig in blender and importing to Unity 0 Answers

Blender Mesh rotation 3 Answers

Large terrain imported from Blender 0 Answers

How do I parent models in Unity? 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