{"action":"created","issue":{"url":"https://api.github.com/repos/assimp/assimp/issues/775","labels_url":"https://api.github.com/repos/assimp/assimp/issues/775/labels{/name}","comments_url":"https://api.github.com/repos/assimp/assimp/issues/775/comments","events_url":"https://api.github.com/repos/assimp/assimp/issues/775/events","html_url":"https://github.com/assimp/assimp/issues/775","id":129791271,"number":775,"title":"FBX importer doesn't use meters as unit basis","user":{"login":"Noxalus","id":1321964,"avatar_url":"https://avatars.githubusercontent.com/u/1321964?v=3","gravatar_id":"","url":"https://api.github.com/users/Noxalus","html_url":"https://github.com/Noxalus","followers_url":"https://api.github.com/users/Noxalus/followers","following_url":"https://api.github.com/users/Noxalus/following{/other_user}","gists_url":"https://api.github.com/users/Noxalus/gists{/gist_id}","starred_url":"https://api.github.com/users/Noxalus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Noxalus/subscriptions","organizations_url":"https://api.github.com/users/Noxalus/orgs","repos_url":"https://api.github.com/users/Noxalus/repos","events_url":"https://api.github.com/users/Noxalus/events{/privacy}","received_events_url":"https://api.github.com/users/Noxalus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-29T15:07:04Z","updated_at":"2016-01-29T15:33:53Z","closed_at":null,"body":"Hello everyone :)\r\n\r\nI've done many tests with FBX importer using multiple files physically scaled, with different units, and I figured out that the FBX importer use centimeters as base unit, not meters.\r\n\r\nIf you create a cube of 1m3, export it as FBX and load it with ASSIMP FBX importer, it will have a size of 100 meters.\r\n\r\nI've done my test using 3DS Max and Blender, the problem is always the same. Exporting the same files as Collada (DAE), there is no unit issue (still using ASSIMP to load the file).\r\n\r\nIs there any reason for that ?\r\n\r\nScaling the root transform according to the data parsed and stored in **UnitScaleFactor** property, I finally get the behaviour that I expected:\r\n\r\n```cpp\r\n// [FBXImporter.cpp => InternReadFile function]\r\n\r\n// FBX base unit is in centimeters, we need to convert it into meters\r\nauto globalSettings = doc.GlobalSettings();\r\nauto unitScaleFactor = globalSettings.UnitScaleFactor();\r\n\r\nauto unitSize = unitScaleFactor / 100.f;\r\n\r\npScene->mRootNode->mTransformation *= aiMatrix4x4(unitSize, 0, 0, 0,\r\n    0, unitSize, 0, 0,\r\n    0, 0, unitSize, 0,\r\n    0, 0, 0, 1);\r\n```\r\n\r\nIs there anybody with the same problem?"},"comment":{"url":"https://api.github.com/repos/assimp/assimp/issues/comments/176820323","html_url":"https://github.com/assimp/assimp/issues/775#issuecomment-176820323","issue_url":"https://api.github.com/repos/assimp/assimp/issues/775","id":176820323,"user":{"login":"sagaceilo","id":3769200,"avatar_url":"https://avatars.githubusercontent.com/u/3769200?v=3","gravatar_id":"","url":"https://api.github.com/users/sagaceilo","html_url":"https://github.com/sagaceilo","followers_url":"https://api.github.com/users/sagaceilo/followers","following_url":"https://api.github.com/users/sagaceilo/following{/other_user}","gists_url":"https://api.github.com/users/sagaceilo/gists{/gist_id}","starred_url":"https://api.github.com/users/sagaceilo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sagaceilo/subscriptions","organizations_url":"https://api.github.com/users/sagaceilo/orgs","repos_url":"https://api.github.com/users/sagaceilo/repos","events_url":"https://api.github.com/users/sagaceilo/events{/privacy}","received_events_url":"https://api.github.com/users/sagaceilo/received_events","type":"User","site_admin":false},"created_at":"2016-01-29T15:33:53Z","updated_at":"2016-01-29T15:33:53Z","body":"Yes, same here. Resolved it on the assets side, so articts just need to remember to export using proper scaling. I cound't find any in-file info about used size metrics so I could scale model from cm to meters. Root matrix of scene also doesn't contain any usefull info neither the properties build in the file (nodes properties).\r\nFunny fact, that when static meshes are kinda ok (exported in proper scale by artist), animated ones aren't :D"}}