GBear Posted December 11, 2016 Share Posted December 11, 2016 hi. this is normal shot. loaded all and everything ok this is not normal. because not loaded basetexture or not updated to basetexture to gpu this image will be show like upper image. but very short time, under image can see. so i want not drawing under image. if i can't check correct.. i wanna dray empty image. many big images is loaded at starting time. and i updated to gpu by updateTexture function of renderer object; and than i see under breaking texture for very short time(during not updated to gpu ) do you have any good idea please tell me.. Quote Link to comment Share on other sites More sharing options...
GBear Posted December 12, 2016 Author Share Posted December 12, 2016 i wrote new code it call updateTexture of renderer function and update by force my pseudo code like following.. var ch = new Character(); ch.visible = false; var renderer = Core.SceneManager.renderer; if (baseTexture.hasLoaded) { renderer.updateTexture(baseTexture); if(ch) { ch.visible = true; } } else { baseTexture.once('update', function () { renderer.updateTexture(this); if(ch) { ch.visible = true; } }, baseTexture); } but i couldn't resolve upper issue.. somebady know about that.. Character is using spine.. thx.. Quote Link to comment Share on other sites More sharing options...
GBear Posted December 22, 2016 Author Share Posted December 22, 2016 somebody know how upper issue fix? broken image is happened if baseTexture is not loaded yet. i find this issue happen like follow issue.. - load Big Texture like UI Pack. (UI Pack is created by texturePacket. so it has png and altas) - create Sprite of part of UI like Login Button - but UI Pack is not loaded yet.. - and than Login Button draw like upper image that broken texture - if UI Pack is loaded. everything draw good in this case sprite know width and height . because ui pack's atlas loaded and generate textures on cache. but textures is not have loaded bastexture.. in this case how can i draw empty(blank) texture? please tell us... thx.. ps> if loaded all before using drawing . it will be ok. but i have to load during playing game like monsters, objects, npcs,,,etcs... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.