trusktr Posted July 8, 2017 Share Posted July 8, 2017 I'm curious to learn how to draw a Pixi scene as a texture on an object of a custom webgl 3D app (not using Three.js, just plain WebGL). I think I have to render a Pixi.js scene onto a framebuffer somehow. but I'm not sure how yet. Any suggestions and/or small examples? ivan.popelyshev 1 Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted July 8, 2017 Share Posted July 8, 2017 At that point you have to study pixi sources. PIXI maintains the webgl state + blendmode and remembers bound textures + active shader + active framebuffer. You have either to restore the state either notify pixi that it has been changed somehow and set everything that is possible to null Just look in https://github.com/pixijs/pixi.js/blob/v3/src/core/renderers/webgl/WebGLRenderer.js , especially in all "active*" fields, boundTextures and the state.. Version 5 of pixi will be more easier to iontegrate with other engines. 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.