From 79f93dc9140fcbc8a98b4b5e8902dd4e8b7de337 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Thu, 28 Oct 2021 17:23:59 +0900 Subject: [PATCH 1/4] release note --- docs/chloggen.py | 17 +++++++++++------ docs/release/079/v0.88.0.md | 35 +++++++++++++++++++++++++++++++++++ docs/release_gen.py | 2 +- 3 files changed, 47 insertions(+), 7 deletions(-) create mode 100644 docs/release/079/v0.88.0.md diff --git a/docs/chloggen.py b/docs/chloggen.py index 6abebfe2f..d39d58089 100644 --- a/docs/chloggen.py +++ b/docs/chloggen.py @@ -4,18 +4,19 @@ import git.repo import re import pathlib import release_gen +from typing import TextIO HERE = pathlib.Path(__file__).absolute().parent MERGE_PATTERN = re.compile(r'Merge pull request #(\d+)') -def main(repo: git.repo.Repo, version: str): +def main(w: TextIO, repo: git.repo.Repo, version: str): major, minor, patch = [int(x) for x in version.split('.')] rev = f'v{major}.{minor-1}.0..v{major}.{minor}.0' - print(f'# v{version}: 1.0準備') - print() + w.write(f'# v{version}: 1.0準備\n') + w.write('\n') for item in repo.iter_commits(rev=rev): m = MERGE_PATTERN.match(item.message) if m: @@ -23,12 +24,16 @@ def main(repo: git.repo.Repo, version: str): pr = m[1] lines = item.message.splitlines() - print( - f'* [[\\#{pr}](https://github.com/vrm-c/UniVRM/pull/{pr})] {lines[2]}' + w.write( + f'* [[\\#{pr}](https://github.com/vrm-c/UniVRM/pull/{pr})] {lines[2]}\n' ) if __name__ == '__main__': repo = git.repo.Repo(str(HERE.parent)) version = release_gen.get_version() - main(repo, version) + + dst = HERE / f'release/079/v{version}.md' + with dst.open('w', encoding='utf-8') as w: + main(w, repo, version) + print(f'write to: {dst}') diff --git a/docs/release/079/v0.88.0.md b/docs/release/079/v0.88.0.md new file mode 100644 index 000000000..56ed6c889 --- /dev/null +++ b/docs/release/079/v0.88.0.md @@ -0,0 +1,35 @@ +# v0.88.0: 1.0準備 + +## 過去に TransparentZWrite シェーダーでエクスポートしたファイルをロード時に変換する修正 + +* [[\#1331](https://github.com/vrm-c/UniVRM/pull/1331)] Fix UnlitTransparentZWrite fallback code. + +## buffer.uri に `data:` を使っている glb/gltf に対応 + +`image.uri` では `data:` に対応していたのだけど、`buffer.uri` は対応していなかった。 + +* [Error when load glb file (buffer.uri)](https://github.com/vrm-c/UniVRM/issues/1326) + +## 1.0 +* [[\#1347](https://github.com/vrm-c/UniVRM/pull/1347)] [1.0] Expression UV Binding の挙動 +* [[\#1346](https://github.com/vrm-c/UniVRM/pull/1346)] Fix10/fix expression migration +* [[\#1344](https://github.com/vrm-c/UniVRM/pull/1344)] [1.0] const LICENSE_URL_JA +* [[\#1342](https://github.com/vrm-c/UniVRM/pull/1342)] [1.0] migration fail safe +* [[\#1340](https://github.com/vrm-c/UniVRM/pull/1340)] ReconstructSpringBoneを呼んだ時、デフォルトの回転角の指定が正しく行えない問題を修正 + +## doc +* [[\#1337](https://github.com/vrm-c/UniVRM/pull/1337)] sphinx エラー修正 +* [[\#1336](https://github.com/vrm-c/UniVRM/pull/1336)] Doc/update 20211022 +* [[\#1323](https://github.com/vrm-c/UniVRM/pull/1323)] Doc/update 20211018 +* [[\#1321](https://github.com/vrm-c/UniVRM/pull/1321)] UniVRM-0.87.0 release note + +## Others +* [[\#1345](https://github.com/vrm-c/UniVRM/pull/1345)] UniVRM-0.88.0 +* [[\#1343](https://github.com/vrm-c/UniVRM/pull/1343)] bufferView の data uri を実装 +* [[\#1339](https://github.com/vrm-c/UniVRM/pull/1339)] [Maintenance] refactoring gltf buffer access +* [[\#1338](https://github.com/vrm-c/UniVRM/pull/1338)] MaterialDescriptorをreadonly structに変更 +* [[\#1327](https://github.com/vrm-c/UniVRM/pull/1327)] Merge duplicated gltfExporter argument `GltfExportSettings` +* [[\#1334](https://github.com/vrm-c/UniVRM/pull/1334)] [0.x] Remove RuntimeGltfInstance before saving a prefab. +* [[\#1330](https://github.com/vrm-c/UniVRM/pull/1330)] FastSpringBoneがMathf関連のエラーを吐く問題を修正 +* [[\#1324](https://github.com/vrm-c/UniVRM/pull/1324)] Normalize quaternion on update headTransform.rotation +* [[\#1322](https://github.com/vrm-c/UniVRM/pull/1322)] fix download url diff --git a/docs/release_gen.py b/docs/release_gen.py index 5fa476cc5..7aac6d4d2 100644 --- a/docs/release_gen.py +++ b/docs/release_gen.py @@ -79,6 +79,6 @@ def get_hash() -> str: if __name__ == '__main__': - version = get_version(UNIVRM_VERSION) + version = get_version() hash = get_hash() gen(version, hash) From 7df0371c99e50103e0f5a60ed090775678cc3ef6 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Thu, 28 Oct 2021 18:04:37 +0900 Subject: [PATCH 2/4] =?UTF-8?q?UnlitTransparentZWrite=20=E3=81=AB=E3=81=A4?= =?UTF-8?q?=E3=81=84=E3=81=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/implementation/index.md | 1 + docs/implementation/transparent_zwrite.md | 15 +++++++++++++++ docs/release/079/v0.88.0.md | 1 + 3 files changed, 17 insertions(+) create mode 100644 docs/implementation/transparent_zwrite.md diff --git a/docs/implementation/index.md b/docs/implementation/index.md index 15fb976a7..13f6537ea 100644 --- a/docs/implementation/index.md +++ b/docs/implementation/index.md @@ -9,4 +9,5 @@ coordinate fast_spring_bone first_person scripted_importer +transparent_zwrite ``` diff --git a/docs/implementation/transparent_zwrite.md b/docs/implementation/transparent_zwrite.md new file mode 100644 index 000000000..94a21f3c5 --- /dev/null +++ b/docs/implementation/transparent_zwrite.md @@ -0,0 +1,15 @@ +# UnlitTransparentZWrite + +対応状況。 + +| UniVRM | export | import | comment | +|-------------------------------------|--------|--------|-------------------------------------------------------------------------------------------------------| +| | ✅ | ✅ | GLTFの仕様外で MToon でもないので仕様の無い存在に。 | +| {doc}`v0.44 ` | ❌ | ✅ | MToon のみを extensions.VRM に記述し、 `PBR` と `Unilt` は GLTF として記録する。 | +| {doc}`v0.76 ` | ❌ | ❌ | [\#1004](https://github.com/vrm-c/UniVRM/pull/1004) 仕様外のため削除。import すると Standard になる。 | +| {doc}`v0.85 ` | ❌ | 🔺 | [\#1248](https://github.com/vrm-c/UniVRM/pull/1248) import すると MToon になる。 | +| {doc}`v0.88 ` | ❌ | ✅ | [\#1331](https://github.com/vrm-c/UniVRM/pull/1331) MToon 変換を見直し。 | + +* `UniVRM-0.75` 以前はロードできます。 +* `UniVRM-0.88` 以降は見た目が同様になるように MToon に変換されます。 +* 新規に `ZWriteTransparent` にしたい場合は、 `MToon` を使用してください。 diff --git a/docs/release/079/v0.88.0.md b/docs/release/079/v0.88.0.md index 56ed6c889..71fa91a36 100644 --- a/docs/release/079/v0.88.0.md +++ b/docs/release/079/v0.88.0.md @@ -2,6 +2,7 @@ ## 過去に TransparentZWrite シェーダーでエクスポートしたファイルをロード時に変換する修正 +* {doc}`TransparentZWrite ` * [[\#1331](https://github.com/vrm-c/UniVRM/pull/1331)] Fix UnlitTransparentZWrite fallback code. ## buffer.uri に `data:` を使っている glb/gltf に対応 From f906da539bff942dd3fa09a426e7717df2fe3730 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Thu, 28 Oct 2021 18:16:17 +0900 Subject: [PATCH 3/4] fix --- docs/implementation/transparent_zwrite.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/implementation/transparent_zwrite.md b/docs/implementation/transparent_zwrite.md index 94a21f3c5..e2fefec0a 100644 --- a/docs/implementation/transparent_zwrite.md +++ b/docs/implementation/transparent_zwrite.md @@ -2,13 +2,13 @@ 対応状況。 -| UniVRM | export | import | comment | -|-------------------------------------|--------|--------|-------------------------------------------------------------------------------------------------------| -| | ✅ | ✅ | GLTFの仕様外で MToon でもないので仕様の無い存在に。 | -| {doc}`v0.44 ` | ❌ | ✅ | MToon のみを extensions.VRM に記述し、 `PBR` と `Unilt` は GLTF として記録する。 | -| {doc}`v0.76 ` | ❌ | ❌ | [\#1004](https://github.com/vrm-c/UniVRM/pull/1004) 仕様外のため削除。import すると Standard になる。 | -| {doc}`v0.85 ` | ❌ | 🔺 | [\#1248](https://github.com/vrm-c/UniVRM/pull/1248) import すると MToon になる。 | -| {doc}`v0.88 ` | ❌ | ✅ | [\#1331](https://github.com/vrm-c/UniVRM/pull/1331) MToon 変換を見直し。 | +| UniVRM | export | import | comment | +|-------------------------------------|--------|--------|----------------------------------------------------------------------------------------------------------------------| +| | ✅ | ✅ | GLTFの仕様外で MToon でもないので仕様の無い存在に。 | +| {doc}`v0.44 ` | ❌ | ✅ | MToon のみを extensions.VRM に記述し、 `PBR` と `Unilt` は GLTF として記録する。 | +| {doc}`v0.76 ` | ❌ | ❌ | [\#1004](https://github.com/vrm-c/UniVRM/pull/1004) 仕様外のため削除。import すると MToon になるが調整されていない。 | +| {doc}`v0.85 ` | ❌ | 🔺 | [\#1248](https://github.com/vrm-c/UniVRM/pull/1248) import すると MToon になる。 | +| {doc}`v0.88 ` | ❌ | ✅ | [\#1331](https://github.com/vrm-c/UniVRM/pull/1331) MToon 変換を見直し。 | * `UniVRM-0.75` 以前はロードできます。 * `UniVRM-0.88` 以降は見た目が同様になるように MToon に変換されます。 From 0f6eb1a0df9c25a5288557d80f98660d6c9939cd Mon Sep 17 00:00:00 2001 From: ousttrue Date: Thu, 28 Oct 2021 18:22:45 +0900 Subject: [PATCH 4/4] mtoon settings as unlit --- docs/implementation/transparent_zwrite.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/implementation/transparent_zwrite.md b/docs/implementation/transparent_zwrite.md index e2fefec0a..a941f46c5 100644 --- a/docs/implementation/transparent_zwrite.md +++ b/docs/implementation/transparent_zwrite.md @@ -13,3 +13,14 @@ * `UniVRM-0.75` 以前はロードできます。 * `UniVRM-0.88` 以降は見た目が同様になるように MToon に変換されます。 * 新規に `ZWriteTransparent` にしたい場合は、 `MToon` を使用してください。 + +## MToon を Unlit 的に設定する + +Emission を使うのがこつです。 + +- _MainTex: 元の _MainTex +- _Color: (0, 0, 0, 1) +- _ShadeTex: null +- _ShadeColor: (0, 0, 0, 1) +- _EmissiveMap: 元の _MainTex +- _Emission: (1, 1, 1, 1)