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 cesarm · Apr 03, 2014 at 12:11 AM · importblenderblender-exporting.obj

Can't assign texture to .obj imported from Blender

I'm working on a mac with blender 2.69 and exporting .obj to create mesh assets for my game.

Everything is working fine except for when i try to assign a material to the object.

I select the object on the hierarchy then change it's material from the Mesh renderer component. The mesh changes material but it doesn't display the texture of that material. Only the shader color.

I tested with several textures, default grass texture from unity and some of my own. I also used other file format: .fbx.

Everything works fine when i use cubes or spheres created directly in Unity.

My colleagues are working with 3ds max and no error occurs with the .obj and .fbx they export.

Am I doing something wrong or is this a blender related problem? How can i solve this?

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 getyour411 · Apr 03, 2014 at 12:11 AM 0
Share

Did you assign your UV map to the $$anonymous$$aterial? Do you have a UV map?

avatar image cesarm · Apr 03, 2014 at 12:34 AM 0
Share

I just export a plain(no material, no textures) cube from blender to unity and when i assign a material to it on Unity it doesn't show the texture but only the plain image color of said image texture.

Example: I assign a default grass texture from Unity to an object imported from blender. Only green shows up.

I assign a grass texture to a cube made in unity. Everything works fine.

I will still give it a try though.

avatar image getyour411 · Apr 03, 2014 at 12:56 AM 0
Share

I confirmed the same w/ obj/fbx basic cube no material/texture/etc from Blender to Unity...but if all you want is a cube why go through this? And if your $$anonymous$$esh will be more complicated then you'll have a UV map.

avatar image cesarm · Apr 03, 2014 at 12:56 AM 0
Share

It worked! Thank you.

Still, it seems a little bit messy for more complex objects… I will have to unwrap complex objects just to be able to add simple textures?

Any advice on a less time consu$$anonymous$$g solution?

1 Reply

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

Answer by getyour411 · Apr 03, 2014 at 01:01 AM

I'm still learning the basics myself but I think that's pretty much the way it works, otherwise the 2D Texture has no way to know to align to the 3D coordinates. There are some spiffy ways of doing things via code but that's out of my league.

I'll put this as an Answer.

Comment
Add comment · Show 2 · 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 cesarm · Apr 03, 2014 at 01:13 AM 0
Share

Fair enough. I accept this answer.

Thank you for your trouble.

P.S: i just worked with cubes to pave the way for more complex meshes. Starting simple and building on top of it.

avatar image getyour411 · Apr 03, 2014 at 01:24 AM 0
Share

Yeah I've spent the last hour fiddling around with this and can't make the imported Cube show a texture either so I don't know how Unity default cube is doing it unless it has some some magic behind the scenes stuff.

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

21 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

Related Questions

Blender Rigify humanoid animation importing into Unity with SIDEWAYS feet 0 Answers

Importing "advanced" materials from Blender into Unity? 2 Answers

Unity breaks animation from Blender 1 Answer

Prefab Color Question 1 Answer

Is it possible to export from a blender to a format that Unity uses in a MeshFilter? 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