weepy Posted October 20, 2015 Share Posted October 20, 2015 Is it possible to tell PIXI not to clear the background every frame - aka like Canvas does ?I'm trying to efficiently create some trails in WebGL --- see: https://jsfiddle.net/03hLme9q for an example Quote Link to comment Share on other sites More sharing options...
bubamara Posted October 20, 2015 Share Posted October 20, 2015 to not clear background with webgl, set renderer options { clearBeforeRender:false, preserveDrawingBuffer:true } Quote Link to comment Share on other sites More sharing options...
weepy Posted October 20, 2015 Author Share Posted October 20, 2015 AH I see preserveDrawingBuffer - which is just what I want. One thing further though - I need to be able to "fade out" the drawing buffer slightly - because this needs to be a transparent background. I.e. I need to set the alpha of each of the pixels. Quote Link to comment Share on other sites More sharing options...
weepy Posted October 20, 2015 Author Share Posted October 20, 2015 There's a solution here in THREE.js There's a solution here in three.js : http://stackoverflow.com/a/20643813/1379951 Is there an equivalent in PIXI ? Quote Link to comment Share on other sites More sharing options...
xerver Posted October 20, 2015 Share Posted October 20, 2015 If you wanted to draw a white, semi-transparent plane, in pixi what would you do? Quote Link to comment Share on other sites More sharing options...
weepy Posted October 20, 2015 Author Share Posted October 20, 2015 If it was semi-transparent it would overwrite the background. That's a constraint something that I didn't make clear. 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.