www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: angieIe on September 06, 2016, 04:00:27 am

Title: Change Texture in Runtime
Post by: angieIe on September 06, 2016, 04:00:27 am
Hai, i have to change texture when user click a button. How to change texture in runtime? i try add texture to texture manager and setTexture in onDrawFrame, but it not working, have error out of memory. Thank you.
Title: Re: Change Texture in Runtime
Post by: EgonOlsen on September 06, 2016, 09:26:20 am
Then your texture is simply too large. The way you are doing it is actually fine, just make sure that the texture has a reasonable size. How large was it?