Trouble rendering a sprite with pixi.js on iOS 8 -
i have sprite loads stage in chrome , safari, not in ios 8 device or simulator. canvas appears, white (even when specify red). , nil seems render in it.
any thought i'm doing wrong?
var renderer = pixi.autodetectrenderer(400, 300); elem[0].appendchild(renderer.view); var stage = new pixi.stage(0xff0000); var wheeltexture = pixi.texture.fromimage("/static/img/special/thing.png"); var wheelsprite = new pixi.sprite(wheeltexture); stage.addchild(wheelsprite); requestanimationframe(animate); function animate() { renderer.render(stage); requestanimationframe(animate); }
to set question way, challenge draw sprite on canvas using pixi.js in ios8 , tell me how accomplished. seem able run webgl demos , such in ios8 simulator, basic pixi.js code doesn't work...
update: turns out rendering fine, exception if don't utilize pure black background on container, renders stage , within of white can't see it.
the dev branch of pixi works champ in ios8. pushed patch master branch quite of import fix.
https://github.com/goodboydigital/pixi.js/commit/b29acff1455117567440acdb9fc16f9d1d5670db
turned out simple case of ios8 not liking when set webgl colormask alpha channel false
ios pixi
No comments:
Post a Comment