Skip to content

Commit 979f025

Browse files
Merge pull request #47 from Live2D/develop
Update to Cubism 5 SDK for Native R2
2 parents 6580959 + add1968 commit 979f025

438 files changed

Lines changed: 16084 additions & 8464 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.

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,6 @@ charset = unset
2525

2626
[*.md]
2727
trim_trailing_whitespace = false
28+
29+
[*.{cpp,hpp,h}]
30+
charset = utf-8-bom

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
# Sample build directories
1010
/Samples/**/build/
11+
# HarmonyOS files
12+
Samples/OpenGL/Demo/proj.harmonyos.cmake/Full/entry/src/main/resources/rawfile/
1113
# Sample third party files
1214
/Samples/**/thirdParty/*
1315
!/Samples/**/thirdParty/scripts/*

CHANGELOG.md

Lines changed: 56 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,59 @@ 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.2] - 2024-12-19
9+
10+
### Added
11+
12+
* Add Vulkan support in Ubuntu 22.04 and AlmaLinux 9.
13+
* Add a function to notify when motion playback starts.
14+
* Add shader setup classes for D3D9, D3D11, OpenGL, Vulkan.
15+
* Add the sample for OpenGL API in HarmonyOS.
16+
17+
### Changed
18+
19+
* Change to overwrite motion fade by the value specified in .model3.json on Framework.
20+
* Change to use multi-buffering in Vulkan.
21+
* Change the screen orientation and rotation direction to be unified across Android, iPhone, and iPad.
22+
* Change specify the NDK version of the Android sample.
23+
* Change to read shader source codes from files.
24+
* Change the compile and target SDK version of Android OS to 15.0 (API 35).
25+
* Upgrade the version of Android Gradle Plugin from 8.1.1 to 8.6.1.
26+
* Upgrade the version of Gradle from 8.2 to 8.7.
27+
* Upgrade the version of NDK from 25.2.9519653 to 26.3.11579264.
28+
* Change the minimum version of Android Studio to Ladybug(2024.2.1 Patch 2).
29+
* Change the minimum support version of Java to 8.
30+
* Change the function for playing back expression motions from CubismExpressionMotionManager::StartMotionPriority() to CubismExpressionMotionManager::StartMotion().
31+
* Change to use GLSurfaceView event queues to handle touch events.
32+
33+
### Fixed
34+
35+
* Fix memory leak in Vulkan.
36+
* Fixed drawing failure when enabling `USE_RENDER_TARGET` macros in Vulkan samples.
37+
* Fix memory leak when exit in D3D9 and D3D11.
38+
* Fix exit error in Vulkan.
39+
* Fix the processing of anisotropy filtering in Vulkan to match that of other renderers.
40+
* Fix an issue on Windows where an error would occur if the model name contained certain characters.
41+
* Implement support for `MSVC19.40` in the VS2022 build. by [@tatsuya-shiozawa](https://github.com/Live2D/CubismNativeSamples/pull/46)
42+
* Fix an issue where a compile error occurred due to missing includes in the OpenGL iOS minimum sample.
43+
* Fix an issue in the Android sample where the model display would reset after performing certain operations.
44+
* Fix a memory leak in the compilation process of shader strings in OpenGL.
45+
* Fix an issue that could cause drawing errors when the application is restored from the background.
46+
* Fix an issue in the OpenGL sample where the textures are not released.
47+
* Fix a warning due to the initial value of programId being NULL.
48+
* Fix an issue that caused white edge-like objects to be drawn when enabling the `USE_RENDER_TARGET` or `USE_MODEL_RENDER_TARGET` flag in `LAppLive2DManager`.
49+
* Fix an issue causing a decrease in rendering resolution when using render targets in the Metal sample project.
50+
* Fix an issue where rendering would break when using the iPad with `USE_RENDER_TARGET` or `USE_MODEL_RENDER_TARGET` defined in OpenGL samples.
51+
52+
### Removed
53+
54+
* Remove Visual Studio 2013 samples.
55+
* Remove armeabi-v7a from architecture support.
56+
* Remove the Cocos2d-x sample project.
57+
* Remove the callback what motion playback finishes on the minimum sample.
58+
* Remove unnecessary declarations in the OpenGL Android sample.
59+
60+
861
## [5-r.1] - 2024-03-26
962

1063
### Added
@@ -17,6 +70,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
1770
* The log function was changed because it was ambiguous whether or not a newline was inserted.
1871
* Change so that `LAppSprite` is not depend on `LAppDelegate` in D3D11 and D3D9, Metal, Vulkan.
1972
* Some function arguments in `LAppSprite` are changed in D3D11 and D3D9, Metal, Vulkan.
73+
* Change to read shader source codes from files.
2074

2175
### Fixed
2276

@@ -43,7 +97,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
4397
* Change so that `LAppSprite` is not depend on `LAppDelegate` in Android.
4498
* Change so that `ViewController` is not include on `LAppSprite` in iOS.
4599
* Change the path acquisition process to a library function on OpenGL Mac and Linux.
46-
* Change the compile and target SDK version of Android OS to 14.0 (API 34).
100+
* Change the compile and target SDK version of Android OS to 14.0 (API 34).
47101
* Upgrade the version of Android Gradle Plugin from 8.0.2 to 8.1.1.
48102
* Upgrade the version of Gradle from 8.1.1 to 8.2.
49103
* Change the minimum version of Android Studio to Hedgehog(2023.1.1).
@@ -407,6 +461,7 @@ See [Core Changelog] for details.
407461
* What was `Package.json` is currently being changed to`cubism-info.yml`.
408462

409463

464+
[5-r.2]: https://github.com/Live2D/CubismNativeSamples/compare/5-r.1...5-r.2
410465
[5-r.1]: https://github.com/Live2D/CubismNativeSamples/compare/5-r.1-beta.4...5-r.1
411466
[5-r.1-beta.4]: https://github.com/Live2D/CubismNativeSamples/compare/5-r.1-beta.3...5-r.1-beta.4
412467
[5-r.1-beta.3]: https://github.com/Live2D/CubismNativeSamples/compare/5-r.1-beta.2...5-r.1-beta.3

Core/CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,31 @@ 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-12-19
9+
10+
### Removed
11+
12+
* [Native] Remove Visual Studio 2013 (MSVC 120) static library.
13+
14+
15+
## 2024-11-07
16+
17+
### Added
18+
19+
* [Native] Add experimental support `arm64` library for linux.
20+
21+
### Removed
22+
23+
* [Unity,Native,Java] Remove Android ARM v7 library.
24+
25+
26+
## 2024-04-04
27+
28+
### Added
29+
30+
* [Unity] Add library(.so) for HarmonyOS build.
31+
32+
833
## 2024-03-26
934

1035
### Remove

Core/README.ja.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ Core
2929
| プラットフォーム | アーキテクチャ | dll | lib | パス | 注記 |
3030
| --- | --- | --- | --- | --- | --- |
3131
| Android | ARM64 ||| android/arm64-v8a | |
32-
| Android | ARMv7 ||| android/armeabi-v7a | このライブラリは現在非推奨で、近日中に削除される予定です。 |
3332
| Android | x86 ||| android/x86 | |
3433
| Android | x86_64 ||| android/x86_64 | |
3534
| iOS | ARM64 | || ios/xxx-iphoneos | iOSデバイス |
3635
| iOS | x86_64 | || ios/xxx-iphonesimulator | iOS Simulator |
3736
| Linux | x86_64 ||| linux/x86_64 | |
37+
| Linux | ARM64 ||| experimental/linux/ARM64 | |
3838
| macOS | ARM64 ||| macos/arm64 | |
3939
| macOS | x86_64 ||| macos/x86_64 | |
4040
| Mac Catalyst | ARM64 | || experimental/catalyst | Universal Binary |
@@ -59,7 +59,6 @@ Core
5959

6060
| VC++バージョン | Visual Studioバージョン |
6161
| ---: | --- |
62-
| 120 | Visual Studio 2013 |
6362
| 140 | Visual Studio 2015 |
6463
| 141 | Visual Studio 2017 |
6564
| 142 | Visual Studio 2019 |

Core/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ Core
3131
| Platform | Architecture | dll | lib | Path | Note |
3232
| --- | --- | --- | --- | --- | --- |
3333
| Android | ARM64 ||| android/arm64-v8a | |
34-
| Android | ARMv7 ||| android/armeabi-v7a | This library is currently deprecated and will be removed in the near future. |
3534
| Android | x86 ||| android/x86 | |
3635
| Android | x86_64 ||| android/x86_64 | |
3736
| iOS | ARM64 | || ios/xxx-iphoneos | iOS Devices |
3837
| iOS | x86_64 | || ios/xxx-iphonesimulator | iOS Simulator |
3938
| Linux | x86_64 ||| linux/x86_64 | |
39+
| Linux | ARM64 ||| experimental/linux/ARM64 | |
4040
| macOS | ARM64 ||| macos/arm64 | |
4141
| macOS | x86_64 ||| macos/x86_64 | |
4242
| Mac Catalyst | ARM64 | || experimental/catalyst | Universal Binary |
@@ -61,7 +61,6 @@ Below is the Visual Studio version for the VC++ version.
6161

6262
| VC++ version | Visual Studio version |
6363
| ---: | --- |
64-
| 120 | Visual Studio 2013 |
6564
| 140 | Visual Studio 2015 |
6665
| 141 | Visual Studio 2017 |
6766
| 142 | Visual Studio 2019 |

Core/RedistributableFiles.txt

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ The following is a list of files available for redistribution
22
under the terms of the Live2D Proprietary Software License Agreement:
33

44
- dll/android/arm64-v8a/libLive2DCubismCore.so
5-
- dll/android/armeabi-v7a/libLive2DCubismCore.so
65
- dll/android/x86/libLive2DCubismCore.so
76
- dll/android/x86_64/libLive2DCubismCore.so
87
- dll/experimental/rpi/libLive2DCubismCore.so
@@ -11,14 +10,14 @@ under the terms of the Live2D Proprietary Software License Agreement:
1110
- dll/experimental/uwp/x64/Live2DCubismCore.dll
1211
- dll/experimental/uwp/x86/Live2DCubismCore.dll
1312
- dll/linux/x86_64/libLive2DCubismCore.so
13+
- dll/experimental/linux/arm64/libLive2DCubismCore.so
1414
- dll/macos/Live2DCubismCore.bundle
1515
- dll/macos/libLive2DCubismCore.dylib
1616
- dll/windows/x86/Live2DCubismCore.dll
1717
- dll/windows/x86/Live2DCubismCore.lib
1818
- dll/windows/x86_64/Live2DCubismCore.dll
1919
- dll/windows/x86_64/Live2DCubismCore.lib
2020
- lib/android/arm64-v8a/libLive2DCubismCore.a
21-
- lib/android/armeabi-v7a/libLive2DCubismCore.a
2221
- lib/android/x86/libLive2DCubismCore.a
2322
- lib/android/x86_64/libLive2DCubismCore.so
2423
- lib/experimental/catalyst/libLive2DCubismCore.a
@@ -28,12 +27,9 @@ under the terms of the Live2D Proprietary Software License Agreement:
2827
- lib/ios/Release-iphoneos/libLive2DCubismCore.a
2928
- lib/ios/Release-iphonesimulator/libLive2DCubismCore.a
3029
- lib/linux/x86_64/libLive2DCubismCore.a
30+
- lib/experimental/linux/arm64/libLive2DCubismCore.a
3131
- lib/macos/arm64/libLive2DCubismCore.a
3232
- lib/macos/x86_64/libLive2DCubismCore.a
33-
- lib/windows/x86/120/Live2DCubismCore_MD.lib
34-
- lib/windows/x86/120/Live2DCubismCore_MDd.lib
35-
- lib/windows/x86/120/Live2DCubismCore_MT.lib
36-
- lib/windows/x86/120/Live2DCubismCore_MTd.lib
3733
- lib/windows/x86/140/Live2DCubismCore_MD.lib
3834
- lib/windows/x86/140/Live2DCubismCore_MDd.lib
3935
- lib/windows/x86/140/Live2DCubismCore_MT.lib
@@ -50,10 +46,6 @@ under the terms of the Live2D Proprietary Software License Agreement:
5046
- lib/windows/x86/143/Live2DCubismCore_MDd.lib
5147
- lib/windows/x86/143/Live2DCubismCore_MT.lib
5248
- lib/windows/x86/143/Live2DCubismCore_MTd.lib
53-
- lib/windows/x86_64/120/Live2DCubismCore_MD.lib
54-
- lib/windows/x86_64/120/Live2DCubismCore_MDd.lib
55-
- lib/windows/x86_64/120/Live2DCubismCore_MT.lib
56-
- lib/windows/x86_64/120/Live2DCubismCore_MTd.lib
5749
- lib/windows/x86_64/140/Live2DCubismCore_MD.lib
5850
- lib/windows/x86_64/140/Live2DCubismCore_MDd.lib
5951
- lib/windows/x86_64/140/Live2DCubismCore_MT.lib

Framework

Submodule Framework updated 72 files

NOTICE.ja.md

Lines changed: 8 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44

55
# お知らせ
66

7+
## [注意事項] Cubism SDK for NativeのCocos2d-xサポートについて (2024-12-19)
8+
9+
Cubism SDK for NativeのCocos2d-x対応につきまして、Cubism 5 SDK for Native R2でサポートを終了いたしました。
10+
本件のお問い合わせにつきましては、[お問合せフォーム](<https://www.live2d.jp/contact/>)からご連絡ください。 
11+
12+
713
## [注意事項] Apple社のPrivacy Manifest Policy対応について
814

915
Apple社が対応を必要としているPrivacy Manifest Policyについて、本製品では指定されているAPI及びサードパーティ製品を使用しておりません。
@@ -36,26 +42,9 @@ MetalのMac Catalystのビルド時にエラーが発生する場合がござい
3642
* cmakeを3.27未満のバージョンで使用する
3743

3844

39-
## [注意事項] Cocos2d-xセットアップのエラーについて (2022-03-15)
40-
41-
Cocos2d-xサンプルプロジェクトのセットアップ時に実行するsetup-cocos2dバッチにおいてエラーが発生いたします。
42-
これはGitHubがGitプロトコルセキュリティを改善したことに起因し、GitにてCocos2d-xのsubmodule取得が失敗するためです。
43-
具体的には`git://`経由での接続ができなくなったためエラーが発生しています。
45+
## [注意事項] Metal の macOSサンプルビルドにおけるメモリリークについて (2021-12-09)
4446

45-
詳しくはGitHub公式ブログをご確認ください。
46-
47-
* [GitHub 公式ブログ](https://github.blog/2021-09-01-improving-git-protocol-security-github/)
48-
49-
### 回避方法
50-
51-
* ターミナルもしくはコマンドプロンプトにて以下のコマンドを実行することで、`git://`を用いた接続を`https://`に置き換える
52-
* `git config --global url."https://github.com/".insteadOf git://github.com/`
53-
* このコマンドは実行端末の全ユーザのgitconfigに影響します。ご了承ください。
54-
55-
56-
## [注意事項] Metal及びCocos2d-x v4.0 の macOSサンプルビルドにおけるメモリリークについて (2021-12-09)
57-
58-
Metal及びCocos2d-x v4.0 の macOSサンプルビルドにおいてメモリリークが発生いたします。
47+
Metal の macOSサンプルビルドにおいてメモリリークが発生いたします。
5948
これはMetalフレームワーク内で発生するため、公式の対応をお待ち下さい。
6049
本件のお問い合わせについて弊社ではお答えいたしかねますので、ご了承ください。
6150

@@ -64,35 +53,6 @@ Metal及びCocos2d-x v4.0 の macOSサンプルビルドにおいてメモリリ
6453
* [Apple Developer Forums - Memory leak in MTLCommandBuffer?](https://developer.apple.com/forums/thread/120931)
6554

6655

67-
## [制限事項] Cocos2d-x v4.0 の Linux(Ubuntu)サンプルビルドについて (2021-04-15)
68-
69-
Cocos2d-x v4.0 は `Ubuntu 20.04` ビルドに対応しておりません。
70-
使用する際は以下の回避方法を確認し、いずれかを適用してご利用いただきますようお願いいたします。
71-
72-
### 回避方法
73-
74-
* `Ubuntu 16.04` または `Ubuntu 18.04` を使用する
75-
76-
* 以下issueを確認し、`Cocos2d-x v4.0` で使用されている `libchipmunk` ライブラリを差し替える
77-
* [cocos2d/cocos2d-x linking error when integrating with libchipmunk on linux#20471](https://github.com/cocos2d/cocos2d-x/issues/20471)
78-
* WARNING: この回避方法を使用してビルドしたプロジェクトはいかなる場合でも保守いたしかねます
79-
80-
81-
## [注意事項] Visual Studio 2013 ご利用時の OpenGL サンプルビルドについて (2021-02-17)
82-
83-
`Visual Studio 2013` を使用した `OpenGL` サンプルビルドでは、`setup_glew_glfw.bat` をそのまま使用してビルドすると `GLEW` にてリンクエラーが発生します。
84-
以下回避方法を確認し、ご利用いただきますようお願いいたします。
85-
86-
### 回避方法
87-
88-
* `GLEW 2.2.0` を使用する場合
89-
* `glew` プロジェクトから `libvcruntime.lib` の参照を削除する
90-
* `Visual Studio 2013` 以降の Visual Studio を使用する
91-
92-
* `GLEW 2.1.0` を使用する場合
93-
* `setup_glew_glfw_vs2013.bat` を使用して `thirdParty` のセットアップを行う
94-
95-
9656
## Cubism Core
9757

9858
### [注意事項] macOS Catalina 以降のバージョンでの `.bundle``.dylib` の利用について

NOTICE.md

Lines changed: 8 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44

55
# Notices
66

7+
## [Caution] Regarding Cubism SDK for Native Cocos2d-x Support (2024-12-19)
8+
9+
Support for Cocos2d-x in the Cubism SDK for Native has been discontinued starting with Cubism 5 SDK for Native R2.
10+
For any inquiries regarding this matter, please contact us through the [contact form]](<https://www.live2d.jp/contact/>).
11+
12+
713
## [Caution] Support for Apple's Privacy Manifest Policy
814

915
This product does not use the APIs or third-party products specified in Apple's privacy manifest policy.
@@ -36,26 +42,9 @@ We will continue to investigate the details.
3642
* Use cmake with versions less than 3.27
3743

3844

39-
## [Caution] About Cocos2d-x setup error (2022-03-15)
40-
41-
An error occurs in the setup-cocos2d batch that is executed when setting up the Cocos2d-x sample project.
42-
This is because GitHub has improved the security of the Git protocol, and Git fails to get the Cocos2d-x submodule.
43-
Specifically, an error has occurred because the connection via `git://` is no longer possible.
45+
## [Caution] Memory leak in macOS sample builds of Metal (2021-12-09)
4446

45-
Please check the official GitHub blog for details.
46-
47-
* [GitHub Official Blog](https://github.blog/2021-09-01-improving-git-protocol-security-github/)
48-
49-
### Workaround
50-
51-
* Replace the connection using `git://` with `https://` by executing the following command in the terminal or command prompt.
52-
* `git config --global url."https://github.com/".insteadOf git://github.com/`
53-
* Please note that this command affects gitconfig for all users of the execution terminal.
54-
55-
56-
## [Caution] Memory leak in macOS sample builds of Metal and Cocos2d-x v4.0 (2021-12-09)
57-
58-
A memory leak occurs in the macOS sample builds of Metal and Cocos2d-x v4.0.
47+
A memory leak occurs in the macOS sample builds of Metal.
5948
This happens within the Metal framework, so please wait for official support.
6049
Note that we cannot answer inquiries regarding this matter.
6150

@@ -64,35 +53,6 @@ Please check the Apple Developer Forums for more information.
6453
* [Apple Developer Forums - Memory leak in MTLCommandBuffer?](https://developer.apple.com/forums/thread/120931)
6554

6655

67-
## [Limitation] About the Linux (Ubuntu) sample builds of Cocos2d-x v4.0 (2021-04-15)
68-
69-
Cocos2d-x v4.0 does not support `Ubuntu 20.04` builds.
70-
Please check and apply one of the following workarounds when using it.
71-
72-
### Workaround
73-
74-
* Use `Ubuntu 16.04` or `Ubuntu 18.04`
75-
76-
* Check the following issue and replace the `libchipmunk` library used in `Cocos2d-x v4.0`
77-
* [cocos2d/cocos2d-x linking error when integrating with libchipmunk on linux#20471](https://github.com/cocos2d/cocos2d-x/issues/20471)
78-
* WARNING: Projects built using this workaround cannot be maintained under any circumstances.
79-
80-
81-
## [Caution] About OpenGL sample builds when using Visual Studio 2013 (2021-02-17)
82-
83-
In the `OpenGL` sample builds using `Visual Studio 2013`, a link error will occur in `GLEW` if you build using `setup_glew_glfw.bat` as is.
84-
Please check and use the workaround below.
85-
86-
### Workaround
87-
88-
* When using `GLEW 2.2.0`
89-
* Remove the reference to `libvcruntime.lib` from the `glew` project
90-
* Use Visual Studio later than `Visual Studio 2013`
91-
92-
* When using `GLEW 2.1.0`
93-
* Use `setup_glew_glfw_vs2013.bat` to set up `thirdParty`
94-
95-
9656
## Cubism Core
9757

9858
### [Caution] About using `.bundle` and `.dylib` on macOS Catalina or later

0 commit comments

Comments
 (0)