New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Container.cacheAsBitmap behaving funny on retina #2393
Comments
hey there! if you use the pixi canvas renderer, does the text show up sharp? |
Hi @GoodBoyDigital, I tried new PIXI.CanvasRenderer and as a matter of fact the difference in rendering quality is still there! Here the pen: http://codepen.io/anon/pen/NNbdJY It should be enough to check it on an iphone. Thanks! |
@GoodBoyDigital thanks to @ivanpopelyshev I discovered the "resolution" parameter in PIXI.Text. The documentation doesn't seem updated: https://pixijs.github.io/docs/PIXI.Text.html This solved the quality of text in general. Still cacheAsBitmap makes the text worse. I updated the pen (had some problem with embedded font) |
oh, one more to try:
as pix may be using a lower resolution texture to cache the text. - side note here but there should not be a situation where you would need to use cacheAsBitmap on text as it essentially a bitmap anyway. hope that does the trick! |
@GoodBoyDigital updated the pen, seems to work. Thanks! ;) Anyway, I was thinking of using cacheAsBitmap for a composition of more elements. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
almost as if the snap shot wasn't retina. I am developing for an Android TV, sorry if the pictures below are not ideal (without and with cacheAsBitmap).
FYI Android TV is considered Retina (small window size in pixels but double density). I used the rendererOptions.resolution = window.devicePixelRatio and canvas style size = window size option to support it.
The text was updated successfully, but these errors were encountered: