diff --git a/docs/index.html b/docs/index.html index bbd1cc9e1..4afb0e7ff 100644 --- a/docs/index.html +++ b/docs/index.html @@ -47,9 +47,17 @@
- +
-

UniVRM-0.108.0

+

VRM-0.109.0

+
for vrm-1.0
+
Unity-2020.3 or later
+
+
+ + +
+

UniVRM-0.109.0

for vrm-0.x
Unity-2020.3 or later
diff --git a/docs/release/100/v0.109.0.md b/docs/release/100/v0.109.0.md new file mode 100644 index 000000000..0aad93fc6 --- /dev/null +++ b/docs/release/100/v0.109.0.md @@ -0,0 +1,54 @@ +# v0.109.0: experimental VRMC_vrm_animation + +- for Unity-2020.3 or later +- + +## bug fix + +* [[\#2006](https://github.com/vrm-c/UniVRM/pull/2006)] [1.0][meta][import] copyright の import が無い + +## importer +* [[\#1975](https://github.com/vrm-c/UniVRM/pull/1975)] ランタイムロードの非同期アクセスで例外が発生する問題の修正 +* [[\#1964](https://github.com/vrm-c/UniVRM/pull/1964)] Add ITextureDeserializer parameter to high-level load APIs + +## exporter +* [[\#2012](https://github.com/vrm-c/UniVRM/pull/2012)] to warning +* [[\#2009](https://github.com/vrm-c/UniVRM/pull/2009)] ArrayProperty name `Element 0` to `{Array.Name}[0]` +* [[\#1978](https://github.com/vrm-c/UniVRM/pull/1978)] Fix exporter texture leak +* [[\#1955](https://github.com/vrm-c/UniVRM/pull/1955)] Disabled renderers no longer get exported + +## spring bone +* [[\#1976](https://github.com/vrm-c/UniVRM/pull/1976)] Change FastSpringBoneService ExecutionOrder To 11010 +* [[\#1952](https://github.com/vrm-c/UniVRM/pull/1952)] Add limit break sliders to spring bone joint properties + +## experimental VRMC_vrm_animation +* [[\#2000](https://github.com/vrm-c/UniVRM/pull/2000)] [experimental][vrm-animation] vrm animation の試験実装 +* [[\#1996](https://github.com/vrm-c/UniVRM/pull/1996)] ITPoseProvider を縮小。EuclideanTransform 導入 +* [[\#1992](https://github.com/vrm-c/UniVRM/pull/1992)] [sample] VRM10Retarget の実装 +* [[\#1990](https://github.com/vrm-c/UniVRM/pull/1990)] IControlRigGetter と IControlRigSetter を追加 +* [[\#1989](https://github.com/vrm-c/UniVRM/pull/1989)] [API Breaking Change] Vrm10RuntimeControlRig は、正規化されたTPoseを受け取る責務に特化 +* [[\#1988](https://github.com/vrm-c/UniVRM/pull/1988)] ControlRig 関連を浅い階層に移動 +* [[\#1983](https://github.com/vrm-c/UniVRM/pull/1983)] update json schema +* [[\#1970](https://github.com/vrm-c/UniVRM/pull/1970)] Add defines of VRM-1.0 humanoid bone specification +* [[\#1957](https://github.com/vrm-c/UniVRM/pull/1957)] Feature10/openxr fb body tracking + +## sample +* [[\#2015](https://github.com/vrm-c/UniVRM/pull/2015)] copy Samples to Samples~ +* [[\#2014](https://github.com/vrm-c/UniVRM/pull/2014)] [sample] SimpleViewer を修復(BvhImporterContext の挙動変更に追随) +* [[\#2011](https://github.com/vrm-c/UniVRM/pull/2011)] [1.0][sample] add vrm-1.0 runtime export +* [[\#1985](https://github.com/vrm-c/UniVRM/pull/1985)] sampler の bvh load の修正 +* [[\#1962](https://github.com/vrm-c/UniVRM/pull/1962)] [1.0] FirstPerson セットアップ記事の更新 + +## other +* [[\#2013](https://github.com/vrm-c/UniVRM/pull/2013)] UniVRM-0.109.0 +* [[\#2008](https://github.com/vrm-c/UniVRM/pull/2008)] Write about older release versions +* [[\#1993](https://github.com/vrm-c/UniVRM/pull/1993)] Bump markdown-it-py from 2.0.0 to 2.2.0 +* [[\#2004](https://github.com/vrm-c/UniVRM/pull/2004)] Fix for failed tests. +* [[\#2003](https://github.com/vrm-c/UniVRM/pull/2003)] rename VRN10/Tests/Resources -> TestAssets +* [[\#1991](https://github.com/vrm-c/UniVRM/pull/1991)] fix: Fix vrmAssetPostprocessor +* [[\#1986](https://github.com/vrm-c/UniVRM/pull/1986)] Add a LookAtOrigin transform to ControlRig. +* [[\#1984](https://github.com/vrm-c/UniVRM/pull/1984)] Refactoring about Vrm10 LookAtRuntime +* [[\#1979](https://github.com/vrm-c/UniVRM/pull/1979)] PlayMode テストの修正 +* [[\#1953](https://github.com/vrm-c/UniVRM/pull/1953)] Bump certifi from 2021.10.8 to 2022.12.7 +* [[\#1951](https://github.com/vrm-c/UniVRM/pull/1951)] improve release template according to latest Unity +* [[\#1950](https://github.com/vrm-c/UniVRM/pull/1950)] UniVRM-0.108.0 の Release. po の修正 diff --git a/docs/release_gen.py b/docs/release_gen.py index 00d80ef42..ec1c16746 100644 --- a/docs/release_gen.py +++ b/docs/release_gen.py @@ -17,23 +17,30 @@ import io from functools import cmp_to_key HERE = pathlib.Path(__file__).absolute().parent -UNIVRM_VERSION = HERE.parent / 'Assets/VRM/Runtime/Format/VRMVersion.cs' -MERGE_PATTERN = re.compile(r'Merge pull request #(\d+)') -TEMPLATE = HERE / 'release_template.md' +UNIVRM_VERSION = HERE.parent / "Assets/VRM/Runtime/Format/VRMVersion.cs" +MERGE_PATTERN = re.compile(r"Merge pull request #(\d+)") +TEMPLATE = HERE / "release_template.md" def gen(version: str, hash: str): - version_hash = f'{version}_{hash[0:4]}' - template = TEMPLATE.read_text(encoding='utf-8') - return template.format( - version=version, - version_hash=version_hash, - ) + version_hash = f"{version}_{hash[0:4]}" + template = TEMPLATE.read_text(encoding="utf-8") + values = { + "version": version, + "version_hash": version_hash, + } + + def replace(m: re.Match): + return values[m.group(1)] + + return re.sub(r"\$\{([^}]+)\}", replace, template) def get_version() -> str: - m = re.search(r'public const string VERSION = "(\d.\d+.\d)";', - UNIVRM_VERSION.read_text(encoding='utf-8')) + m = re.search( + r'public const string VERSION = "(\d.\d+.\d)";', + UNIVRM_VERSION.read_text(encoding="utf-8"), + ) if m: return m[1] raise Exception("no version") @@ -51,20 +58,21 @@ def get_hash(repo, tag_name) -> str: def copy_release_md(version: str, hash: str): text = gen(version, hash) import pyperclip + pyperclip.copy(text) - print('copy to clipboard') + print("copy to clipboard") # # # def change_log(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' + major, minor, patch = [int(x) for x in version.split(".")] + rev = f"v{major}.{minor-1}.0..v{major}.{minor}.0" w = io.StringIO() - w.write(f'# {rev}: ChangeLog\n') - w.write('\n') + w.write(f"# {rev}: ChangeLog\n") + w.write("\n") for item in repo.iter_commits(rev=rev): if len(item.parents) > 1: m = MERGE_PATTERN.match(item.message) @@ -74,22 +82,22 @@ def change_log(repo: git.repo.Repo, version: str): lines = item.message.split("\n") w.write( - f'* [[\\#{pr}](https://github.com/vrm-c/UniVRM/pull/{pr})] {lines[2]}\n' + f"* [[\\#{pr}](https://github.com/vrm-c/UniVRM/pull/{pr})] {lines[2]}\n" ) else: - w.write(f'* {item.message}') + w.write(f"* {item.message}") return w.getvalue() def get_tags(repo): - P = re.compile(r'v(\w+)\.(\w+)\.(\w+)') + P = re.compile(r"v(\w+)\.(\w+)\.(\w+)") for tag in repo.tags: m = P.match(tag.name) if m: yield int(m[1]), int(m[2]), int(m[3]) -if __name__ == '__main__': +if __name__ == "__main__": repo = git.repo.Repo(str(HERE.parent)) def cmp_tag(l, r): @@ -102,17 +110,18 @@ if __name__ == '__main__': tags = [tag for tag in get_tags(repo)] tags = sorted(tags, key=cmp_to_key(cmp_tag)) x, y, z = tags[-1] - version = f'{x}.{y}.{z}' - hash = get_hash(repo, f'v{version}') + version = f"{x}.{y}.{z}" + hash = get_hash(repo, f"v{version}") # 1. - copy_release_md(f'{version}', hash) + copy_release_md(f"{version}", hash) # 2. - release = HERE / f'release/100/v{version}.md' + release = HERE / f"release/100/v{version}.md" if not release.exists(): - text = change_log(repo, f'{version}') - release.write_text(text, encoding='utf-8') + text = change_log(repo, f"{version}") + release.write_text(text, encoding="utf-8") # 3. - (HERE / 'index.html').write_text(f''' + (HERE / "index.html").write_text( + f""" @@ -161,6 +170,14 @@ if __name__ == '__main__':
+ +
+

