Skip to content

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

Notifications You must be signed in to change notification settings

Hippogriff/rendering

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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])

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published