Skip to content

Commit 9395f08

Browse files
Merge pull request #17 from Live2D/develop
Update to Cubism 5 SDK for Java R5 beta1
2 parents 6639d66 + 3af17f0 commit 9395f08

34 files changed

Lines changed: 13310 additions & 86 deletions

CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,29 @@ 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.5-beta.1] - 2026-01-29
9+
10+
### Added
11+
12+
* Add `Ren` model.
13+
* Add support for Blend mode and Offscreen drawing.
14+
* Adapt to Framework API changes that require `CubismRendererAndroid.create()` to take window dimensions as parameters.
15+
* Add support for rendering portrait and landscape displays on Android.
16+
17+
### Changed
18+
19+
* Adapt to the Cubism SDK Framework's refactoring of hard-coded shaders into separate files.
20+
* Add a class that implements the `ICubismLoadFileFunction` interface to handle file loading.
21+
* Change the compile and target SDK version of Android OS to 16.0 (API 36).
22+
* Upgrade the version of Android Gradle Plugin from 8.6.1 to 8.9.1.
23+
* Upgrade the version of Gradle from 8.7 to 8.11.1.
24+
25+
### Fixed
26+
27+
* Fix background image distortion when window size is changed.
28+
* Fix an issue in the Android sample where the model display would reset after performing certain operations.
29+
30+
831
## [5-r.4.1] - 2025-07-17
932

1033
### Changed
@@ -199,6 +222,7 @@ Also adjust the return value of the getSpriteAlpha function.
199222
* New released!
200223

201224

225+
[5-r.5-beta.1]: https://github.com/Live2D/CubismJavaSamples/compare/5-r.4.1...5-r.5-beta.1
202226
[5-r.4.1]: https://github.com/Live2D/CubismJavaSamples/compare/5-r.4...5-r.4.1
203227
[5-r.4]: https://github.com/Live2D/CubismJavaSamples/compare/5-r.3...5-r.4
204228
[5-r.3]: https://github.com/Live2D/CubismJavaSamples/compare/5-r.2...5-r.3

Core/CHANGELOG.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,50 @@ 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+
## 2026-01-29
9+
10+
### Added
11+
12+
* Add Arm64 static library for iphonesimulator.
13+
14+
15+
## 2026-01-08
16+
17+
### Changed
18+
19+
* Upgrade Core version to 06.00.0001.
20+
21+
### Fixed
22+
23+
* Fix offscreen opacity calculation.
24+
25+
26+
## 2025-10-30
27+
28+
### Removed
29+
30+
* [Native] Remove Visual Studio 2015 (MSVC 140) static library.
31+
32+
33+
## 2025-10-14
34+
35+
### Added
36+
37+
* Add `csmGetMocVersion(mocBytes: ArrayBuffer)` with simplified arguments from `csmGetMocVersion(moc: Moc, mocBytes: ArrayBuffer)`.
38+
* The previous version `csmGetMocVersion(moc: Moc, mocBytes: ArrayBuffer)` is now deprecated and is planned to be removed in the future.
39+
40+
41+
## 2025-08-26
42+
43+
### Added
44+
45+
* Enhanced model rendering features have been added.
46+
47+
### Changed
48+
49+
* Upgrade Core version to 06.00.0000.
50+
51+
852
## 2025-07-17
953

1054
### Changed
@@ -27,6 +71,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
2771

2872
* Fix `csmGetParameterKeyCounts()` and `csmGetParameterKeyValues()` symbols in the DLL.
2973

74+
### Changed
75+
76+
* Upgrade Core version to 05.01.0000.
77+
3078

3179
## 2024-12-19
3280

Framework

Submodule Framework updated 67 files