VRM-{version}

+
for vrm-1.0
+
Unity-2020.3 or later
+
+
+

UniVRM-{version}

@@ -186,5 +203,6 @@ if __name__ == '__main__': -''', - encoding='utf-8') +""", + encoding="utf-8", + ) diff --git a/docs/release_template.md b/docs/release_template.md index 8325fcf92..b6a5df460 100644 --- a/docs/release_template.md +++ b/docs/release_template.md @@ -1,7 +1,7 @@ ## Release Notes -- [日本語](https://vrm-c.github.io/UniVRM/ja/release/100/v{version}.html) -- [English](https://vrm-c.github.io/UniVRM/en/release/100/v{version}.html) +- [日本語](https://vrm-c.github.io/UniVRM/ja/release/100/v${version}.html) +- [English](https://vrm-c.github.io/UniVRM/en/release/100/v${version}.html) ## Installation @@ -12,7 +12,7 @@ You can install UniVRM using the UnityPackage or the UPM Package. ### VRM 1.0 Import/Export - via UnityPackage - - **Download [VRM-{version_hash}.unitypackage](https://github.com/vrm-c/UniVRM/releases/download/v{version}/VRM-{version_hash}.unitypackage)** + - **Download [VRM-${version_hash}.unitypackage](https://github.com/vrm-c/UniVRM/releases/download/v${version}/VRM-${version_hash}.unitypackage)** - via UPM Package - `com.vrmc.vrmshaders` @@ -22,7 +22,7 @@ You can install UniVRM using the UnityPackage or the UPM Package. ### VRM 0.x Import/Export - via UnityPackage - - **Download [UniVRM-{version_hash}.unitypackage](https://github.com/vrm-c/UniVRM/releases/download/v{version}/UniVRM-{version_hash}.unitypackage)** + - **Download [UniVRM-${version_hash}.unitypackage](https://github.com/vrm-c/UniVRM/releases/download/v${version}/UniVRM-${version_hash}.unitypackage)** - via UPM Package - `com.vrmc.vrmshaders` @@ -34,12 +34,12 @@ You can install these UPM packages via Package Manager in UnityEditor. - `Window` -> `Package Manager` -> `+` -> `Add package from git URL...` -| UPM package | git URL | -| :------------------ | :--------------------------------------------------------------------- | -| com.vrmc.vrmshaders | https://github.com/vrm-c/UniVRM.git?path=/Assets/VRMShaders#v{version} | -| com.vrmc.gltf | https://github.com/vrm-c/UniVRM.git?path=/Assets/UniGLTF#v{version} | -| com.vrmc.univrm | https://github.com/vrm-c/UniVRM.git?path=/Assets/VRM#v{version} | -| com.vrmc.vrm | https://github.com/vrm-c/UniVRM.git?path=/Assets/VRM10#v{version} | +| UPM package | git URL | +|:--------------------|:------------------------------------------------------------------------| +| com.vrmc.vrmshaders | https://github.com/vrm-c/UniVRM.git?path=/Assets/VRMShaders#v${version} | +| com.vrmc.gltf | https://github.com/vrm-c/UniVRM.git?path=/Assets/UniGLTF#v${version} | +| com.vrmc.univrm | https://github.com/vrm-c/UniVRM.git?path=/Assets/VRM#v${version} | +| com.vrmc.vrm | https://github.com/vrm-c/UniVRM.git?path=/Assets/VRM10#v${version} | You can also install via editing `Packages/manifest.json` directly. @@ -48,10 +48,10 @@ You can also install via editing `Packages/manifest.json` directly. { "dependencies": { // ... - "com.vrmc.vrmshaders": "https://github.com/vrm-c/UniVRM.git?path=/Assets/VRMShaders#v{version}", - "com.vrmc.gltf": "https://github.com/vrm-c/UniVRM.git?path=/Assets/UniGLTF#v{version}", - "com.vrmc.univrm": "https://github.com/vrm-c/UniVRM.git?path=/Assets/VRM#v{version}", - "com.vrmc.vrm": "https://github.com/vrm-c/UniVRM.git?path=/Assets/VRM10#v{version}", + "com.vrmc.vrmshaders": "https://github.com/vrm-c/UniVRM.git?path=/Assets/VRMShaders#v${version}", + "com.vrmc.gltf": "https://github.com/vrm-c/UniVRM.git?path=/Assets/UniGLTF#v${version}", + "com.vrmc.univrm": "https://github.com/vrm-c/UniVRM.git?path=/Assets/VRM#v${version}", + "com.vrmc.vrm": "https://github.com/vrm-c/UniVRM.git?path=/Assets/VRM10#v${version}", // ... } } @@ -61,9 +61,9 @@ You can also install via editing `Packages/manifest.json` directly. ### Samples - via UnityPackage - VRM 1.0 Development Samples - - [VRM_Samples-{version_hash}.unitypackage](https://github.com/vrm-c/UniVRM/releases/download/v{version}/VRM_Samples-{version_hash}.unitypackage) + - [VRM_Samples-${version_hash}.unitypackage](https://github.com/vrm-c/UniVRM/releases/download/v${version}/VRM_Samples-${version_hash}.unitypackage) - VRM 0.x Development Samples - - [UniVRM_Samples-{version_hash}.unitypackage](https://github.com/vrm-c/UniVRM/releases/download/v{version}/UniVRM_Samples-{version_hash}.unitypackage) + - [UniVRM_Samples-${version_hash}.unitypackage](https://github.com/vrm-c/UniVRM/releases/download/v${version}/UniVRM_Samples-${version_hash}.unitypackage) - via UPM Package - You can find `Samples` in the Package Manager and then submit `Import` button. - `Window` -> `Package Manager` -> `Packages: In Project` -> `VRM-1.0` or `VRM`