Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 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
1
Question by LadyFaggot · Sep 05, 2021 at 03:34 PM · animationfbxmayaexport problemflipped normals

Animated FBX from Maya to Unity – flipped normals and more

HI!

I have a problem with exporting an animated character from Maya to Unity. Character consists of few separate objects, all parented to the body.

Please help, I have to fix this problem as soon as possible. I'm using Maya 2017 and Unity 2019.4.18f1.


  • First of all – in Unity some elements look strange - everything looks great in Maya, but in Unity it looks like it's a problem with flipped normals. It would make sense, because I used mirror modifiers with these objects (mesh was created in Blender). Turning backface-culling on doesn't change anything, deleting the Non-Deformer History does not help. I am unable to solve this problem.

  • Secondly - I have to modify animated mesh – it has to have more polygons but I would still like to have a hard edge effect. Later, I would like to add more body elements.

I thought about using smooth in Maya, but the exported model in Unity is not smoothed at all (or only body is smoothed). I tried checking/unchecking Smoothing groups and Smooth Mesh option on FBX export in Maya, but it does not change anything.


I'm so desperate that I wanted to add a subdivision modifier in Blender and then try to attach this new mesh to Maya animation, but I can't even try because Maya imports everything except the character's head and jaws. Even when I import only the head, nothing new appears on stage and in Outliner.

It happens only in a Document with animation. Exported mesh from Blender imports perfectly into a new Maya Document.

I am resigned and devastated, I have no ideas anymore but I need to get it done as soon as possible. I beg for some help and possible suggestions.

monster.fbx + maya2017exp.log

monster-fbx-2021-09-04-1826.zip (322.7 kB)
Comment
Add comment · Show 6
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 andrew-lukasik · Sep 04, 2021 at 12:02 PM 0
Share

It would help a lot if you could post a small asset that reproduces your issue clearly. Something like a small portion of your mesh exported as FBX + it's .meta file (for import config) + normal map (watermarked if needed) would be great

avatar image LadyFaggot andrew-lukasik · Sep 04, 2021 at 06:28 PM 0
Share

Thank you soo much for your time! I'm sending FBX file + export log.

I'm new to the forums and I'm surprised I cannot attach fbx file here! Here is a download link: https://we.tl/t-o1jYg4qBPd

avatar image MGUELfig189 · Sep 04, 2021 at 06:33 PM 0
Share

If the model is made in Blender and then imported to Maya in Blender, press w key and use normal flip or with ctrl + n, first enter edit mode (TAB key)

avatar image LadyFaggot MGUELfig189 · Sep 04, 2021 at 07:58 PM 0
Share

Thank you for your time! The problem is that mesh exported from Blender does not have such weird look in Unity. It seems like there's something wrong going on in between Blender and Unity, indicating there is some problem with Maya export.

avatar image andrew-lukasik · Sep 04, 2021 at 10:05 PM 0
Share

Assu$$anonymous$$g this Fbx represents what you see in unity:

I see hard-shading enabled and if this is not intentional it will make normal map (very) mismatched with it's geometry resulting it a messed-up lighting.

Sidenote: a single animated mesh (or as few as possible) is usually preferred for performance reasons.

link text

Shading results in unity:

link text

avatar image LadyFaggot andrew-lukasik · Sep 05, 2021 at 02:07 PM 0
Share

@andrew-lukasik

Sadly, in Blender my animated mesh looks like just a bunch of chaotically stretched polygons and this is what it looks like in Unity:alt text

This is how my model should be (download mesh without animation): https://we.tl/t-7DWqpLS6LU alt text

Sorry if I was writing in chaotic manner but the thing is: my worst problem are these flipped normals. Second problem is I cannot thicken the model mesh (smoothing was just an unsuccessful trial) but I need the edges to be sharp, not smooth.

I apologize for being unclear and I am more than grateful for taking the time to address my problem!

clipboard02.jpg (18.9 kB)
clipboard01.jpg (18.4 kB)

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by andrew-lukasik · Sep 05, 2021 at 03:28 PM

I have good/bad new :) It's not normal maps. It's UV layout that is at fault here.

I'm no artist, but I can tell this is not how good UVs look like:

link text link text


When you apply a checker texture on any correctly uv-mapped mesh it should look like this box, meaning:

  • (more or less) uniform pixel distribution

  • no rectangles (stripes especially!), squares only

(Rectangles are pixels being stretched along one axis which will look bad)

  • diamond-like shapes are unavoidable (for organic meshes), because of rotations

What happens in your case is that you mapped something like 8 pixels to represent 40% of the surface :T not ideal

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 andrew-lukasik · Sep 05, 2021 at 03:59 PM 0
Share

If you use windows 10 then there is a this 3D Viewer app (often pre-installed I believe). It is one of the faster ways to check your FBX meshes. Just switch to Stats & Shading tab and click UV Set 0.

Also useful, this Material IDs shows you the number of materials (draw calls) model uses. Long story short: 1 is most desirable, everything other than that will be frowned upon by tech artists and programmers, in direct proportion to the number itself.

link text As you can see Its hard to find a spot on the mesh that is uv-mapped correctly. Strange flickering, stripes and rectangles are all over the place.

Black faces means geometry normals are inverted there. Flip them on those parts because it breaks lighting there and normal maps with it as well.

Powodzenia

avatar image LadyFaggot andrew-lukasik · Sep 07, 2021 at 10:39 PM 0
Share

Thank you so much for all this information! Very helpful, I didn't know there is 3D Viewer app in Win10. Dzięki :)

However, I think my problem was not only with the UVs. I guess something went wrong while exporting from Blender to Maya. Don't know what exactly but I was able to solve it by selecting all problematic polygons in Maya and clicking Set to Face, then Conform (in Mesh Display menu). Then I clicked Cache> Alembic> Export All to Alembic. Next I opened new scene in Maya and imported this newly created .abc file. I exported to Unity and everything is looking good from now on.

I am sooo thankful for any help and I hope my case can help somebody else with similar problem!

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

308 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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

Maya: "Unable to bind post for" error 0 Answers

Export Maya Animations to Unity But It Shows Nothing 0 Answers

A Prefab with animation.Play doesnt work 0 Answers

Create animated scene in Maya and play it out in Unity. 1 Answer

Getting Animation @ system to work 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