BLEN-343: Create PreviewEngine #8

Merged
Bogdan Nagirniak merged 5 commits from BLEN-343 into hydra-render 2023-03-03 14:55:28 +01:00
Collaborator

Added preview engine.

changed pxr::HdSceneDelegate to BlenderSceneDelegate
added enum Engine::EngineType
added Engine::EngineType to BlenderSceneDelegate

Use with https://github.com/bnagirniak/RPRHydraRenderBlenderAddon/pull/8

Added preview engine. changed `pxr::HdSceneDelegate` to `BlenderSceneDelegate` added `enum Engine::EngineType` added `Engine::EngineType` to `BlenderSceneDelegate` Use with https://github.com/bnagirniak/RPRHydraRenderBlenderAddon/pull/8
Georgiy Markelov added 2 commits 2023-03-02 13:15:00 +01:00
Bogdan Nagirniak requested changes 2023-03-02 15:04:10 +01:00
@ -47,3 +47,3 @@
_hydra.engine_sync(self.engine_ptr, depsgraph.as_pointer(), bpy.context.as_pointer(), delegate_settings)
_hydra.engine_render(self.engine_ptr, depsgraph.as_pointer())
_hydra.engine_render(self.engine_ptr, depsgraph.as_pointer(), engine_type)

revert this

revert this
@ -0,0 +7,4 @@
namespace blender::render::hydra {
class PreviewEngine : public Engine {

Maybe inherit from FinalEngine?

Maybe inherit from FinalEngine?
DagerD marked this conversation as resolved
Georgiy Markelov added 1 commit 2023-03-02 15:46:59 +01:00
Georgiy Markelov added 1 commit 2023-03-02 16:49:51 +01:00
added enum Engine::EngineType
added Engine::EngineType to BlenderSceneDelegate
Bogdan Nagirniak requested changes 2023-03-03 09:39:04 +01:00
@ -24,2 +24,4 @@
class Engine {
public:
enum class EngineType {

move to BlenderSceneDelegate class

move to BlenderSceneDelegate class
DagerD marked this conversation as resolved
@ -0,0 +29,4 @@
void PreviewEngine::render(BL::Depsgraph &b_depsgraph)
{
if (!is_synced) {

check if (!sceneDelegate) instead is_synced

check `if (!sceneDelegate)` instead is_synced
DagerD marked this conversation as resolved
Georgiy Markelov added 1 commit 2023-03-03 10:48:00 +01:00
Bogdan Nagirniak approved these changes 2023-03-03 14:54:38 +01:00
Bogdan Nagirniak merged commit 722b766d20 into hydra-render 2023-03-03 14:55:28 +01:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
2 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#8
No description provided.