In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article is to share with you about what Scale is when importing fbx into unity3d. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Click GameObject menu-> 3D Object- > Cube in Unity to create a unit cube of 1x1x1. Set the position of the cube to (0.5, 0.5, 0.5) and you can see that the cube fits right into a grid in the scene editing window.
Click Create menu-> Polygon Primitives-> Cube in Maya, and also create a unit cube for 1x1x1.
Select the cube in Maya and click File-> Export Selection to export the cube to fbx. In the export dialog box, you can see that the value of File Type Specific Options-> Advanced Options-> Units-> File units converted to: is Centimeters. Indicates that the default length unit in Maya is centimeters.
After exporting fbx to the Unity project with the default export option, select the exported fbx file in the Unity editor to see that its Import Settings-> Model-> Meshes-> File Scale value is 0.01 in Inspector.
Drag the cube fbx (hereinafter referred to as Maya cube) imported from Maya into the Unity project into the scene, and you can see that the Maya cube is only slightly larger than the unit cube created directly in Unity (hereinafter referred to as Unity cube).
Is the cube imported by Maya. The huge white cube behind is a unit cube created directly in Unity.
Set the Scale of the Maya cube Transform to (100,100,100), and it becomes as big as the Unity cube. This is because the side length of the original size of the Maya cube is 1 centimeter, while the unit of length in Unity is meters, and the side length of the unit cube is 1 meter.
You can also achieve the same effect by setting the Import Settings-> Model-> Meshes-> Scale Factor of the Maya cube fbx to 100 and keeping the transform at (1,1,1). This is equivalent to a 100x magnification of the side length of the Maya cube at the file level.
Or leave Transform at (1, 1, 1) and Scale Factor at 1 in Import Settings, but uncheck Use File Scale. This is equivalent to the Unity cube.
We can also try to change the File units converted to: in the export settings to Meters when Maya exports. This means that the 1x1x1 in Maya is also 1 cubic meter. After importing Unity, the Scale Factor and File Scale of fbx are both 1. The difference is that when you drag the Maya cube into the Unity editor, the Scale of its Transform is set to (0.01,0.01,0.01) by default. This means that the default visual effect when dragged into the scene is always 1 cubic centimeter. It's just that when you set Transform to (1, 1, 1), it becomes 1 cubic meter.
Thank you for reading! This is the end of this article on "what is Scale when importing fbx into unity3d?". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it out for more people to see!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 231
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.