benny! Posted October 11, 2014 Share Posted October 11, 2014 Hi, Is it possible to use Phaser/Pixijs with a filter/shader (for post processing) and port this over to mobile via a wrapper like CocoonJS, XDK etc ? I read in several CocoonJS posts that it's recommended to disable WebGL when wrapping it and I wonder if the shader parts are still working somehow within Canvas+/CocoonJS? Does anyone have any practical experience in this field and could tell me something about trapfalls/performance and stuff ? Thanks in advance. Best,benny! Link to comment Share on other sites More sharing options...
BdR Posted November 17, 2014 Share Posted November 17, 2014 Unfortunately I don't know anything about shaders but I suspect they might take a toll on performence and compatibility. But if it works the possibilities are endless. I'm also working on a phaser/cocoonjs game, so I'm interested too. The effects that shaders can produce are nothing short of amazing. For example I could really use this water turbulence effect in my game it looks incrediblehttps://www.shadertoy.com/view/MdlXz8 Link to comment Share on other sites More sharing options...
alex_h Posted November 17, 2014 Share Posted November 17, 2014 If the standard PIXI filters/shaders work in CocoonJS then your own ones should too. The latest version of CocoonJS supports the iOS8 WKWebView so WebGL is definitely an option. http://support.ludei.com/hc/en-us/articles/202271599-CocoonJS-release-notes-Core-Canvas-Webview-and-more Link to comment Share on other sites More sharing options...
benny! Posted November 17, 2014 Author Share Posted November 17, 2014 Ok, thanks for your input. Seems like I will have to give it a try then. Did not know that PIXI filters works with the CocoonJS environment without problems. Good to know. Link to comment Share on other sites More sharing options...
alex_h Posted November 17, 2014 Share Posted November 17, 2014 I didn't specifically mean that the pixi filters definitely work, I just meant that checking if they do is a quick way to see if your own shaders will work.Although reading back what i wrote I can see that it sounded like that was what I meant, sorry!At any rate according to the latest mail out from Ludei WebGL should be supported now, so we can expect that the shaders should work. Link to comment Share on other sites More sharing options...
benny! Posted November 17, 2014 Author Share Posted November 17, 2014 No worries. You are right - maybe I should just give it a try. My last work with PIXI + CocoonJS is rather old already. Do not know what changed by now. Anyway, I will keep you updated. Link to comment Share on other sites More sharing options...
Recommended Posts