SkillAgentSearch skills...

Rendering

Quick trimesh headless rendering. Supports depth map, normal map, ray to mesh intersection point and triangle ids.

Install / Use

/learn @Hippogriff/Rendering
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

rendering

Quick trimesh headless rendering for meshes. Supports depth map, normal map, ray to mesh intersection point and triangle ids.

Usage:

import trimesh
from matplotlib import pyplot as plt
from render import render_mesh
from render_utils import normalize_mesh

mesh = trimesh.load("path-to-file.obj")
normalize_mesh(mesh)

images, camera_poses = render_mesh(mesh, resolution=128, if_correct_normals=False)
triangle_ids, rendered_images, normal_maps, depth_images, p_images = images

plt.imshow(rendered_images[20])
View on GitHub
GitHub Stars21
CategoryCustomer
Updated4mo ago
Forks2

Languages

Python

Security Score

72/100

Audited on Nov 3, 2025

No findings