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 mjd · Jun 04, 2013 at 03:08 PM · textureassetobjloader

Importing textured OBJ Assets doesn't work.

For some time I'm trying to develop an importer, which can transfer large scenarios from other visualization programs into Unity. These scenarios consists of multiple OBJ-Files with Material (.mtl) and Textures (.jpg, *.png).

Now my problem is, that the internal Unity-Loader is not in a position to load the geometries correctly textured and i dont know why. I copy all Geometry-Files to the Unity-Ressource-Folder and leave the unity-engine to interpret the files. In most cases the objects aren't textured like i would expect it and like other cad tools, which load these files correctly.

Can someone give a hint, where i can find the problem or maybe a solution?

Unfortunately at the moment, I am instructed to use exactly these OBJ files. So changing the file format is currently not an option.

Thank you.

alt text alt text

objunity.jpg (58.3 kB)
objother.jpg (56.5 kB)
Comment
Add comment · Show 1
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 mjd · Jun 04, 2013 at 03:10 PM 0
Share

here a link to the example obj file:

https://www.box.com/s/rm8satljoif0n2eudcbk

1 Reply

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

Answer by Eric5h5 · Jun 04, 2013 at 03:38 PM

The Unity importer is working correctly. The problem is that the .obj file is messed up, since for some reason it has 4 materials specified, and only one of them includes a texture. The .obj file needs to be fixed and output correctly.

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 mjd · Jun 26, 2013 at 02:35 PM 0
Share

The Obj-structure was really broken. In my OBJ files all groups had the same name. Unity uses this as an ID and thats why the sub-geometries were merged. Thus, the texture coordinates and materials are not assignable.

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

15 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

Related Questions

Allow editing of textures once built? 1 Answer

Can you make something using a single texture from Angrybots and sell it on the asset store? 1 Answer

When is a referenced texture actually loaded? 0 Answers

I'm am just wondering if you are able to use textures and other assets you buy in the unity store in other programs? 0 Answers

Importing a 3d model (obj format) and texture from script 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