Tymski Posted August 5, 2017 Share Posted August 5, 2017 I make a text then cache it as bitmap. Here is the result: Why is it getting cut like that? Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted August 5, 2017 Share Posted August 5, 2017 Which version of pixi it is? Quote Link to comment Share on other sites More sharing options...
Tymski Posted August 5, 2017 Author Share Posted August 5, 2017 PixiJS 4.5.4 - ✰ Canvas ✰ Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted August 5, 2017 Share Posted August 5, 2017 May be canvas version of cacheAsBitmap is at fault. Also, why do you need to use cacheAsBitmap on text which is already cached bitmap? Quote Link to comment Share on other sites More sharing options...
Tymski Posted August 5, 2017 Author Share Posted August 5, 2017 I didn't know that xD Quote Link to comment Share on other sites More sharing options...
xerver Posted August 6, 2017 Share Posted August 6, 2017 17 hours ago, Tymski said: I didn't know that xD PIXI.Text is just a canvas that we drew the text to using the normal canvas 2d text drawing APIs, then we use the canvas as a texture for drawing to the WebGL context. Cache as bitmap is useful for deep trees of objects that you want to condense to a single (unchanging) texture. For example, setting cacheAsBitmap on a single sprite (or Text object) will have no benefit. evdokim and xwz86 1 1 Quote Link to comment Share on other sites More sharing options...
tywang2006 Posted August 8, 2017 Share Posted August 8, 2017 why not show text instead. in text, all characters is sprite. not any benefit from cachasbitmap. 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.