Skip to content

Commit 6580959

Browse files
Merge pull request #45 from Live2D/develop
Update to Cubism 5 SDK for Native R1
2 parents c816f24 + 7671506 commit 6580959

115 files changed

Lines changed: 1332 additions & 915 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,32 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
66

77

8+
## [5-r.1] - 2024-03-26
9+
10+
### Added
11+
12+
* Add x86_64 architecture to target platforms in Android.
13+
14+
### Changed
15+
16+
* Rename "rootDirectory" to "executeAbsolutePath".
17+
* The log function was changed because it was ambiguous whether or not a newline was inserted.
18+
* Change so that `LAppSprite` is not depend on `LAppDelegate` in D3D11 and D3D9, Metal, Vulkan.
19+
* Some function arguments in `LAppSprite` are changed in D3D11 and D3D9, Metal, Vulkan.
20+
21+
### Fixed
22+
23+
* Fixed undefined behavior and memory leak in `LAppPal`.
24+
* Modify code to more closely resemble Java coding style.
25+
* Fix model drawing disappearing when defining `USE_RENDER_TARGET` and `USE_MODEL_RENDER_TARGET`.
26+
* Fix an issue where the OpenGL sample for Visual Studio 2013 was not functioning correctly.
27+
* Fix shader build error when running nmake in Vulkan.
28+
29+
### Removed
30+
31+
* Remove unnecessary pre-API 21 processing.
32+
33+
834
## [5-r.1-beta.4] - 2024-01-25
935

1036
### Added
@@ -32,6 +58,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
3258
* Fix an issue that caused incorrect selection of depth format in Vulkan.
3359
* Fix errors that occurs when building with x86 in vulkan.
3460

61+
3562
## [5-r.1-beta.3] - 2023-10-12
3663

3764
### Added
@@ -380,6 +407,7 @@ See [Core Changelog] for details.
380407
* What was `Package.json` is currently being changed to`cubism-info.yml`.
381408

382409

410+
[5-r.1]: https://github.com/Live2D/CubismNativeSamples/compare/5-r.1-beta.4...5-r.1
383411
[5-r.1-beta.4]: https://github.com/Live2D/CubismNativeSamples/compare/5-r.1-beta.3...5-r.1-beta.4
384412
[5-r.1-beta.3]: https://github.com/Live2D/CubismNativeSamples/compare/5-r.1-beta.2...5-r.1-beta.3
385413
[5-r.1-beta.2]: https://github.com/Live2D/CubismNativeSamples/compare/5-r.1-beta.1...5-r.1-beta.2

Core/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
66

77

8+
## 2024-03-26
9+
10+
### Remove
11+
12+
* [Unity] Remove built with Emscripten 1.38.48.
13+
* Unity 2021.2 or later uses only Core under `Assets/Live2D/Cubism/Plugins/Experimental/Emscripten/latest`.
14+
15+
816
## 2023-09-28
917

1018
### Remove

NOTICE.ja.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,27 @@
44

55
# お知らせ
66

