forked from bdunderscore/modular-avatar
-
Notifications
You must be signed in to change notification settings - Fork 0
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
VRCSDKなしでもManual bake avatarが押せるようにする Ver. ndmf + MA1.8.0 + AAO1.5.1 #7
Draft
kaikoga
wants to merge
13
commits into
main
Choose a base branch
from
vista
base: main
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kaikoga
changed the title
VRCSDKなしでもManual bake avatarが押せるようにする Ver. ndmf + MA1.8.0
VRCSDKなしでもManual bake avatarが押せるようにする Ver. ndmf + MA1.8.0 + AAO1.5.0
Sep 30, 2023
This was referenced Oct 1, 2023
kaikoga
changed the title
VRCSDKなしでもManual bake avatarが押せるようにする Ver. ndmf + MA1.8.0 + AAO1.5.0
VRCSDKなしでもManual bake avatarが押せるようにする Ver. ndmf + MA1.8.0 + AAO1.5.1
Oct 1, 2023
kaikoga
force-pushed
the
vista
branch
2 times, most recently
from
October 5, 2023 16:48
b369c21
to
eaa5de6
Compare
ndmf 1.2.1 に必要な実装が入ったので参照するndmfをndmf 1.2.1に変更 |
modular-avatar のディレクトリ構成変更に追従( Packages/manifest.json を修正してください) |
AvatarOptimizerはNon-VRCSDK対応まで完了(つまりkaikoga/AvatarOptimizerのvistaの内容が全て反映)したため、1.6の安定版が出たら追従する |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
このPRに関する議論はこちらのDiscussionsへお願いします: bdunderscore#467
#1 の続編。
(これは本家がVRCSDKへの依存性を解消するまでの間メンテされるパッチです)
単にVRMでもModular Avatarを使いたい人向け
VRCSDKを入れなくてもModular AvatarとAAOが使えます。
Modular Avatar 1.8.0 と Avatar Optimizer 1.5.1 (いずれも予定/このバージョン番号は予告なく変更されます)をベースに改変されています。
一部の機能は動きません。一部のコンポーネントはVRCSDKが入ってないプロジェクトで使うと設定内容が破壊され、VRCSDKが入っているプロジェクトに戻しても復元されません。
VRCSDKが入っていないために使えないコンポーネントは名前に (Unsupported) がつきます。主にPhysBone系とかMenu系がそうなります。
インストール
自明な理由から、このModular AvatarのforkはOpenUPMなどのUPMリポジトリに登録されていません。
これを読んでいるということはVCC/VPMは利用できないはずなので、代わりにUPMのGit依存性でインストールします。
JSONファイルを編集する場合は、適当なテキストエディタで.jsonファイルを開いてください。
Packages/manifest.json
に以下の項目を足してください。(カンマはいい感じに補ってください)空のプロジェクトにインストールする場合の手順
VRCSDKと一緒に本forkを使う場合の手順
"net.kaikoga.ndmf-deps"
の行はVRCSDKが入っているプロジェクトでは入れないでください(VRCSDKが入ってる場合は上から4行だけ使います)VRCSDK+本家MA+本家AOをセットアップしたアバタープロジェクトからVRCSDKを抜く場合の手順
Packages/vpm-manifest.json
と、VCCでPackages
以下に追加されたVPMパッケージを手動で削除してください。VRC_SDK_VRCSDK3
が設定されているはずですが、これが入っていると動かないツールがある(lilToonなど)ので削除することをお勧めします。アップデート
Packages/package-lock.json
を削除すると、Git依存性でインポートされたUPMパッケージの最新版が再インポートされます。確率は低いですが、Git依存性でインポートされたUPMパッケージが他にもある場合、Gitプロジェクトが壊れることがあるので気をつけてください。
ハマリどころ
AAOがVRMに対応するまでは、表情に使うSkinnedMeshRendererのBlendShapeは最適化しないようにしてください。
技術的詳細
DLLへの依存性はndmf-depsに切り出しました。
ndmf の改変
MA の改変( AAO も方針は一緒)
MA_VRCSDK3_AVATARS
コンパイルフラグ(lilToonに命名規則を合わせました)がセットされますMA_VRCSDK3_AVATARS
で囲いますVRC_SDK_VRCSDK3
は参照しません。