UniVRM icon indicating copy to clipboard operation
UniVRM copied to clipboard

primitive.extras.targetNames はもう export しなくてよいのでは

Open ousttrue opened this issue 3 years ago • 1 comments

  • https://github.com/KhronosGroup/glTF/issues/1036

https://www.khronos.org/registry/glTF/specs/2.0/glTF-2.0.html#meshes

mesh.extras.targetNames がデファクトになった。

https://www.khronos.org/registry/glTF/specs/2.0/glTF-2.0.html#morph-targets

All primitives MUST have the same number of morph targets in the same order.

とあります。 import 能力は残しておく。

ousttrue avatar Jul 12 '22 09:07 ousttrue

vrm-0.xprimitive.extras.targetNames に記録するという仕様です。

https://github.com/vrm-c/vrm-specification/tree/master/specification/0.0#morph-target-information

作った当時、すべての primitive が同じ morphTarget を持たない場合を想定していたためです。 今バージョンの glTF には下記の文言があります。

All primitives MUST have the same number of morph targets in the same order.

ousttrue avatar Jul 12 '22 09:07 ousttrue