FBX import export - overscales camera focus distance by 1000 times #105088
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#105088
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Blender 4.0.2
Way to reproduce it:
In default blender scene leave only camera and set it's focus distance to 15m or download attached file - camera_export.blend
Export it with default settings with Blender FBX or use camera_blender_original.fbx
Import it to Houdini or Maya (in my case it's Houdini)
Focus distance end up being 1 500 000 units (translation is 0,0,1798.66, which is similar to what it was in Blender).
Houdini:
Maya:
@Mysteryem @mont29
FBX import export - overscales camera focus distance by 100to FBX import export - overscales camera focus distance by 1000 timesThe deprecated
SetSpecificDistance()
andGetSpecificDistance()
in the FBX 2010 SDK (FBX 6.1) documentation said the values to get and set would be in millimetres, as per the discussion in https://developer.blender.org/D6666, but I suspect that only applied to those deprecated functions and notFocusDistance.Get()
andFocusDistance.Set()
which seem to have been the replacement for the deprecated functions.The deprecated millimetre functions don't exist in the FBX 2011 SDK (FBX 7.1) and newer documentation.
Does it mean that it's safe to remove millimeter conversion now?
I think the millimetre conversion was probably always wrong.
I would guess that some time in the past (pre FBX 6.1), getting or setting FocusDistance with the FBX SDK was only done with
SetSpecificDistance()
andGetSpecificDistance()
which use/return millimetres, and that, at some point, the FBX SDK added theFocusDistance
property (presumably in metres), which can be accessed directly, and kept the old functions around for a while for compatibility.