I was curious if there was a way to make MV use OpenGL and Not WebGl
I ask cause WebGl does not support all the blending features in Pixi and it's annoying the H E Double Hockeysticks out of me!
And i'm making games for PC only, not smart phones.
So is it possible to switch the rendering over to OpenGL?
I've moved this thread to JS/Plugin Support. Please be sure to post your threads in the correct forum next time. Thank you.
I suppose since the entire thing is open, there's probably no reason why not. Huge task though.
I had no idea it would be a JS question, that's why i had posted it where i did.. sorry.
I figured it might be a software question more than a JS question.
Sorry.
Well, the main issue is that I don't think OpenGL really has a JavaScript binding, since it's all compiled code and stuff like that. The best you might be able to do is to try to find an OpenGL Node.js module. Then you'd have to interact with that, but like Shaz said, that's a huge task to tackle, and would take a lot of time to rewrite the engine for, especially if it's just for blending modes.
But who knows, maybe someone already ported openGL for Node? Maybe people just find WebGL to be sufficient? Only Google (or bing, or yahoo, or etc) will tell!
Pixi will always use webgl, webgl is the only api you could use aside from 2d canvas...
So you'll stick with it... You can still pass as many shaders and things you like anyway...
From what i have read in the default Pixi file, it's mentioned some things about the list of blendmodes and says only specific ones work with WebGL as if to say if you used something else you could.
That's why i mention it.
MV feels rushed, it feels like it needed more work.
So many things don't seem to work right, or are missing.
I keep wanting to use the negative blending.. and it's not working.
The blendings that darken.. it's not there or does not work.
MV using Pixi.js when Pixi.js doesn't support certain blend modes does not mean MV was rushed.
Ace only allowed 3 blend modes.
But i can't even get MULTIPLY to work though, and pixi says it's supported.
It goes black and i'm unsure why.
I just end up with large black images.
And so far unless it's a bug it only seems to support 2 blending modes, add and none.
Screen looks just like Add and Multiply makes things totally black... i'm not exactly sure why.
If it's an image issue, it be nice to find out exactly what the issue is.
When it comes to pixi blend modes, I'm pretty sure the alternative to WebGL that they're implying is software rendering, not OpenGL. While there are some things that work in OpenGL but not WebGL, they're very esoteric things, so unless you're trying to make a fluid dynamics shader or something like that it shouldn't make much of a difference.
I'm more or less just wanting to get multiply to work, it seems buggy.. and i think it might be the pixi.js it's self.
Funny thing is, someone else here is trying to get i think.. pixi 3 to work, and oddly enough it sort of does, as multiply actually freaking works with it!
Only downside is it seems kinda laggy.
I think it's Ramiro working on it, so this does indeed sound like a bug with pixi 2.
Things like this are frustrating.. sure it's one little thing.. but the little things add up.
Also, i find it shameful the creator would shrug it off but yet leave it in the script as something that works when it clearly does not.
* Various blend modes supported by pixi. IMPORTANT - The WebGL renderer only supports the NORMAL, ADD, MULTIPLY and SCREEN blend modes. * @property {Object} blendModes * @property {Number} blendModes.NORMAL * @property {Number} blendModes.ADD * @property {Number} blendModes.MULTIPLY * @property {Number} blendModes.SCREEN * @property {Number} blendModes.OVERLAY * @property {Number} blendModes.DARKEN * @property {Number} blendModes.LIGHTEN * @property {Number} blendModes.COLOR_DODGE * @property {Number} blendModes.COLOR_BURN * @property {Number} blendModes.HARD_LIGHT * @property {Number} blendModes.SOFT_LIGHT * @property {Number} blendModes.DIFFERENCE * @property {Number} blendModes.EXCLUSION * @property {Number} blendModes.HUE * @property {Number} blendModes.SATURATION * @property {Number} blendModes.COLOR * @property {Number} blendModes.LUMINOSITY * @static */PIXI.blendModes = { NORMAL:0, ADD:1, MULTIPLY:2, SCREEN:3, OVERLAY:4, DARKEN:5, LIGHTEN:6, COLOR_DODGE:7, COLOR_BURN:8, HARD_LIGHT:9, SOFT_LIGHT:10, DIFFERENCE:11, EXCLUSION:12, HUE:13, SATURATION:14, COLOR:15, LUMINOSITY:16};He clearly says multiply works in the plugin, this needs altered. It should only list 2 of those, as only the first 2 really work.
The 4th one looks the same as ADD.
Also, won't this feature not working have an effect future plugins for lighting effects?
I would think it would.