Howdy, Stranger!

It looks like you're new here. Sign in or register to get started.

If you have any questions, reports, suggestions, or requests about Live2D, please send them to this community.
※We cannot guarantee statements or answers from Live2D staff. Thank you for your understanding in advance.
 
Live2D Cubism
Cubism Products and Downloads
Cubism product manuals and tutorials
Cubism Editor Manual    Cubism Editor Tutorial    Cubism SDK Manual    Cubism SDK Tutorial
[About macOS Ventura 13.0] (12/20/2022)
The currently released Live2D Cubism SDK is not guaranteed to work with macOS Ventura.
Please refrain from upgrading the macOS as they may not work properly.
The Cubism Editor license file may be lost after the macOS upgrade.
Please make sure to deactivate the Cubism Editor license before upgrading the macOS.
For more details
[NOTICE]
About the support for Mac models
Cubism Editor is not supported with Apple M1 processors.
Please refer to System Requirements for details.
We will not respond to any related inquiries with this message.

[Android SDK] How to change background image texture runtime

Hi, I've been trying to change the background texture in the example but I haven't been able to do it.

I know you can setup the background at start in LAppRenderer.java -> setupBackground()

but I don't know how to change it after startup. I tried adding this method in LAppRenderer.java


public void remove() {
try {
InputStream in = FileManager.open(LAppDefine.BACK_IMAGE2_NAME);
bg.reset(gl, in);
} catch (IOException e) {
e.printStackTrace();
}

}


but it the background texture would be buggy and load the textures from the model

I am kind of new to openGL so I probably don't know what I am doing

any help would be great thanks!



Comments

Sign In or Register to comment.