Blender add-on for editing scenes reconstructed with SuGaR or Gaussian Frosting.
Blender add-on for editing scenes reconstructed with SuGaR or Gaussian Frosting.
Using our methods SuGaR (CVPR 2024) or Gaussian Frosting (ECCV 2024), you can reconstruct editable meshes from RGB images or RGB videos, and render them using realistic Gaussian Splatting rendering.
We now provide a Blender Add-On to edit, sculpt, combine or animate 3D scenes reconstructed with SuGaR of Frosting and render them with Gaussian Splatting without a single line of code.
Installation
Please start by cloning this repo.
Then, install Blender (version 4.0.2 is recommended but not mandatory).
Open Blender, and go to Edit > Preferences > Add-ons > Install, and select the file sugar_addon.py located in this repo.
You have now installed the SuGaR x Frosting addon for Blender!
Usage
Please start by installing either SuGaR or Gaussian Frosting from the respective repositories.
Follow the instructions from the repositories to optimize a SuGaR or Frosting model.
Open a new scene in Blender, and go to the Render tab in the Properties. You should see a panel named Add SuGaR or Frosting mesh. The panel is not necessary at the top of the tab, so you may need to scroll down to find it.
(a) Select a mesh. Enter the path to the final mesh extracted from SuGaR or Frosting in the Path to OBJ file field. You can also click on the folder icon to select the file. The mesh should be located in SuGaR/output/refined_mesh/ or in Frosting/output/refined_frosting_base_mesh/ depending on the model you used.
(b) Select a checkpoint. Similarly, enter the path to the final checkpoint of the optimization in the Path to PT file field. You can also click on the folder icon to select the file. The checkpoint should be located in SuGaR/output/refined/ or in Frosting/output/refined_frosting/ depending on the model you used.
(c) Load the mesh. Finally, click on Add mesh to load the mesh in Blender. Feel free to rotate the mesh and change the shading mode to better visualize the mesh and its colors.
You can segment it into different pieces, sculpt it, rig it, animate it using a parent armature, etc. You can also add other SuGaR or Frosting meshes to the scene, and combine elements from different scenes.
Feel free to set a camera in the scene and prepare an animation: You can animate the camera, the mesh, etc.
Please avoid using Apply Location, Apply Rotation, or Apply Scale on the edited mesh, as I am still not sure how it will affect the correspondence between the mesh and the optimized checkpoint.
Render tab in the Properties again, and select the main directory of your model in the Path to SuGaR/Frosting directory field.
If you installed the repo of SuGaR or Frosting from GitHub, this directory should be named either SuGaR or Frosting.Finally, click on Render Image or Render Animation to render the scene.
Render Image will render a single image of the scene, with the current camera position and mesh editions/poses.
Render Animation will render a full animation of the scene, from the first frame to the last frame you set in the Blender Timeline.
The package should be located in /blender/packages/.
python render_blender_scene.py -p Please check the documentation of SuGaR or Frosting and the render_blender_scene.py scripts for more information on the additional arguments.
If you get artifacts in the rendering, you can try to switch the automatic adjustment method of the Gaussians from 'complex' to 'simple', as the simple method is less accurate but faster and more robust to extreme deformations:
python render_blender_scene.py -p --adaptation_method simpleIf you notice that some Gaussians are not rendered (especially if you perform extreme deformations on the meshes), you can also change the --deformation_threshold argument. All Gaussians belonging to triangles with a deformation factor higher than this threshold will be culled during rendering. The default value is 2., but you can try to increase it to 5. or 10:
python render_blender_scene.py -p --deformation_threshold 10--export_frame_as_ply followed by the frame number you want to export. For example, for exporting a PLY file of the representation at frame 10:python render_blender_scene.py -p --export_frame_as_ply 10No open issues yet, or sync has not completed.