Skip to content

Commit 7f9b6ee

Browse files
committed
version 2.5.16
1 parent 64a4541 commit 7f9b6ee

28 files changed

+2139
-216
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Change Log
22

3+
## [2.5.16] - 2023-08-24
4+
5+
- Experiments
6+
- Support `WebP` format for image type (media type / MIME type) in texture.
7+
38
## [2.5.15] - 2023-08-18
49

510
- Fixes

Documentation~/UniVGO/Experiment.md

+93
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
# UniVGO experimental features manual
2+
3+
Manual for experimental features.
4+
5+
## WebP format texture
6+
7+
### 1-1. Unity Editor
8+
9+
Unity 2021.2 or higher.
10+
11+
### 1-2. Package
12+
13+
`<Project>/Packages/package.json`.
14+
15+
```json
16+
{
17+
"scopedRegistries": [
18+
{
19+
"name": "Unity NuGet",
20+
"url": "https://unitynuget-registry.azurewebsites.net",
21+
"scopes": ["org.nuget"]
22+
}
23+
],
24+
"dependencies": {
25+
"org.nuget.sixlabors.imagesharp": "2.1.5",
26+
}
27+
}
28+
```
29+
30+
### 1-3. Define symbol
31+
32+
Unity Editor
33+
34+
Menu Bar > `Edit` > `Projcet Settings`
35+
36+
Projcet Settings Window
37+
38+
`Player` > `Other Settings` > `Script Compilation` > `Scripting Define Symbols`
39+
40+
Add the Define symbol.
41+
42+
`UNIVGO_EXPORT_WEBP_TEXTURE_ENABLE`
43+
44+
### 1-4. Export
45+
46+
Select the GameObject you want to output in Hierarchy.
47+
48+
Click the `Export VGO` button of `Vgo Generator` in Inspector.
49+
50+
Set the export condition.
51+
52+
Select the `WebP (expt)` radio button for `Texture Type`.
53+
54+
Finally, click the `Export` button.
55+
56+
### 1-5. Import / Load
57+
58+
There is no difference in the operating procedure from the normal case.
59+
60+
### 1-6. Comparison
61+
62+
Comparison data of `PNG` and `WebP`.
63+
64+
The target is a humanoid avatar with 6 textures.
65+
66+
|Subject|PNG|WebP|Ratio|
67+
|:---|---:|---:|---:|
68+
|File Size|20MB|17.5MB|-13%|
69+
|Export Time|2,500ms|81,000ms|+3240%|
70+
|Import Time|1,500ms|10,200ms|+680%|
71+
|Runtime Load Time (Editor, sync)|1,500ms|14,000ms|+933%|
72+
|Runtime Load Time (Editor, async)|2,200ms|5,700ms|+250%|
73+
|Runtime Load Time (IL2CPP, async)|1,100ms|2,500ms|+227%|
74+
75+
### 1-7. Inspection result
76+
77+
The data size of the VGO file is reduced by high compressing the image data.
78+
79+
On the other hand, the image data encoding / decoding process becomes heavy.
80+
81+
Also, since Unity Engine does not support WebP format, it is necessary to go through format conversion processing.
82+
83+
Due to the specifications of the Unity Editor, export processing cannot be performed asynchronously or in parallel, so export processing takes time.
84+
85+
Synchronous processing may be faster than asynchronous processing because, according to Unity Engine specifications, important processing must be performed on the main thread, and there are almost no cases where parallelization is possible.
86+
87+
Downloading a VGO file using `UnityWebRequest.Get(uri)` is faster, but `VgoImporter.LoadAsync()` is slower.
88+
89+
___
90+
Last updated: 24 August, 2023
91+
Editor: Izayoi Jiichan
92+
93+
*Copyright (C) 2023 Izayoi Jiichan. All Rights Reserved.*

Documentation~/UniVGO/Installation.ja.md

