Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

docs(texture): correct the module note about pyrender depth being directly comparable

nirholasf0ec70ef235d
diff --git a/workers/texture/texture_projection.py b/workers/texture/texture_projection.py
index 733662762..fefe5a637 100644
--- a/workers/texture/texture_projection.py
+++ b/workers/texture/texture_projection.py
@@ -14,10 +14,12 @@ Conventions, both load-bearing:
* Camera. OpenGL/pyrender style: the camera looks down its own -Z, so the pose
matrix carries (right, up, -forward) in its rotation columns. `project`
- returns pixel coordinates in the rendered view plus a positive depth measured
- along the view axis, which is the same quantity pyrender's offscreen renderer
- writes into its depth buffer, so the two can be compared directly for the
- occlusion test.
+ returns pixel coordinates in the rendered view plus a true linear depth
+ along the view axis. That is NOT what pyrender hands back from a render:
+ it un-projects its depth buffer with the perspective formula whatever camera
+ drew it, so an orthographic render's depths come back nonlinearly warped.
+ The occlusion test therefore z-buffers the surface samples here rather than
+ reusing the render (see view_depth_buffer).
* UV. trimesh flips V on glTF import and flips it back on export, so inside
trimesh (and therefore here) V points up and the atlas row for a texel is