Improve USD camera import/export and round-tripping #112905
No reviewers
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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#112905
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "dkvnyc/blender:feature/CameraUSDRoundtripFixes"
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?
Improve USD camera import/export and round-tripping
Bugfix for camera USD import
shiftx
/shifty
valuesclip_start
to match Blender's property range (defined inrna_camera.cc
)Bugfix for camera USD export
Auto
sensor-fit with height > width (usessensor_x
instead ofsensor_y
)Challenges/Limitations
shiftx
andshifty
store these as a fraction of the sensor size.sensor_x
orsensor_y
, depending on Sensor Fit) and only one global aspect ratio for all cameras (defined usingRenderData
'sxsch*xasp
,ysch*yasp
)Auto
, Blender always usessensor_x
as the sensor size, regardless of whethersensor_y > sensor_x
or not. So importing a camera from USD is best done with the Sensor Fit explicitly set toHorizontal
orVertical
- this makes sure the respectivesensor_x
orsensor_y
value is used, and makes the shift values more predictable whenRenderData
's aspect ratio does not exactly match the camera sensor's.Testing
Shift X
to0.1
,Shift Y
to0.2
,Clip Start
to0
(this will change to0.000001 m
due torna_camera
'sRNA_def_property_range
).Cameras.usda
Cameras.usda
into BlenderVertical
and the original camera's isAuto
- however the visual result should be identical).Cameras.usda
withusdview
(command line tool from theOpenUSD
repo).Camera>Camera Guides>Camera Frame
, and set the camera withCamera>Select Camera>Camera
, compare with Blender's camera frame.This is great, we could consider this as a bugfix for 4.0 since it's really quite far off now.
The "WIP" prefix usually means the pull request is not ready for review yet. Are you planning further changes?
WIP: Improve USD camera import/export and round-trippingto Improve USD camera import/export and round-trippingSorry, no I am not planning any further changes. I removed the WIP tag.
Improve USD camera import/export and round-trippingto Improve USD camera import/export and round-tripping@blender-bot build
Works well in my tests, thanks!