PianoScoreJP Posted May 15, 2015 Share Posted May 15, 2015 PIXI.autoDetectRenderer supports pixicelDeviceRatio as resolution parameter. Following code works good in Android Chrome and Opera but not in Android browser (4.2.2) and Android Firefox var renderer = PIXI.autoDetectRenderer(640,360,{backgroundColor:0xFFFFFF,resolution:window.devicePixelRatio || 1});); Android browser shows noting(white screen) Firefox , browser is clashed. This works in Android browser also Firefox but image rendered with poor quality. var renderer = PIXI.autoDetectRenderer(640,360,{backgroundColor:0xFFFFFF}); Please see below screenshot. Android Chrome or Opera with resolution setting without resolution setting. Is there anyway to show high quality without resolution setting? screen shot's devicePixcelRatio is 3 My goal is fit container to device width when page loaded.Loading image size is 1920 x 1080; Quote Link to comment Share on other sites More sharing options...
xerver Posted May 15, 2015 Share Posted May 15, 2015 I think it would be best to figure out why the resolution param causes issues on Android. Can you develop a minimal test page that reproduces the error, and post an issue on GitHub with that example and this explanation so we can get the bug worked on? Thanks! https://github.com/GoodBoyDigital/pixi.js/issues Quote Link to comment Share on other sites More sharing options...
PianoScoreJP Posted May 15, 2015 Author Share Posted May 15, 2015 I posted my code to github. https://github.com/GoodBoyDigital/pixi.js/issues/1808 And I have another problem in this code Somtimes , renderer width is larger than I specified in autoDetectRenderer.And texture is overflowed from may device screen sometimes. How renderer width or heigth determined?Is it depended on loading image size or devicePixelRatio?Thank you. 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.