Hydra: Unify image writing code between USD and Hydra #115397

Open
Bogdan Nagirniak wants to merge 9 commits from BogdanNagirniak/blender:hydra-image-export into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Contributor

Purpose

USD and Hydra image export code should be unified, this is tasks lists in #110765.

Technical steps

  1. Moved texture export related code from usd/usd_writer_material.cc to new file usd/usd_writer_image.cc\.h as more related. Removed hydra/image.cc\.h.
  2. Adjusted BlenderSceneDelegate and related classes to use new functionality from usd_writer_image.cc.
  3. Adjusted texture shaders to use functionality from usd_writer_image.cc.
  4. Cleanup: removed outdated code from render/hydra/python.cc.
### Purpose USD and Hydra image export code should be unified, this is tasks lists in #110765. ### Technical steps 1. Moved texture export related code from `usd/usd_writer_material.cc` to new file `usd/usd_writer_image.cc\.h` as more related. Removed `hydra/image.cc\.h`. 2. Adjusted `BlenderSceneDelegate` and related classes to use new functionality from `usd_writer_image.cc`. 3. Adjusted texture shaders to use functionality from `usd_writer_image.cc`. 4. Cleanup: removed outdated code from `render/hydra/python.cc`.
Bogdan Nagirniak added 7 commits 2023-11-25 10:54:14 +01:00
Bogdan Nagirniak requested review from Brecht Van Lommel 2023-11-25 10:56:39 +01:00
Bogdan Nagirniak requested review from Brian Savery (AMD) 2023-11-25 10:56:40 +01:00
Bogdan Nagirniak requested review from Michael Kowalski 2023-11-25 10:56:40 +01:00
Bogdan Nagirniak requested review from Georgiy Markelov 2023-11-25 10:56:40 +01:00
Bogdan Nagirniak requested review from Vasyl Pidhirskyi 2023-11-25 10:56:40 +01:00
Vasyl Pidhirskyi approved these changes 2023-11-27 14:47:18 +01:00
Vasyl Pidhirskyi left a comment
Member

Works well.

Works well.

I will get to this review this week. My apologies for the delay.

I will get to this review this week. My apologies for the delay.
Michael Kowalski approved these changes 2023-12-09 02:50:22 +01:00
Michael Kowalski left a comment
Member

The changes related to usd_writer_material.cc look good to me, so I will approve this. However, I am not the right person to review the hydra related changes in depth, so I leave that to the other reviewers. Thank you.

The changes related to usd_writer_material.cc look good to me, so I will approve this. However, I am not the right person to review the hydra related changes in depth, so I leave that to the other reviewers. Thank you.
Bogdan Nagirniak added 2 commits 2023-12-09 14:25:09 +01:00
Brian Savery (AMD) approved these changes 2023-12-11 19:37:30 +01:00
This pull request has changes conflicting with the target branch.
  • source/blender/io/usd/CMakeLists.txt
  • source/blender/io/usd/hydra/hydra_scene_delegate.cc
  • source/blender/io/usd/hydra/hydra_scene_delegate.h
  • source/blender/io/usd/hydra/image.cc
  • source/blender/io/usd/hydra/material.cc
  • source/blender/io/usd/hydra/world.cc
  • source/blender/io/usd/intern/usd_writer_material.cc
  • source/blender/render/hydra/python.cc

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u hydra-image-export:BogdanNagirniak-hydra-image-export
git checkout BogdanNagirniak-hydra-image-export
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
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
EEVEE & Viewport
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
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
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
EEVEE & Viewport
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
Platform
FreeBSD
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
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#115397
No description provided.