LICENSE.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,12 @@ Sample/src/main/assets/Hiyori
5252
Sample/src/main/assets/Mao
5353
Sample/src/main/assets/Mark
5454
Sample/src/main/assets/Natori
55+
Sample/src/main/assets/Ren
5556
Sample/src/main/assets/Rice
5657
Sample/src/main/assets/Wanko
5758
```
5859

59-
If you use these models, you must agree to the terms of a contract set [here](https://docs.live2d.com/cubism-editor-manual/sample-model/) for each model.
60+
If you use these models, you must agree to the terms of a contract set [here](https://www.live2d.com/eula/live2d-sample-model-terms_en.html) for each model.
6061

6162

6263
---

README.ja.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ Cubism Java Framework および Live2D Cubism Core Javaと組み合わせて使
1212
本 SDK を使用する前に[ライセンス](LICENSE.md)をご確認ください。
1313

1414

15-
## Cubism 5新機能や過去バージョンとの互換性について
15+
## Cubism 5.3新機能や過去バージョンとの互換性について
1616

17-
本 SDK はCubism 5に対応した製品です
18-
Cubism 5 Editorに搭載された新機能のSDK対応については [こちら](https://docs.live2d.com/cubism-sdk-manual/cubism-5-new-functions/)をご確認ください。
19-
過去バージョンのCubism SDKとの互換性については [こちら](https://docs.live2d.com/cubism-sdk-manual/compatibility-with-cubism-5/)をご確認ください。
17+
本 SDK はCubism 5.3に対応した製品です
18+
Cubism 5.3 Editorに搭載された新機能のSDK対応については [こちら](https://docs.live2d.com/cubism-sdk-manual/cubism-5-3-new-functions/)をご確認ください。
19+
過去バージョンのCubism SDKとの互換性については [こちら](https://docs.live2d.com/cubism-sdk-manual/compatibility-with-cubism-5-3/)をご確認ください。
2020

2121

2222
## ディレクトリ構成
@@ -71,11 +71,11 @@ Core : [CHANGELOG.md](Core/CHANGELOG.md)
7171

7272
| 開発ツール | バージョン |
7373
|----------------|------------------|
74-
| Android Studio | Narwhal 2025.1.1 Patch 1 |
75-
| Gradle | 8.7 |
76-
| Android Gradle Plugin | 8.6.1 |
74+
| Android Studio | Otter 3 Feature Drop 2025.2.3 |
75+
| Gradle | 8.11.1 |
76+
| Android Gradle Plugin | 8.9.1 |
7777
| Gradle JDK | 21.0.7 |
78-
| Android SDK | 35.0.0 |
78+
| Android SDK | 36.0.0 |
7979

8080
## 動作確認環境
8181

@@ -88,7 +88,7 @@ Core : [CHANGELOG.md](Core/CHANGELOG.md)
8888
| バージョン | デバイス | エミュレーター | 16KBページサイズ *1 |
8989
|-------|----------|:-------:|:-------:|
9090
| 16 | Pixel 9 | | ✔︎ |
91-
| 15 | Pixel 7a | | |
91+
| 16 | Pixel 7a | | |
9292
| 5.0 | Pixel 7a || |
9393

9494
本サンプルアプリケーションは**Android API 21**以上のAndroidバージョンで動作します。

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ It is used in conjunction with Cubism Java Framework and Live2D Cubism Core Java
1313
Please check the [license](LICENSE.md) before using this SDK.
1414

1515

16-
## Compatibility with Cubism 5 new features and previous Cubism SDK versions
16+
## Compatibility with Cubism 5.3 new features and previous Cubism SDK versions
1717

18-
This SDK is compatible with Cubism 5.
19-
For SDK compatibility with new features in Cubism 5 Editor, please refer to [here](https://docs.live2d.com/en/cubism-sdk-manual/cubism-5-new-functions/).
20-
For compatibility with previous versions of Cubism SDK, please refer to [here](https://docs.live2d.com/en/cubism-sdk-manual/compatibility-with-cubism-5/).
18+
This SDK is compatible with Cubism 5.3.
19+
For SDK compatibility with new features in Cubism 5.3 Editor, please refer to [here](https://docs.live2d.com/en/cubism-sdk-manual/cubism-5-3-new-functions/).
20+
For compatibility with previous versions of Cubism SDK, please refer to [here](https://docs.live2d.com/en/cubism-sdk-manual/compatibility-with-cubism-5-3/).
2121

2222

2323
## Directory structure
@@ -71,11 +71,11 @@ Core : [CHANGELOG.md](Core/CHANGELOG.md)
7171

7272
| Development Tools | Version |
7373
|-------------------|--|
74-
| Android Studio | Narwhal 2025.1.1 Patch 1 |
75-
| Gradle | 8.7 |
76-
| Android Gradle Plugin | 8.6.1 |
74+
| Android Studio | Otter 3 Feature Drop 2025.2.3 |
75+
| Gradle | 8.11.1 |
76+
| Android Gradle Plugin | 8.9.1 |
7777
| Gradle JDK | 21.0.7 |
78-
| Android SDK | 35.0.0 |
78+
| Android SDK | 36.0.0 |
7979

8080
## Operation environment
8181

@@ -88,7 +88,7 @@ This sample application runs with **Java SE 7** or higher Java versions.
8888
| Version | Device | Emulator | 16KB page sizes *1 |
8989
|---------|----------|:--------:|:--------:|
9090
| 16 | Pixel 9 | | ✔︎ |
91-
| 15 | Pixel 7a | | |
91+
| 16 | Pixel 7a | | |
9292
| 5.0 | Pixel 7a || |
9393

9494
This sample application runs with **Android API 21** or higher Android versions.

Sample/src/full/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<activity
1616
android:name=".full.MainActivity"
1717
android:configChanges="orientation|screenSize"
18-
android:screenOrientation="sensorLandscape"
18+
android:screenOrientation="fullUser"
1919
android:exported="true">
2020
<intent-filter>
2121
<action android:name="android.intent.action.MAIN"/>

Sample/src/full/java/com/live2d/demo/full/LAppDelegate.java

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,7 @@ public void onStart(Activity activity) {
4848
LAppPal.updateTime();
4949
}
5050

51-
public void onPause() {
52-
currentModel = LAppLive2DManager.getInstance().getCurrentModel();
53-
}
51+
public void onPause() {}
5452

5553
public void onStop() {
5654
if (view != null) {
@@ -89,9 +87,13 @@ public void onSurfaceChanged(int width, int height) {
8987
view.initialize();
9088
view.initializeSprite();
9189

90+
// オフスクリーンのサイズ変更
91+
LAppLive2DManager.getInstance().setRenderTargetSize(width, height);
92+
9293
// load models
93-
if (LAppLive2DManager.getInstance().getCurrentModel() != currentModel) {
94-
LAppLive2DManager.getInstance().changeScene(currentModel);
94+
LAppLive2DManager manager = LAppLive2DManager.getInstance();
95+
if (manager.getModelNum() == 0) {
96+
manager.changeScene(sceneIndex);
9597
}
9698

9799
isActive = true;
@@ -159,6 +161,24 @@ public LAppView getView() {
159161
return view;
160162
}
161163

164+
/**
165+
* シーンインデックスを設定する。
166+
*
167+
* @param index シーンインデックス
168+
*/
169+
public void setSceneIndex(int index) {
170+
sceneIndex = index;
171+
}
172+
173+
/**
174+
* シーンインデックスを取得する。
175+
*
176+
* @return シーンインデックス
177+
*/
178+
public int getSceneIndex() {
179+
return sceneIndex;
180+
}
181+
162182
public int getWindowWidth() {
163183
return windowWidth;
164184
}
@@ -170,11 +190,12 @@ public int getWindowHeight() {
170190
private static LAppDelegate s_instance;
171191

172192
private LAppDelegate() {
173-
currentModel = 0;
193+
sceneIndex = 0;
174194

175195
// Set up Cubism SDK framework.
176196
cubismOption.logFunction = new LAppPal.PrintLogFunction();
177197
cubismOption.loggingLevel = LAppDefine.cubismLoggingLevel;
198+
cubismOption.loadFileFunction = new LAppPal.LoadFileFunction();
178199

179200
CubismFramework.cleanUp();
180201
CubismFramework.startUp(cubismOption);
@@ -193,7 +214,7 @@ private LAppDelegate() {
193214
/**
194215
* モデルシーンインデックス
195216
*/
196-
private int currentModel;
217+
private int sceneIndex;
197218

198219
/**
199220
* クリックしているか

0 commit comments

Comments
 (0)