Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Dear Users,

Now, we are seeking users who can give us a hand with expertise to evolve our software more dynamically.
If you are willing to help us, we’d like you to make a registration for “Live2D Creators Circle” via the link below.
Designers, programmers, translators are especially welcomed so far.
(More detailed explanation will be given to you before we ask you to do tasks)

https://docs.google.com/forms/d/1G5KK_GL3ozwPXtTHrpi_ktbsI8UZf8jlYRSlDworyBo/viewform?usp=send_form

[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.