7+
## [注意事項] Apple社のPrivacy Manifest Policy対応について
8+
9+
Apple社が対応を必要としているPrivacy Manifest Policyについて、本製品では指定されているAPI及びサードパーティ製品を使用しておりません。
10+
もし本製品で対応が必要と判断した場合、今後のアップデートにて順次対応する予定です。
11+
詳しくはApple社が公開しているドキュメントをご確認ください。
12+
13+
* [Privacy updates for App Store submissions](https://developer.apple.com/news/?id=3d8a9yyh)
14+
15+
16+
## [注意事項] Linux OpenGL環境でのWaylandのサポートについて (2024-03-26)
17+
18+
本製品がLinux OpenGL環境で利用している `GLFW 3.4` が、Wayland向けにコンパイルできるようになりました。
19+
しかし、 `GLEW 2.2.0` では現在Wayland(EGL)向けのコンパイルを行うと `glewInit` が正常に動作しない状態であるため、本サンプルはWaylandに対応しておりません。
20+
21+
Linux OpenGL環境をご利用の方は、引き続き通常通りX11向けビルドをご利用ください。
22+
23+
詳しくは以下のissueを参照ください。
24+
25+
* [GLEW issue](https://github.com/nigels-com/glew/issues/172)
26+
27+
728
## [注意事項] Metal の Mac Catalyst のビルドエラーについて (2024-01-25)
829

930
MetalのMac Catalystのビルド時にエラーが発生する場合がございます。

NOTICE.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,27 @@
44

55
# Notices
66

7+
## [Caution] Support for Apple's Privacy Manifest Policy
8+
9+
This product does not use the APIs or third-party products specified in Apple's privacy manifest policy.
10+
This will be addressed in future updates if this product requires such support.
11+
Please check the documentation published by Apple for details.
12+
13+
* [Privacy updates for App Store submissions](https://developer.apple.com/news/?id=3d8a9yyh)
14+
15+
16+
## [Caution] Support for Wayland in Linux OpenGL Environment (2024-03-26)
17+
18+
`GLFW 3.4`, which this product uses in the Linux OpenGL environment, can now be compiled for Wayland.
19+
However, this sample is not compatible with Wayland because `glewInit` is currently not working properly when compiling for Wayland (EGL) in `GLEW 2.2.0`.
20+
21+
If you are using the Linux OpenGL environment, please continue to use the X11 build as usual.
22+
23+
Please refer to the issue below for details.
24+
25+
* [GLEW issue](https://github.com/nigels-com/glew/issues/172)
26+
27+
728
## [Caution] Mac Catalyst build error for Metal (2024-01-25)
829

930
There is an error when building Mac Catalyst for Metal.

README.ja.md

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -100,27 +100,31 @@ Demo
100100

101101
## 変更履歴
102102

103-
当リポジトリの変更履歴については [CHANGELOG.md](CHANGELOG.md) を参照ください。
103+
Samples : [CHANGELOG.md](CHANGELOG.md)
104+
105+
Framework : [CHANGELOG.md](Framework/CHANGELOG.md)
106+
107+
Core : [CHANGELOG.md](Core/CHANGELOG.md)
104108

105109

106110
## 開発環境
107111

108112
| 開発ツール | バージョン |
109113
| --- | --- |
110-
| Android Studio | Hedgehog 2023.1.1 |
111-
| CMake | 3.28.1 |
114+
| Android Studio | Iguana 2023.2.1 |
115+
| CMake | 3.28.3 |
112116
| Visual Studio 2013 | Update 5 |
113117
| Visual Studio 2015 | Update 3 |
114-
| Visual Studio 2017 | 15.9.59 |
115-
| Visual Studio 2019 | 16.11.33 |
116-
| Visual Studio 2022 | 17.8.4 |
117-
| Xcode | 15.1 |
118+
| Visual Studio 2017 | 15.9.60 |
119+
| Visual Studio 2019 | 16.11.34 |
120+
| Visual Studio 2022 | 17.9.4 |
121+
| Xcode | 15.3 |
118122

119123
### Android
120124

121125
| Android SDK tools | バージョン |
122126
| --- | --- |
123-
| Android NDK | 25.2.9519653 |
127+
| Android NDK | 26.2.11394342 |
124128
| Android SDK | 34.0.0 |
125129
| CMake | 3.22.1 |
126130

@@ -131,9 +135,10 @@ Demo
131135
| Red Hat | Amazon Linux 2 | `amazonlinux:2` | 7.3.1 |
132136
| Red Hat | CentOS 7 | `centos:7` | 4.8.5 |
133137
| Red Hat | CentOS Stream 8 *1 | `centos:latest` | 8.5.0 |
134-
| Red Hat | CentOS Stream 9 | - | 11.3.1 |
138+
| Red Hat | CentOS Stream 9 | - | 12.2.1 |
139+
| Red Hat | AlmaLinux | `almalinux:latest` | 11.4.1 |
135140
| Debian | Ubuntu 18.04 | `ubuntu:18.04` | 7.5.0 |
136-
| Debian | Ubuntu 22.04.3 | `ubuntu:22.04.3` | 11.3.0 |
141+
| Debian | Ubuntu 22.04.4 | `ubuntu:22.04` | 11.4.0 |
137142

138143
*1 CentOS 8はサポートしておりません
139144

@@ -151,8 +156,8 @@ Demo
151156

152157
| プラットフォーム | バージョン |
153158
| --- | --- |
154-
| iOS / iPadOS | 16.6.1 |
155-
| macOS | 14.1.1 |
159+
| iOS / iPadOS | 17.4 |
160+
| macOS | 14.4 |
156161
| Windows 10 | 22H2 |
157162
| Windows 11 | 22H2 |
158163

@@ -168,17 +173,16 @@ Demo
168173
| 系統 | ディストリビューション | バージョン |
169174
| --- | --- | --- |
170175
| Red Hat | Amazon Linux | 2 |
171-
| Red Hat | CentOS Stream | 8 |
172-
| Red Hat | CentOS Stream | 9 |
173-
| Debian | Ubuntu | 22.04.3 |
176+
| Red Hat | AlmaLinux | 9 |
177+
| Debian | Ubuntu | 22.04.4 |
174178

175179
## プロジェクトへの貢献
176180

177181
プロジェクトに貢献する方法はたくさんあります。バグのログの記録、このGitHubでのプルリクエストの送信、Live2Dコミュニティでの問題の報告と提案の作成です。
178182

179183
### フォークとプルリクエスト
180184

181-
修正、改善、さらには新機能をもたらすかどうかにかかわらず、プルリクエストに感謝します。ただし、ラッパーは可能な限り軽量で浅くなるように設計されているため、バグ修正とメモリ/パフォーマンスの改善のみを行う必要があることに注意してください。メインリポジトリを可能な限りクリーンに保つために、必要に応じて個人用フォークと機能ブランチを作成してください。
185+
修正、改善、さらには新機能をもたらすかどうかにかかわらず、プルリクエストに感謝します。メインリポジトリを可能な限りクリーンに保つために、必要に応じて個人用フォークと機能ブランチを作成してください。
182186

183187
### バグ
184188

README.md

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -99,27 +99,31 @@ Please refer to 'LAppLive2DManager.cpp' in the sample directory for details.
9999

100100
## Changelog
101101

102-
Please refer to [CHANGELOG.md](CHANGELOG.md) for the changelog of this repository.
102+
Samples : [CHANGELOG.md](CHANGELOG.md)
103+
104+
Framework : [CHANGELOG.md](Framework/CHANGELOG.md)
105+
106+
Core : [CHANGELOG.md](Core/CHANGELOG.md)
103107

104108

105109
## Development environment
106110

107111
| Development Tool | Version |
108112
| --- | --- |
109-
| Android Studio | Hedgehog 2023.1.1 |
110-
| CMake | 3.28.1 |
113+
| Android Studio | Iguana 2023.2.1 |
114+
| CMake | 3.28.3 |
111115
| Visual Studio 2013 | Update 5 |
112116
| Visual Studio 2015 | Update 3 |
113-
| Visual Studio 2017 | 15.9.59 |
114-
| Visual Studio 2019 | 16.11.33 |
115-
| Visual Studio 2022 | 17.8.4 |
116-
| Xcode | 15.1 |
117+
| Visual Studio 2017 | 15.9.60 |
118+
| Visual Studio 2019 | 16.11.34 |
119+
| Visual Studio 2022 | 17.9.4 |
120+
| Xcode | 15.3 |
117121

118122
### Android
119123

120124
| Android SDK tools | Version |
121125
| --- | --- |
122-
| Android NDK | 25.2.9519653 |
126+
| Android NDK | 26.2.11394342 |
123127
| Android SDK | 34.0.0 |
124128
| CMake | 3.22.1 |
125129

@@ -130,9 +134,10 @@ Please refer to [CHANGELOG.md](CHANGELOG.md) for the changelog of this repositor
130134
| Red Hat | Amazon Linux 2 | `amazonlinux:2` | 7.3.1 |
131135
| Red Hat | CentOS 7 | `centos:7` | 4.8.5 |
132136
| Red Hat | CentOS Stream 8 *1 | `centos:latest` | 8.5.0 |
133-
| Red Hat | CentOS Stream 9 | - | 11.3.1 |
137+
| Red Hat | CentOS Stream 9 | - | 12.2.1 |
138+
| Red Hat | AlmaLinux | `almalinux:latest` | 11.4.1 |
134139
| Debian | Ubuntu 18.04 | `ubuntu:18.04` | 7.5.0 |
135-
| Debian | Ubuntu 22.04.3 | `ubuntu:22.04.3` | 11.3.0 |
140+
| Debian | Ubuntu 22.04.4 | `ubuntu:22.04` | 11.4.0 |
136141

137142
*1 CentOS 8 is not supported
138143

@@ -150,8 +155,8 @@ Please refer to [CHANGELOG.md](CHANGELOG.md) for the changelog of this repositor
150155

151156
| Platform | Version |
152157
| --- | --- |
153-
| iOS / iPadOS | 16.6.1 |
154-
| macOS | 14.1.1 |
158+
| iOS / iPadOS | 17.4 |
159+
| macOS | 14.4 |
155160
| Windows 10 | 22H2 |
156161
| Windows 11 | 22H2 |
157162

@@ -167,17 +172,16 @@ Please refer to [CHANGELOG.md](CHANGELOG.md) for the changelog of this repositor
167172
| System | Distribution | Version |
168173
| --- | --- | --- |
169174
| Red Hat | Amazon Linux | 2 |
170-
| Red Hat | CentOS Stream | 8 |
171-
| Red Hat | CentOS Stream | 9 |
172-
| Debian | Ubuntu | 22.04.3 |
175+
| Red Hat | AlmaLinux | 9 |
176+
| Debian | Ubuntu | 22.04.4 |
173177

174178
## Contributing
175179

176180
There are many ways to contribute to the project: logging bugs, submitting pull requests on this GitHub, and reporting issues and making suggestions in Live2D Community.
177181

178182
### Forking And Pull Requests
179183

180-
We very much appreciate your pull requests, whether they bring fixes, improvements, or even new features. Note, however, that the wrapper is designed to be as lightweight and shallow as possible and should therefore only be subject to bug fixes and memory/performance improvements. To keep the main repository as clean as possible, create a personal fork and feature branches there as needed.
184+
We very much appreciate your pull requests, whether they bring fixes, improvements, or even new features. To keep the main repository as clean as possible, create a personal fork and feature branches there as needed.
181185

182186
### Bugs
183187

Samples/Cocos2d-x/Demo/Classes/AppDelegate.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ bool AppDelegate::applicationDidFinishLaunching()
107107
register_all_packages();
108108

109109
// prepare for Cubism Framework API.
110-
_cubismOption.LogFunction = LAppPal::PrintMessage;
110+
_cubismOption.LogFunction = LAppPal::PrintMessageLn;
111111
_cubismOption.LoggingLevel = LAppDefine::CubismLoggingLevel;
112112
Csm::CubismFramework::StartUp(&_cubismAllocator, &_cubismOption);
113113

Samples/Cocos2d-x/Demo/Classes/LAppLive2DManager.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ namespace {
4141

4242
void FinishedMotion(ACubismMotion* self)
4343
{
44-
LAppPal::PrintLog("Motion Finished: %x", self);
44+
LAppPal::PrintLogLn("Motion Finished: %x", self);
4545
}
4646

4747
int CompareCsmString(const void* a, const void* b)
@@ -188,18 +188,18 @@ void LAppLive2DManager::OnDrag(csmFloat32 x, csmFloat32 y) const
188188

189189
void LAppLive2DManager::OnTap(csmFloat32 x, csmFloat32 y)
190190
{
191-
if (DebugLogEnable) LAppPal::PrintLog("[APP]tap point: {x:%.2f y:%.2f}", x, y);
191+
if (DebugLogEnable) LAppPal::PrintLogLn("[APP]tap point: {x:%.2f y:%.2f}", x, y);
192192

193193
for (csmUint32 i = 0; i < _models.GetSize(); i++)
194194
{
195195
if (_models[i]->HitTest(HitAreaNameHead, x, y))
196196
{
197-
if (DebugLogEnable) LAppPal::PrintLog("[APP]hit area: [%s]", HitAreaNameHead);
197+
if (DebugLogEnable) LAppPal::PrintLogLn("[APP]hit area: [%s]", HitAreaNameHead);
198198
_models[i]->SetRandomExpression();
199199
}
200200
else if (_models[i]->HitTest(HitAreaNameBody, x, y))
201201
{
202-
if (DebugLogEnable) LAppPal::PrintLog("[APP]hit area: [%s]", HitAreaNameBody);
202+
if (DebugLogEnable) LAppPal::PrintLogLn("[APP]hit area: [%s]", HitAreaNameBody);
203203
_models[i]->StartRandomMotion(MotionGroupTapBody, PriorityNormal, FinishedMotion);
204204
}
205205
}
@@ -219,7 +219,7 @@ void LAppLive2DManager::OnUpdate(Csm::Rendering::CubismCommandBuffer_Cocos2dx* c
219219

220220
if (model->GetModel() == NULL)
221221
{
222-
LAppPal::PrintLog("Failed to model->GetModel().");
222+
LAppPal::PrintLogLn("Failed to model->GetModel().");
223223
continue;
224224
}
225225

@@ -294,7 +294,7 @@ void LAppLive2DManager::NextScene()
294294
void LAppLive2DManager::ChangeScene(Csm::csmInt32 index)
295295
{
296296
_sceneIndex = index;
297-
if (DebugLogEnable) LAppPal::PrintLog("[APP]model index: %d", _sceneIndex);
297+
if (DebugLogEnable) LAppPal::PrintLogLn("[APP]model index: %d", _sceneIndex);
298298

299299
// ModelDir[]に保持したディレクトリ名から
300300
// model3.jsonのパスを決定する.

0 commit comments

Comments
 (0)