+37-19
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ ___
1616
|Unity 2021.3|||||未確認||
1717
|Unity 2022.1||||未確認|未確認||
1818
|Unity 2022.2||||未確認|未確認||
19-
|Unity 2022.3||||未確認|未確認|未確認|
20-
|Unity 2023.1||||未確認|未確認|未確認|
19+
|Unity 2022.3||||未確認|未確認||
20+
|Unity 2023.1|||||未確認||
2121

2222
2023年8月の時点では `Unity 2023.1``Windows``.NET Standard 2.1` 環境にて開発&確認を行っています。
2323

@@ -44,7 +44,7 @@ Unity 2021.1 以下のバージョンを使用する場合
4444
|com.izayoi.liltoon.shader.utility|IzayoiJiichan|GitHub||1.4.0|2023年5月30日|
4545
|com.izayoi.unishaders|IzayoiJiichan|GitHub||1.6.1|2023年8月1日|
4646
|com.izayoi.vgospringbone|IzayoiJiichan|GitHub||1.1.2|2022年8月24日|
47-
|com.izayoi.univgo|IzayoiJiichan|GitHub|VGO 2.5|2.5.15|2023年8月18日|
47+
|com.izayoi.univgo|IzayoiJiichan|GitHub|VGO 2.5|2.5.16|2023年8月24日|
4848

4949
#### 追加パッケージ
5050

@@ -53,6 +53,7 @@ Unity 2021.1 以下のバージョンを使用する場合
5353
|パッケージ名|所有者|リポジトリー|仕様バージョン|プログラム バージョン|リリース日|備考|
5454
|:---|:---:|:---:|:---:|:---:|:---:|:---:|
5555
|jp.lilxyzw.liltoon|lilxyzw|GitHub||1.4.0|2023年5月12日||
56+
|org.nuget.sixlabors.imagesharp|SixLabors|Unity NuGet||2.1.5|2023年8月14日|for WebP|
5657
|com.unity.render-pipelines.universal|Unity Technologies|Unity Registry||14.0.0|2021年11月17日|URP only|
5758
|com.unity.render-pipelines.high-definition|Unity Technologies|Unity Registry||14.0.0|2021年11月17日|HDRP only|
5859

@@ -142,7 +143,7 @@ UniVGOを使用するために、以下の設定を追加してください。
142143
"dependencies": {
143144
"com.izayoi.liltoon.shader.utility": "https://github.com/izayoijiichan/lilToonShaderUtility.git#v1.4.0",
144145
"com.izayoi.unishaders": "https://github.com/izayoijiichan/UniShaders.git#v1.6.1",
145-
"com.izayoi.univgo": "https://github.com/izayoijiican/VGO.git#v2.5.15",
146+
"com.izayoi.univgo": "https://github.com/izayoijiican/VGO.git#v2.5.16",
146147
"com.izayoi.vgospringbone": "https://github.com/izayoijiichan/VgoSpringBone.git#v1.1.2",
147148
"com.unity.nuget.newtonsoft-json": "3.2.1",
148149
"com.unity.ugui": "1.0.0",
@@ -163,6 +164,23 @@ lilToonを使用する場合、"jp.lilxyzw.liltoon" の行を追加してくだ
163164
}
164165
```
165166

167+
WUnity 2021.2 以上のバージョンを使用していて、WebPを使用する場合、"org.nuget.sixlabors.imagesharp" の行を追加してください。
168+
169+
```json
170+
{
171+
"scopedRegistries": [
172+
{
173+
"name": "Unity NuGet",
174+
"url": "https://unitynuget-registry.azurewebsites.net",
175+
"scopes": ["org.nuget"]
176+
}
177+
],
178+
"dependencies": {
179+
"org.nuget.sixlabors.imagesharp": "2.1.5",
180+
}
181+
}
182+
```
183+
166184
URPを使用する場合、"com.unity.render-pipelines.universal" の行を追加してください。
167185

168186
```json
@@ -255,20 +273,20 @@ ___
255273

