Skip to content

Commit 764af57

Browse files
Merge pull request #10 from Live2D/develop
Update to Cubism 5 SDK for Java R1 beta2
2 parents f2bae74 + 53d0bf1 commit 764af57

28 files changed

+9552
-771
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,17 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
66

7+
## [5-r.1-beta.2] - 2023-09-28
8+
9+
### Changed
10+
11+
* Replace the sample model `Mao` with the updated version that is compatible with Cubism 5.0.
12+
13+
### Fixed
14+
15+
* Fix a problem where the matrix used to draw a model was calculated incorrectly.
16+
17+
718
## [5-r.1-beta.1] - 2023-08-17
819

920
### Added
@@ -88,6 +99,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
8899

89100
* New released!
90101

102+
[5-r.1-beta.2]: https://github.com/Live2D/CubismJavaSamples/compare/5-r.1-beta.1...5-r.1-beta.2
91103
[5-r.1-beta.1]: https://github.com/Live2D/CubismJavaSamples/compare/4-r.1...5-r.1-beta.1
92104
[4-r.1]: https://github.com/Live2D/CubismJavaSamples/compare/4-r.1-beta.4...4-r.1
93105
[4-r.1-beta.4]: https://github.com/Live2D/CubismJavaSamples/compare/4-r.1-beta.3...4-r.1-beta.4

README.ja.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ Android Studioでプロジェクトを開きビルドすることを推奨しま
8888
### Android
8989
| バージョン | デバイス | Tegra |
9090
|-------|----------|-------|
91-
| 13 | Pixel 6a | |
91+
| 13 | Pixel 7a | |
9292
| 7.1.1 | Nexus 9 ||
9393
| 4.1 | Pixel 5 | |
9494

@@ -110,9 +110,9 @@ Live2Dコミュニティでは、問題のレポートと機能リクエスト
110110

111111
SDKの将来についてのフィードバックにも関心があります。Live2Dコミュニティで提案や機能のリクエストを送信できます。このプロセスをより効果的にするために、それらをより明確に定義するのに役立つより多くの情報を含めるようお願いしています。
112112

113-
## コミュニティ
113+
## フォーラム
114114

115-
ユーザー同士でCubism SDKの活用方法の提案や質問をしたい場合は、是非コミュニティをご活用ください
115+
ユーザー同士でCubism SDKの活用方法の提案や質問をしたい場合は、是非フォーラムをご活用ください
116116

117-
- [Live2D 公式コミュニティ](https://creatorsforum.live2d.com/)
118-
- [Live2D community(English)](http://community.live2d.com/)
117+
- [Live2D 公式クリエイターズフォーラム](https://creatorsforum.live2d.com/)
118+
- [Live2D Creator's Forum(English)](https://community.live2d.com/)

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ This sample application runs with **Java SE 7** or higher Java versions.
8989

9090
| Version | Device | Tegra |
9191
|---------|----------| --- |
92-
| 13 | Pixel 6a ||
92+
| 13 | Pixel 7a ||
9393
| 7.1.1 | Nexus 9 | ✔︎ |
9494
| 4.1 | Pixel 5 ||
9595

@@ -111,9 +111,9 @@ We are regularly checking issue-reports and feature requests at Live2D Community
111111

112112
We're also interested in your feedback for the future of the SDK. You can submit a suggestion or feature request at Live2D Community. To make this process more effective, we're asking that you include more information to help define them more clearly.
113113

114-
## Community
114+
## Forum
115115

116-
If you would like to make suggestions or ask questions about how to use Cubism SDK among users, please use the community.
116+
If you want to suggest or ask questions about how to use the Cubism SDK between users, please use the forum.
117117

118-
- [Live2D community](http://community.live2d.com/)
119-
- [Live2D 公式コミュニティ (Japanese)](https://creatorsforum.live2d.com/)
118+
- [Live2D Creator's Forum](https://community.live2d.com/)
119+
- [Live2D 公式クリエイターズフォーラム (Japanese)](https://creatorsforum.live2d.com/)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public void onUpdate() {
9999

100100
// 必要があればここで乗算する
101101
if (viewMatrix != null) {
102-
projection.multiplyByMatrix(viewMatrix);
102+
viewMatrix.multiplyByMatrix(projection);
103103
}
104104

105105
// モデル1体描画前コール

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,12 @@ public void draw(CubismMatrix44 matrix) {
297297
return;
298298
}
299299

300-
matrix.multiplyByMatrix(modelMatrix);
300+
// キャッシュ変数の定義を避けるために、multiplyByMatrix()ではなく、multiply()を使用する。
301+
CubismMatrix44.multiply(
302+
modelMatrix.getArray(),
303+
matrix.getArray(),
304+
matrix.getArray()
305+
);
301306

302307
this.<CubismRendererAndroid>getRenderer().setMvpMatrix(matrix);
303308
this.<CubismRendererAndroid>getRenderer().drawModel();
Loading

0 commit comments

Comments
 (0)