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.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
fix(texture): rescale view pixels when the render size differs from the atlas
nirholas32c078075f12
diff --git a/workers/texture/texture_projection.py b/workers/texture/texture_projection.pyindex fda738202..11f29b13f 100644--- a/workers/texture/texture_projection.py+++ b/workers/texture/texture_projection.py@@ -346,6 +346,14 @@ def project_views_to_uv(pixels, depth = view.project(flat_pos)u, v = pixels[:, 0], pixels[:, 1]+ # The generated view does not have to be the size the camera was defined+ # at: a lane may generate at SDXL-native 1024 and bake a 2048 atlas.+ # Rescale pixel centres onto the image's grid rather than silently+ # projecting into the wrong half of it.+ if img_w != view.size or img_h != view.size:+ u = (u + 0.5) * (img_w / view.size) - 0.5+ v = (v + 0.5) * (img_h / view.size) - 0.5+confidence = np.clip(flat_nrm @ view.view_direction(), 0.0, 1.0) ** FACING_EXPONENTconfidence = np.where(confidence >= MIN_FACING, confidence, 0.0)# Half a pixel of slack at the frame border. A texel on the silhouette