256274
|UniVRM|UniVGO|min Unity|
257275
|:---:|:---:|:---:|
258-
|0.100.0|2.5.15|2020.3|
259-
|0.101.0|2.5.15|2020.3|
260-
|0.102.0|2.5.15|2020.3|
261-
|0.103.2|2.5.15|2020.3|
262-
|0.104.2|2.5.15|2020.3|
263-
|0.105.0|2.5.15|2020.3|
264-
|0.106.0|2.5.15|2020.3|
265-
|0.107.2|2.5.15|2020.3|
266-
|0.108.0|2.5.15|2020.3|
267-
|0.109.0|2.5.15|2020.3|
268-
|0.110.0|2.5.15|2020.3|
269-
|0.111.0|2.5.15|2020.3|
270-
|0.112.0|2.5.15|2020.3|
271-
|0.113.0|2.5.15|2020.3|
276+
|0.100.0|2.5.16|2020.3|
277+
|0.101.0|2.5.16|2020.3|
278+
|0.102.0|2.5.16|2020.3|
279+
|0.103.2|2.5.16|2020.3|
280+
|0.104.2|2.5.16|2020.3|
281+
|0.105.0|2.5.16|2020.3|
282+
|0.106.0|2.5.16|2020.3|
283+
|0.107.2|2.5.16|2020.3|
284+
|0.108.0|2.5.16|2020.3|
285+
|0.109.0|2.5.16|2020.3|
286+
|0.110.0|2.5.16|2020.3|
287+
|0.111.0|2.5.16|2020.3|
288+
|0.112.0|2.5.16|2021.3|
289+
|0.113.0|2.5.16|2021.3|
272290

273291
`<Project>/Packages/package.json` に以下の記述を行います。
274292

