Hydra render engine #104712

Closed
Bogdan Nagirniak wants to merge 142 commits from BogdanNagirniak/blender:hydra-render into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
2 changed files with 6 additions and 2 deletions
Showing only changes of commit 50cbb727de - Show all commits

View File

@ -35,7 +35,11 @@ void PreviewEngine::render(BL::Depsgraph &b_depsgraph)
renderTaskDelegate->SetCameraAndViewport(freeCameraDelegate->GetCameraId(), GfVec4d(0, 0, buffer_res[0], buffer_res[1]));
renderTaskDelegate->SetRendererAov(HdAovTokens->color);
HdTaskSharedPtrVector tasks = renderTaskDelegate->GetTasks();
HdTaskSharedPtrVector tasks;
if (simpleLightTaskDelegate) {
tasks.push_back(simpleLightTaskDelegate->GetTask());
}
tasks.push_back(renderTaskDelegate->GetTask());
vector<float> pixels = vector<float>(buffer_res[0] * buffer_res[1] * 4); // 4 - number of channels

View File

@ -14,10 +14,10 @@ namespace blender::render::hydra {
BlenderSceneDelegate::BlenderSceneDelegate(HdRenderIndex* parentIndex, SdfPath const& delegateID, BlenderSceneDelegate::EngineType engine_type)
: HdSceneDelegate(parentIndex, delegateID)
, engine_type(engine_type)
, depsgraph(nullptr)
, context(nullptr)
, view3d(nullptr)
, engine_type(engine_type)
{
}