Add possibility to render USD file for testing purposes #49

Merged
Bogdan Nagirniak merged 4 commits from BLEN-428 into hydra-render 2023-06-02 13:07:31 +02:00

Purpose

For testing purposes it'll be useful to have possibility to render USD stage.

Technical steps

  • Added usd_delegate_ (class UsdImagingDelegate) and sync_usd() to class Engine
  • Added engine_sync_usd_func() in python.cc

Notes

Can be tested with Storm delegate BogdanNagirniak/blender-addons#14

### Purpose For testing purposes it'll be useful to have possibility to render USD stage. ### Technical steps - Added `usd_delegate_ (class UsdImagingDelegate)` and `sync_usd()` to `class Engine` - Added `engine_sync_usd_func()` in `python.cc` ### Notes Can be tested with Storm delegate https://projects.blender.org/BogdanNagirniak/blender-addons/pulls/14
Bogdan Nagirniak self-assigned this 2023-05-31 18:46:11 +02:00
Brian Savery (AMD) was assigned by Bogdan Nagirniak 2023-05-31 18:46:11 +02:00
Georgiy Markelov was assigned by Bogdan Nagirniak 2023-05-31 18:46:11 +02:00
Matt McLin was assigned by Bogdan Nagirniak 2023-05-31 18:46:11 +02:00
Vasyl Pidhirskyi was assigned by Bogdan Nagirniak 2023-05-31 18:46:11 +02:00
Bogdan Nagirniak added 2 commits 2023-05-31 18:46:31 +02:00
Bogdan Nagirniak requested review from Brian Savery (AMD) 2023-05-31 18:46:39 +02:00
Bogdan Nagirniak requested review from Georgiy Markelov 2023-05-31 18:46:39 +02:00
Bogdan Nagirniak requested review from Vasyl Pidhirskyi 2023-05-31 18:46:40 +02:00
Collaborator

The point was to use the blender USD export and render that file (exported to memory) This does that

The point was to use the blender USD export and render that file (exported to memory) This does that
Author
Owner

The point was to use the blender USD export and render that file (exported to memory) This does that

Here in C++ part I only extended _bpy_hydra python API to have possibility to send USD stage to render. Export scene to USD or use USD file can be done on addon python part.

> The point was to use the blender USD export and render that file (exported to memory) This does that Here in C++ part I only extended `_bpy_hydra` python API to have possibility to send USD stage to render. Export scene to USD or use USD file can be done on addon python part.
Georgiy Markelov requested changes 2023-06-01 20:09:13 +02:00
Georgiy Markelov left a comment
Collaborator

There are objects from blender scene (not from usd file).
Render is not updated on UI update (change file, checkbox).
Viewport render crashes with hdrpr.

There are objects from blender scene (not from usd file). Render is not updated on UI update (change file, checkbox). Viewport render crashes with hdrpr.
Author
Owner

There are objects from blender scene (not from usd file).

Yes, I decided not to complicate task, because this is for testing and development purposes. So, USD is added to current blender scene.

Render is not updated on UI update (change file, checkbox).
Viewport render crashes with hdrpr.

This is fixed on addon side 25a463bb74

> There are objects from blender scene (not from usd file). Yes, I decided not to complicate task, because this is for testing and development purposes. So, USD is added to current blender scene. > Render is not updated on UI update (change file, checkbox). > Viewport render crashes with hdrpr. This is fixed on addon side https://projects.blender.org/BogdanNagirniak/blender-addons/commit/25a463bb74fbe02d85ff9ed688d8815ad38280c0
Bogdan Nagirniak added 2 commits 2023-06-02 12:39:36 +02:00
Georgiy Markelov approved these changes 2023-06-02 12:46:42 +02:00
Georgiy Markelov left a comment
Collaborator

Works fine

Works fine
Bogdan Nagirniak merged commit b281552f56 into hydra-render 2023-06-02 13:07:31 +02:00
Bogdan Nagirniak deleted branch BLEN-428 2023-06-02 13:07:31 +02:00
Sign in to join this conversation.
No Label
No Milestone
3 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: BogdanNagirniak/blender#49
No description provided.