isfuturebright Posted November 11, 2013 Share Posted November 11, 2013 Is there any way to know which way he's rendering? Quote Link to comment Share on other sites More sharing options...
xerver Posted November 11, 2013 Share Posted November 11, 2013 Check the renderer instance:if(myrenderer instanceof PIXI.CanvasRenderer) { //canvas renderer} else { //webgl renderer} isfuturebright 1 Quote Link to comment Share on other sites More sharing options...
isfuturebright Posted November 11, 2013 Author Share Posted November 11, 2013 @rolnaaba It is rendering to webgl! So any idea why I can't render with webgl when using phaser? Quote Link to comment Share on other sites More sharing options...
xerver Posted November 11, 2013 Share Posted November 11, 2013 Not without seeing your code. Quote Link to comment Share on other sites More sharing options...
rich Posted November 11, 2013 Share Posted November 11, 2013 Agreed, need to see some source code. You can check if your browser supports WebGL by just launching any of the three.js demos for example. Quote Link to comment Share on other sites More sharing options...
isfuturebright Posted November 12, 2013 Author Share Posted November 12, 2013 @Rich we were able to run this three.js demo http://threejs.org/examples/#webgl_animation_skinning_morph though with a bit of lag. I'll set up a phaser project like the bunny benchmark on the Pixi and get back to you guys. Quote Link to comment Share on other sites More sharing options...
isfuturebright Posted November 12, 2013 Author Share Posted November 12, 2013 So I made a quick example here that works like the bunny benchmark on pixijs. It works when I set the render to CANVAS but the screen stays black when it's set to either WEBGL or AUTO. Here is the example running on the Smart TV emulator. It works the same on TV with worse performance, obvious I've attached the full project for you guys to take a look. It won't work on a normal browser since it will try to find the referenced TV APIs. phaserjs_bunnybenchmark.zip Quote Link to comment Share on other sites More sharing options...
rich Posted November 12, 2013 Share Posted November 12, 2013 If the Pixi WebGL demos work for you, but Phaser in WebGL mode doesn't, then it can only really be a few things. I have never used the Smart TV emulator, does it have a standard console you can inspect? My guess is there will be an error in there somewhere. Try toggling the transparent and anti-alias flags too. Mike and isfuturebright 2 Quote Link to comment Share on other sites More sharing options...
isfuturebright Posted November 12, 2013 Author Share Posted November 12, 2013 @rich It worked! I had to set the tranparent to true! Wow what a difference in performance! Quote Link to comment Share on other sites More sharing options...
rich Posted November 12, 2013 Share Posted November 12, 2013 That's really strange, but I'm glad it works One to add to the docs!! Quote Link to comment Share on other sites More sharing options...
isfuturebright Posted November 12, 2013 Author Share Posted November 12, 2013 @rich the TV is a weird place, believe me hahaha. 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.