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 Dunkhan · Jan 11, 2011 at 02:07 PM · meshtextimportruntime

Help with runitme objects and plaintext mesh files

HI everyone. I am trying to build a project that allows the user to build their own 3d models and textures to add to the game. I have got a basic skeleton script for this but I am having trouble deciding on a suitable format for the meshes. The wavefront .obj format seems to have what I want ie. plaintext 3d object format but there are further issues. I am currently using maya and when I export a shape using .obj in maya I get two files: a .obj file that simply has the name of the other file in it and nothing else, and an mtl file that always reads

newmtl initialShadingGroup
illum
Kd 0.50 0.50 0.50
Ka 0.00 0.00 0.00
Tf 1.00 1.00 1.00
Ni 1.00

no matter what shape I export. Maya also fails to reimport these files but I gather from other sources that maya just doesn't import most file types.

My questions are as follows: Is wavefront obj the best file format for my purposes? Is there a way to get maya to export these properly or should I use a different modelling program.

This question was also posted in the unity forum http://forum.unity3d.com/threads/73546-help-with-runtime-objects-and-.obj-files

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
1
Best Answer

Answer by Dunkhan · Jan 11, 2011 at 03:16 PM

Thanks to the nice chaps at #bay12games irc channel, I have solved my problem, and am now posting this in case others have similar questions. It turns out that .obj is the right file format for my purposes, although apparently a text version of .fbx also exists. The reason maya wasn't exporting it correctly was that maya was creating nurbs curves by default and .obj doesn't support nurbs. Converting nurbs to polygons enabled me to export the file as desired.

Comment
Add comment · Show 3 · 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 Damyan · Jan 11, 2011 at 04:40 PM 0
Share

could you click on the 'tick' to indicate that this question has been answered please?

avatar image Paulius-Liekis · Jan 11, 2011 at 06:24 PM 0
Share

IIRC, you can't do that unless you have more than 10 points.

avatar image Dunkhan · Apr 11, 2012 at 06:26 AM 0
Share

Just as a side note, I ended up using .x files ins$$anonymous$$d, .x is a way easier format to parse than .obj

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

Runtime import of Collada files 3 Answers

Importing models from streamingassets 0 Answers

Does Unity give access to their function that creates MeshParts (splits meshes that are >65k verts on import)? 1 Answer

Run Time Plastic Shrink/Wrap , Mesh Manipulation 0 Answers

Object Colliders 2 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