Jump to content

adil.invideo

Members
  • Content Count

    4
  • Joined

  • Last visited

  1. @ivan.popelyshev I noticed that after adding this fix, almost every sprite gets a bright stroke around it. This may be possible because of premultiplied alpha being applied more than once. How do we go about solving this ?
  2. Upgraded to PIXI 6 and used the following code PIXI.resources.BaseImageResource.prototype.upload = function(renderer, baseTexture, glTexture, source) { const gl = renderer.gl; const width = baseTexture.realWidth; const height = baseTexture.realHeight; source = source || this.source; gl.pixelStorei(gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, baseTexture.premultiplyAlpha); // add this line, check for video const isVideo = !!source.videoWidth if (!isVideo && baseTexture.target === gl.TEXTURE_2D && glTexture.width === width && glTexture.height === height) {
  3. Hi @ivan.popelyshev thanks for directing me. I did try the solutions mentioned here https://github.com/pixijs/pixi.js/issues/4089 but none of them worked. Could you please help out and correct me if I'm doing anything wrong. https://jsfiddle.net/adil_invideo/va7nqf3y/238/ NEED HELP.. Thanks
  4. Currently I'm loading a webm video using PIXI.Texture.fromVideo. The video has a certain amount of transparent because of which it blends well with the background when executed using native html, css via the video tag. Doing the same in PIXI doesn't give the same result because of which things go off. Need some help here. A link to the experiment is here that shows the comparison between html and PIXI. https://jsfiddle.net/adil_invideo/va7nqf3y/209/ Example Description: 1) A webM video that has blue and grey clouds both with a certain amount of alpha. 2) Adding a white back
×
×
  • Create New...