Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vrm1 の Export インタフェースを整理 #866

Merged
merged 2 commits into from
Apr 12, 2021

Conversation

ousttrue
Copy link
Contributor

VrmLib.Model から Vrm 情報を除去したので、Model 単体から Vrm をエクスポートすることができなくなった。
Model.ToGlb を廃止して、Model の元になる GameObject を引数に取る、Vrm10Exporter.Export を実装した。

@ousttrue ousttrue added this to the v0.72 milestone Apr 12, 2021
@ousttrue ousttrue requested a review from Santarh April 12, 2021 11:30
@@ -200,7 +200,7 @@ public void Export(GameObject root, Model model, RuntimeVrmConverter converter,

(UniGLTF.Extensions.VRMC_vrm.VRMC_vrm vrm, UniGLTF.Extensions.VRMC_springBone.VRMC_springBone springBone, int? thumbnailIndex) ExportVrm(GameObject root, Model model, RuntimeVrmConverter converter, VRM10MetaObject meta)
{
var vrmController = root.GetComponent<VRM10Controller>();
var vrmController = root?.GetComponent<VRM10Controller>();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😄

// 右手系に変換
model.ConvertCoordinate(VrmLib.Coordinates.Vrm1);
var exportedBytes = model.ToGlb(TextureExporter.GetTextureBytesWithMime);
var exportedBytes = Vrm10Exporter.Export(go);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

サンプル、シンプル、イージー、ヨシ!

@ousttrue ousttrue merged commit 81b8e5a into vrm-c:master Apr 12, 2021
@ousttrue ousttrue deleted the fix/model_toglb branch May 17, 2021 05:21
@ousttrue ousttrue added the 1.0 label May 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants