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 /
This post has been wikified, any user with enough reputation can edit it.
avatar image
0
Question by Pauls · Feb 13, 2013 at 06:36 PM · texturematerialimportblenderfbx

texture not applied, despite many attempts

Hi,

how could i apply a texture on a mesh imported in .fbx from Blender?

I have tried many ways :

  • Set the texture in Blender, being in "Object Mode", with the "Texture" option ON, and export in .fbx

  • in Unity, add the texture in the "Textures" folder, add a mesh renderer to the imported mesh, drag and drop the texture on the mesh

  • export the .fbx with the same name as the .blend file, in the same folder where the texture is

  • in Unity, add the texture dynamically, with this code :

    var myTexture : Texture;

    function Start () { renderer.material.SetTexture("_MainTex", myTexture); }

and drag and drop the texture in the variable myTexture

  • restart Unity and see if anything works better... still not

Would you have any idea about this?

Thanks a lot

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

2 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by phfatmonkey · Feb 13, 2013 at 07:07 PM

You need to apply the texture to a material, then apply the material to your mesh. I export FBX from 3DS Max and it will sometimes bring a material in, but there's no textures applied to the material. I haven't found a way to wholly import a material created in my 3D package into Unity.

To create a material, right-click on your project pane where you want to save your material, and select Create > Material.

Comment
Add comment · Show 5 · 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 Pauls · Feb 13, 2013 at 07:38 PM 0
Share

@Ryan Thanks Ryan, so i have a new material in the "$$anonymous$$aterials" folder, and a texture in the "Textures" folder. I drag and drop the texture to the square in the material area. Then i drag and drop the material to my mesh in Hierarchy.... and nothing is happening...

avatar image phfatmonkey · Feb 13, 2013 at 07:48 PM 0
Share

Strange....

Does the material component show up in the Inspector of your object?

This might seem like a dumb question but, are you looking at a Textured View of your scene?

avatar image Pauls · Feb 13, 2013 at 08:47 PM 0
Share

Yes, i can see the small image of the texture when i click on the character, and the material has the good preview. The scene has other textured objects, and the Textured View is indeed selected. I switched off and on my computer, but still the same...

avatar image phfatmonkey · Feb 13, 2013 at 08:51 PM 0
Share

The only thing I can think of is your model doesn't have UV coordinates mapped in Blender. Here's a forum link that might help:

http://answers.unity3d.com/questions/124817/why-is-my-imported-fbx-file-not-showing-textures.html

avatar image Pauls · Feb 13, 2013 at 09:44 PM 0
Share

I don't know why, but now it works.... no idea why, thanks to you guys anyway for your help!

avatar image
0

Answer by Pauls · Feb 13, 2013 at 09:39 PM

I don't know why, but now it works.... no idea why, thanks to you guys anyway for your help!

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

10 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

Related Questions

Material not shown on imported FBX sphere 0 Answers

How to fix imported materials 1 Answer

Importing Blender FBX into Unity (pictures) 1 Answer

Apply materials to imported meshes 0 Answers

Blender 2.78 Unity 5.5 the correct way to retain material/textures on import? 7 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