These are chat archives for pixijs/pixi.js
Hi guys :d
Short question: Is there a way to create a sprite with a webgltexture and can I update it when the webgltexture updates?
Longer version: I tried to combo pixijs and threejs. I started off with 2 seperate canvases/contexts and creating a texture with the texture.fromCanvas method but the updateTexture (uploading the texture everytime) is really expensive with a large canvas (I need a canvas of 1120 x 1120 pixels)(x2 retina support would be nice).
So next I tried just 1 canvas (share context and textures?) and render my 3d scene to a texture and then use that texture in pixijs.
I copied the webgltexture from threejs rendertarget and copied it to a texture of pixijs (in the texturemanager). So far it works but I cant get the sprite texture in pixi to update without reuploading the texture?