百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
G

gauss-cannon

> 编程语言
开源

Gauss Cannon 是一套基于 Blender 场景的高斯散点生成实用程序。

100 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

Gauss Cannon 是一套基于 Blender 场景的高斯散点生成实用程序。

A powerful Blender add-on for Gaussian Splatting workflows. Generate your camera transforms and point clouds with ease!

Overview

Gauss Cannon is a comprehensive Blender add-on that streamlines the creation of camera paths and point clouds for Gaussian Splatting and photogrammetry workflows. It provides an intuitive interface for defining camera positions based on mesh faces and exports data in formats compatible with popular 3D reconstruction pipelines.

Created/Maintained by Arash Keshmirian

Features

Camera Path Generation

  • Helper Mesh System: Use any mesh object as a template for camera positions
  • Face-Based Camera Placement: Automatically generates camera keyframes at each face center
  • Smart Camera Orientation: Cameras face opposite to face normals for optimal coverage
  • Interior Camera Detection: Option to skip cameras detected inside scene meshes using ray casting
  • Near Clipping Protection: Automatically skips cameras too close to geometry

Export Capabilities

  • Multi-Format Camera Export:
    • LichtFeld Studio compatible format (default)
    • Postshot compatible simplified format
  • Camera Parameters: Exports full intrinsics and extrinsics with 4x4 transform matrices
  • Scene Normalization: Automatic AABB scale calculation for consistent processing
  • Coordinate System Options: Support for both Y-up and Z-up coordinate systems

Point Cloud Generation

  • Ray-Traced Point Clouds: Converts selected meshes to accurately-colored PLY point clouds
  • GPU Acceleration: Fast BVH-accelerated ray casting for improved performance
  • Multi-Frame Sampling: Generates dense point clouds from multiple camera views
  • Stride Control: Use every Nth frame for faster generation with fewer points
  • Color Preservation: Captures rendered colors including lighting and materials
  • Ray Density Control: Adjustable NxN ray grid per frame (4-1024)

Render Animation

  • Integrated Rendering: Render animation directly from the Gauss Cannon panel
  • Engine Selection: Choose render engine with Cycles-specific device and persistent data options
  • Native Render Window: Opens Blender's render progress window with ESC-to-cancel

User Interface

  • Step-by-Step Workflow: Clear Steps 1–4 guide you through the full pipeline
  • Unified Output Folder: Single folder for all exports (transforms.json, pointcloud.ply, images/)
  • Integrated Panel: Clean UI in the 3D viewport's N-panel under "Gauss Cannon" tab
  • Real-time Feedback: Shows face counts, camera positions, and selected objects
  • Visual Status Indicators: Icons show mesh visibility and selection status

Requirements

  • Blender: 4.2.0 or higher

Installation

  1. Download the latest release from GitHub Releases
  2. In Blender, go to Edit > Preferences > Get Extensions
  3. Click the dropdown menu in the top-right of the panel and choose Install from Disk...
  4. Select the downloaded .zip file
  5. Enable the add-on by checking the box next to "Gauss Cannon"

To uninstall or update later, find Gauss Cannon under Edit > Preferences > Get Extensions (or the Add-ons tab) and use the dropdown arrow next to the entry.

Usage

Basic Workflow

1. Setup Helper Meshes

1. Select mesh objects to use as camera position templates
2. Click "Add Selected" in the Gauss Cannon panel
3. Helper meshes are automatically hidden from render
4. View face counts and mesh status in the list

2. Configure Output

1. Set the output folder (all exports go here)
2. Choose export mode (LichtFeld Studio or Postshot)
3. Select coordinate system (Y-up or Z-up)

3. Generate Camera Path (Step 1)

1. Configure focal length, resolution, and interior camera detection
2. Click "Generate Cameras"
3. Cameras are created at each face center
4. Timeline and render settings are updated automatically

4. Export Camera Data

1. Click "Export Camera JSON"
2. transforms.json is saved to your output folder

5. Generate Point Cloud

1. Select target meshes in the viewport (excluding helper meshes)
2. Configure settings:
   - Ray Density: 4-1024 (default: 8)
   - Stride: Use every Nth frame (default: 1)
   - GPU acceleration: Enable for faster processing
3. Click "Generate Point Cloud"
4. pointcloud.ply is saved to your output folder

6. Render Animation

1. Choose render engine (Cycles/EEVEE)
2. For Cycles: select device and persistent data options
3. Click "Render Animation"
4. Frames are rendered to the images/ subfolder

Technical Details

Camera JSON Export Formats

LichtFeld Studio Format

json
{
  "aabb_scale": 2.5,
  "w": 1080,
  "h": 1080,
  "camera_angle_x": 0.6911,
  "camera_angle_y": 0.6911,
  "fl_x": 1388.88,
  "fl_y": 1388.88,
  "cx": 540.0,
  "cy": 540.0,
  "frames": [
    {
      "transform_matrix": [["..."]],
      "file_path": "images/0001.png"
    }
  ]
}

Postshot Format

json
{
  "aabb_scale": 2.5,
  "w": 1080,
  "h": 1080,
  "camera_angle_x": 0.6911,
  "camera_angle_y": 0.6911,
  "cx": 540.0,
  "cy": 540.0,
  "frames": [
    {
      "transform_matrix": [["..."]],
      "file_path": "images/0001.png"
    }
  ]
}

Point Cloud PLY Format

  • Format: Binary little-endian PLY
  • Properties: x, y, z positions + RGB colors
  • Coordinate System: Configurable (Y-up or Z-up)
  • Color Range: 0-255 per channel

Algorithm Details

Interior Camera Detection

  • Uses odd-even ray casting rule
  • Counts mesh intersections along ray
  • Odd count = inside mesh
  • Excludes helper meshes from detection

GPU Acceleration

  • Utilizes Blender's BVH tree structures
  • Batch ray processing for efficiency
  • Falls back to CPU if GPU unavailable
  • Up to 10x performance improvement

Tips & Best Practices

Performance Optimization

  • Use low-poly meshes as helpers for faster processing. Icospheres work great.
  • Enable GPU acceleration for point cloud generation
  • Start with low ray density (8-16)
  • Use stride to skip frames during point cloud generation
  • Enable "Persistent Data" in the render animation step for faster Cycles rendering

Quality Considerations

  • Higher ray density = better quality but slower
  • Helper face count - invalid cameras = camera count
  • Interior detection may slow generation on complex scenes
  • Helper meshes should encompass the target object

Workflow Tips

  • Plan camera coverage with simple helper geometry
  • Use icospheres or cylinders for 360° coverage
  • Preview camera path before exporting
  • Test with small datasets first

Troubleshooting

Common Issues

No cameras generated

  • Ensure helper meshes are added
  • Check that meshes have faces (not just vertices/edges)
  • Verify helper meshes are not deleted
  • Verify cameras are not intersecting meshes

GPU acceleration not working

  • Check Blender GPU compute settings
  • Ensure compatible GPU drivers
  • Falls back to CPU automatically

Interior cameras still appearing

  • Enable "Skip Interior Cameras" option
  • Check mesh normals are correct
  • Ensure meshes are manifold (watertight)

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

This project is licensed under the GPL v3.0 License - see the LICENSE file for details.

Acknowledgments

  • Blender Foundation for Blender and the amazing Blender Python API
  • The Gaussian Splatting community for inspiration and feedback
  • The creators of LichtFeld Studio and PostShot
  • All contributors and users of Gauss Cannon

Contact

Arash Keshmirian - GitHub

Project Link: https://github.com/keshmirian/gauss-cannon


Made with ❤️ for the 3D reconstruction community!

Issues· 2 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Python

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言