• 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 Piesk · Oct 30, 2013 at 01:22 PM · importing problems

importing from blender, axis' wrong

I am attempting to import a custom plane from blender (as i need more verts than unity's plane), however the axis are all scewed. My code takes the plane and resizes it to fit the level, the blender model thinks that Z is Y and so doesn't resize in the z direction at all. I can do a quick fix by telling it to set the localscale.Y to the zscale calculated.. but this seems wrong and dirty, i'd rather it actually knew which axis is which.

Yes i have trawled the internet for an age trying to find a fix to this and through the many similar posts not one answer actually works.

From all appearances fiddling with which axis is up and which is forward doesn't change the axis at all, it just rotates it, I need the Y and Z axis to swap so the code recognizes dimentions properly.

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

Answer by robertbu · Oct 30, 2013 at 02:12 PM

First, take a look at the CreatePlane editor script from the Wiki. It will allow you create a plane horizontally or vertically with a specified resolution and size.

Alternately, you can use the editor script found in the following post to rotate your mesh.

http://answers.unity3d.com/questions/561786/how-to-export-obj-from-editor-with-rescaled-mesh.html

To use:

  • Save it in the Assets/Editor folder. The file must be named 'RotateMesh'.

  • Orient and scale your object like you want it to be when the rotation is (0,0,0), and the scale is (1,1,1)

  • Select your object in the hierarchy and then select 'RotateMesh' from the Windows menu

This script creates a cloned copy with the mesh rotated.

I don't use Blender, so I cannot give you specifics, but there are numerous posts (with answers) on how to get the rotation right when importing Blender objects.

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 Piesk · Oct 30, 2013 at 03:29 PM 0
Share

thanks robert, i know there are numerous posts with answers, but not one of them works. I may well try your other suggestions. I actually just posted on a question you answered for some one before to do with vertex colouring...the answer you posted on there didn't have an effect for me, is it ok if i post a question about it?

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

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

importing game object problems 2 Answers

Animations Import Settings Problem: Start and End Time 0 Answers

Unity Linux Editor crashes "error opening file" after calculating hashes, deleting meta files fixed it 1 Answer

Where do I find an interrupted import to delete it? 1 Answer

Sprites do not refresh/reimport with ScriptedImporter using the SpriteEditor 0 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