@@ -299,7 +317,7 @@ https://github.com/izayoijiichan/VGO/wiki/How-to-use-UniVRM-and-UniVGO-together
299317
|2022.3.0f1|BRP|UniVGO + UniVRM|[Link](https://github.com/izayoijiichan/univgo2.sample.unity.project/tree/unity2022.3.brp.univrm)|
300318

301319
___
302-
最終更新日:2023年8月18日
320+
最終更新日:2023年8月24日
303321
編集者:十六夜おじいちゃん
304322

305323
*Copyright (C) 2020 Izayoi Jiichan. All Rights Reserved.*

Documentation~/UniVGO/Installation.md

+39-22
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ ___
1414
|Unity 2021.1|OK|OK|OK|OK|unconfirmed|OK|
1515
|Unity 2021.2|OK|OK|OK|OK|unconfirmed|OK|
1616
|Unity 2021.3|OK|OK|OK|OK|unconfirmed|OK|
17-
|Unity 2022.1|OK|OK|unconfirmed|unconfirmed|unconfirmed|OK|
18-
|Unity 2022.2|OK|OK|unconfirmed|unconfirmed|unconfirmed|OK|
19-
|Unity 2022.3|OK|OK|unconfirmed|unconfirmed|unconfirmed|unconfirmed|
20-
|Unity 2023.1|OK|OK|unconfirmed|unconfirmed|unconfirmed|unconfirmed|
17+
|Unity 2022.1|OK|OK|OK|unconfirmed|unconfirmed|OK|
18+
|Unity 2022.2|OK|OK|OK|unconfirmed|unconfirmed|OK|
19+
|Unity 2022.3|OK|OK|OK|unconfirmed|unconfirmed|OK|
20+
|Unity 2023.1|OK|OK|OK|OK|unconfirmed|OK|
2121

2222
As of August of 2023, we are developing and confirming in `Unity 2023.1`, `Windows`, `.NET Standard 2.1` environment.
2323

@@ -44,7 +44,7 @@ This package is required for any Unity version.
4444
|com.izayoi.liltoon.shader.utility|IzayoiJiichan|GitHub||1.4.0|30 May, 2023|
4545
|com.izayoi.unishaders|IzayoiJiichan|GitHub||1.6.1|1 Aug, 2023|
4646
|com.izayoi.vgospringbone|IzayoiJiichan|GitHub||1.1.2|24 Aug, 2022|
47-
|com.izayoi.univgo|IzayoiJiichan|GitHub|VGO 2.5|2.5.15|18 Aug, 2023|
47+
|com.izayoi.univgo|IzayoiJiichan|GitHub|VGO 2.5|2.5.16|24 Aug, 2023|
4848

4949
#### Additional Packages
5050

@@ -53,6 +53,7 @@ Add if necessary.
5353
|package name|owner|Repository|specification version|program version|release date|remarks|
5454
|:---|:---:|:---:|:---:|:---:|:---:|:---:|
5555
|jp.lilxyzw.liltoon|lilxyzw|GitHub||1.4.0|12 May, 2023||
56+
|org.nuget.sixlabors.imagesharp|SixLabors|Unity NuGet||2.1.5|14 Aug, 2023|for WebP|
5657
|com.unity.render-pipelines.universal|Unity Technologies|Unity Registry||14.0.0|17 Nov, 2021|URP only|
5758
|com.unity.render-pipelines.high-definition|Unity Technologies|Unity Registry||14.0.0|17 Nov, 2021|HDRP only|
5859

@@ -141,7 +142,7 @@ To use UniVGO, add the following settings.
141142
"dependencies": {
142143
"com.izayoi.liltoon.shader.utility": "https://github.com/izayoijiichan/lilToonShaderUtility.git#v1.4.0",
143144
"com.izayoi.unishaders": "https://github.com/izayoijiichan/UniShaders.git#v1.6.1",
144-
"com.izayoi.univgo": "https://github.com/izayoijiican/VGO.git#v2.5.15",
145+
"com.izayoi.univgo": "https://github.com/izayoijiican/VGO.git#v2.5.16",
145146
"com.izayoi.vgospringbone": "https://github.com/izayoijiichan/VgoSpringBone.git#v1.1.2",
146147
"com.unity.nuget.newtonsoft-json": "3.2.1",
147148
"com.unity.ugui": "1.0.0",
@@ -161,6 +162,22 @@ If you want to use lilToon, append the line "jp.lilxyzw.liltoon".
161162
}
162163
}
163164
```
165+
If you are using Unity 2021.2 or higher and you want to use WebP, append the line "org.nuget.sixlabors.imagesharp".
166+
167+
```json
168+
{
169+
"scopedRegistries": [
170+
{
171+
"name": "Unity NuGet",
172+
"url": "https://unitynuget-registry.azurewebsites.net",
173+
"scopes": ["org.nuget"]
174+
}
175+
],
176+
"dependencies": {
177+
"org.nuget.sixlabors.imagesharp": "2.1.5",
178+
}
179+
}
180+
```
164181

165182
If you want to use URP, append the line "com.unity.render-pipelines.universal".
166183

@@ -208,7 +225,7 @@ Possible causes of the error are as follows.
208225
- `asmdef` settings have been changed
209226
- `asmdef.meta` settings have been changed
210227
- The `.meta` guid of the component has changed
211-
- `System.Buffers.dll`, `System.Memory.dll`, `System.Numerics.Vectors.dll`, `System.Runtime.CompilerServices.Unsage.dll` is duplicated.
228+
- `System.Buffers.dll`, `System.Memory.dll`, `System.Numerics.Vectors.dll` is duplicated.
212229
- `NewtonSoft.Json.dll` is duplicated.
213230
- Not getting `LFS` data from GitHub.
214231

@@ -253,20 +270,20 @@ The version combinations are as follows.
253270

254271
|UniVRM|UniVGO|min Unity|
255272
|:---:|:---:|:---:|
256-
|0.100.0|2.5.15|2020.3|
257-
|0.101.0|2.5.15|2020.3|
258-
|0.102.0|2.5.15|2020.3|
259-
|0.103.2|2.5.15|2020.3|
260-
|0.104.2|2.5.15|2020.3|
261-
|0.105.0|2.5.15|2020.3|
262-
|0.106.0|2.5.15|2020.3|
263-
|0.107.2|2.5.15|2020.3|
264-
|0.108.0|2.5.15|2020.3|
265-
|0.109.0|2.5.15|2020.3|
266-
|0.110.0|2.5.15|2020.3|
267-
|0.111.0|2.5.15|2020.3|
268-
|0.112.0|2.5.15|2020.3|
269-
|0.113.0|2.5.15|2020.3|
273+
|0.100.0|2.5.16|2020.3|
274+
|0.101.0|2.5.16|2020.3|
275+
|0.102.0|2.5.16|2020.3|
276+
|0.103.2|2.5.16|2020.3|
277+
|0.104.2|2.5.16|2020.3|
278+
|0.105.0|2.5.16|2020.3|
279+
|0.106.0|2.5.16|2020.3|
280+
|0.107.2|2.5.16|2020.3|
281+
|0.108.0|2.5.16|2020.3|
282+
|0.109.0|2.5.16|2020.3|
283+
|0.110.0|2.5.16|2020.3|
284+
|0.111.0|2.5.16|2020.3|
285+
|0.112.0|2.5.16|2021.3|
286+
|0.113.0|2.5.16|2021.3|
270287

271288
Write the following in `<Project> /Packages/package.json`.
272289

@@ -296,7 +313,7 @@ https://github.com/izayoijiichan/VGO/wiki/How-to-use-UniVRM-and-UniVGO-together
296313
|2022.3.0f1|BRP|UniVGO + UniVRM|[Link](https://github.com/izayoijiichan/univgo2.sample.unity.project/tree/unity2022.3.brp.univrm)|
297314

298315
___
299-
Last updated: 18 August, 2023
316+
Last updated: 24 August, 2023
300317
Editor: Izayoi Jiichan
301318

302319
*Copyright (C) 2020 Izayoi Jiichan. All Rights Reserved.*

README.ja.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ VGOとは、新しい形の3Dデータフォーマットです。
2525
- glTFとの直接の互換性はありません。
2626
- Unity Editorへデータを展開することで glTF を含む他の形式への変換は可能です。
2727

28+
## 実験
29+
30+
- テクスチャー内のイメージ タイプ (メディア タイプ / MIME タイプ) として、通常の`PNG``JPEG`に加えて`WebP`形式をサポートします。
31+
2832
## 翻訳
2933

3034
[English](https://github.com/izayoijiichan/VGO/blob/main/README.md).
@@ -83,7 +87,7 @@ VGOファイルをアセット内に配置するだけで簡単に取り込み
8387
[Wiki](https://github.com/izayoijiichan/VGO/wiki)
8488

8589
___
86-
最終更新日:2023年8月18日
90+
最終更新日:2023年8月24日
8791
編集者:十六夜おじいちゃん
8892

8993
*Copyright (C) 2020 Izayoi Jiichan. All Rights Reserved.*

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ VGO is a new type of 3D data format.
2525
- There is no direct compatibility with glTF.
2626
- It is possible to convert to other formats including glTF by expanding the data in Unity Editor.
2727

28+
## Experiments
29+
30+
- Supports `WebP` format in addition to normal `PNG`, `JPEG` for image type (media type / MIME type) in textures.
31+
2832
## Translation
2933

3034
[Japanese](https://github.com/izayoijiichan/VGO/blob/main/README.ja.md).
@@ -83,7 +87,7 @@ You can easily run-time load a VGO file by writing a few scripts.
8387
[Wiki](https://github.com/izayoijiichan/VGO/wiki)
8488

8589
___
86-
Last updated: 18 August, 2023
90+
Last updated: 24 August, 2023
8791
Editor: Izayoi Jiichan
8892

8993
*Copyright (C) 2020 Izayoi Jiichan. All Rights Reserved.*

0 commit comments

Comments
 (0)