[nodes] rewrite RenderAnimatedCamera #2030
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
The goal of this PR is to rewrite the RenderAnimatedCamera node and the Blender-Python script it runs behind the scenes to make it work properly and support wireframe rendering.
This node now takes as input:
cameras
: SfMData in JSON format containing the views, poses and intrinsics of the scene to rendermodel
: scene model, can be either a mesh in OBJ format or a point cloud in Alembic formatpointCloudParams
: rendering parameters if the input is a point cloudmeshParams
: rendering parameters if the input is a mesh, the most important one being theshading
method (wireframe or line art)undistortedImages
: undistorted images to use as background of the rendered views for reference.The output of this node is one frame per view corresponding to the input geometry rendered in Blender using the input camera parameters.
This output can be directly visualized in Meshroom's 2D viewer by double-clicking the node.
Also the node has been renamed
ScenePreview
for clarity and now belongs to theUtils
category.Notes
Since the
cameras
input must be in JSON format, users may need to use aConvertSfMFormat
node