/vibe:skill-depth-to-pointcloudfrom vibe
Converts depth maps and RGB images into textured 3D point clouds with correct camera intrinsics handling. Exports to PLY, XYZ, PCD, or LAS formats.
Ships in vibe. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Turn a depth map plus a colour image into a textured point cloud, exportable for visualisation or further 3D work.
depth: (H, W) numpy array of depths in the same units you want in the output (metres recommended).rgb: (H, W, 3) numpy array of colours (uint8 or float32 [0, 1]).intrinsics: (fx, fy, cx, cy) in pixel units.depth_scale: multiplier to convert predicted depth units to metres.X = (u - cx) * d / fx, Y = (v - cy) * d / fy, Z = d per pixel.(r, g, b) triple from the matching pixel..xyz (lightweight), .pcd (Open3D-native), .las/.laz (geospatial).import numpy as np
def depth_to_point_cloud(depth, intrinsics, depth_scale=1.0, min_depth=0.1, max_depth=100.0):
H, W = depth.shape
fx, fy, cx, cy = intrinsics
v, u = np.meshgrid(np.arange(H), np.arange(W), indexing="ij")
z = depth.astype(np.float32) * depth_scale
valid = (z > min_depth) & (z < max_depth) & np.isfinite(z)
x = (u - cx) * z / fx
y = (v - cy) * z / fy
points = np.stack([x, y, z], axis=-1)
return points, valid
def write_ply(path, points, colors=None, valid_mask=None):
p = points.reshape(-1, 3)
if valid_mask is not None:
p = p[valid_mask.flatten()]
lines = [
"ply",
"format ascii 1.0",
f"element vertex {p.shape[0]}",
"property float x", "property float y", "property float z",
]
if colors is not None:
c = colors.reshape(-1, 3).astype(np.uint8)
if valid_mask is not None:
c = c[valid_mask.flatten()]
lines += ["property uchar red", "property uchar green", "property uchar blue"]
lines.append("end_header")
with open(path, "w") as f:
f.write("\n".join(lines) + "\n")
if colors is not None:
for pt, col in zip(p, c):
f.write(f"{pt[0]:.4f} {pt[1]:.4f} {pt[2]:.4f} {col[0]} {col[1]} {col[2]}\n")
else:
for pt in p:
f.write(f"{pt[0]:.4f} {pt[1]:.4f} {pt[2]:.4f}\n")
[export]
input depth shape: (H, W)
valid points: <N> of <H*W>
output format: ply | xyz | pcd | las
coordinate system: camera (+X right, +Y down, +Z forward)
scale: metres | millimetres | normalised
relative_ to signal the convention.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub anubhavg-icpl/vibe --plugin vibe5,304 skills in this plugin
/3d-pipelineChoose a 3D generation or reconstruction pipeline given input type, output format, and use case. Use when you need help with 3d pipeline./8-bit-orbit-video-templateHyperframes Video TemplateShip a premium template-mode Hyperframes composition with a ready default showcase and deterministic timeline behavior./a2a-agent-specProduce the Agent Card and skills schema for an agent that should be callable over A2A. Use when you need help with a2a agent spec.Other plugins' skills for the same job