forked from blender/blender
Implement transparent background for Storm delegate #71
No reviewers
Labels
No Label
No Milestone
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: BogdanNagirniak/blender#71
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "Vasyl-Pidhirskyi/blender_bn:BLEN-463"
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?
Purpose
Implement transparent background for Storm delegate
Technical steps
Utilized scene.render.film_transparent build-in blender property for Storm delegate.
Adjusted clear_color to alpha 0.0 for final render.
Notes for reviewers
Should be reviewed with the pull request BogdanNagirniak/blender-addons#21
@ -39,6 +39,7 @@ class Engine {
void set_render_setting(const std::string &key, const pxr::VtValue &val);
std::string render_delegate_name;
SceneDelegateSettings scene_delegate_settings;
That's not a good idea to change structure of engine just for using skydome task from
light_tasks_delegate_
.@ -110,3 +110,3 @@
light_tasks_delegate_->set_camera_and_viewport(
free_camera_delegate_->GetCameraId(), pxr::GfVec4d(0, 0, resolution_[0], resolution_[1]));
tasks_ = light_tasks_delegate_->get_tasks();
tasks_ = light_tasks_delegate_->get_tasks(scene_delegate_settings);
Find corresponded c++ setting for
scene.render.film_transparent
@ -19,3 +20,3 @@
}
pxr::HdTaskSharedPtrVector LightTasksDelegate::get_tasks()
pxr::HdTaskSharedPtrVector LightTasksDelegate::get_tasks(const SceneDelegateSettings &settings)
simplify by using something like
bool transparent_background
Tested - works good