Skip to content

fix(vrm-export): unique texture names so the serializer doesn't alias…#184

Merged
nachomazzara merged 1 commit into
feat/vrm-export-v2from
fix/vrm-export-skin-texture-name-collision
Jun 17, 2026
Merged

fix(vrm-export): unique texture names so the serializer doesn't alias…#184
nachomazzara merged 1 commit into
feat/vrm-export-v2from
fix/vrm-export-skin-texture-name-collision

Conversation

@eordano

@eordano eordano commented Jun 17, 2026

Copy link
Copy Markdown
Member

… skin maps

Babylon 4.2's glTF serializer keys each exported image by the Babylon texture name; when two distinct textures share a name the second one's glTF texture entry aliases to the first image. DCL avatars reuse the name AvatarSkin_MAT (Base Color) across body parts that carry different image data (the head a clean 1024 skin map, the body a darker 2048 one), so the head inherited the body's map and rendered dark, feature-placeholder texels around the nose and eyes.

Make every texture name unique for the duration of the export, then restore so the live scene is untouched. Verified: head now references its own 1024 image, nose dark-pixel fraction 9 percent to 0 percent in a Blender VRM-addon import.

… skin maps

Babylon 4.2's glTF serializer keys each exported image by the Babylon texture name; when two distinct textures share a name the second one's glTF texture entry aliases to the first image. DCL avatars reuse the name AvatarSkin_MAT (Base Color) across body parts that carry different image data (the head a clean 1024 skin map, the body a darker 2048 one), so the head inherited the body's map and rendered dark, feature-placeholder texels around the nose and eyes.

Make every texture name unique for the duration of the export, then restore so the live scene is untouched. Verified: head now references its own 1024 image, nose dark-pixel fraction 9 percent to 0 percent in a Blender VRM-addon import.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 17, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
wearable-preview Ready Ready Preview, Comment Jun 17, 2026 10:50pm

Request Review

@nachomazzara nachomazzara requested review from nachomazzara and removed request for nachomazzara June 17, 2026 22:57
@nachomazzara nachomazzara merged commit b8bdb96 into feat/vrm-export-v2 Jun 17, 2026
3 checks passed
@nachomazzara nachomazzara deleted the fix/vrm-export-skin-texture-name-collision branch June 17, 2026 22:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants