Vizions Posted July 5, 2019 Share Posted July 5, 2019 Hello, First time posting on this forum. Issue: I am having issues using TweenMax when rendered in WebGL with PIXI. Nothing happens at all. If I change my code to use canvas it works just fine. Is anybody having similar or the same issues? Thanks for any help. let app = new PIXI.autoDetectRenderer(1920, 1080); document.body.appendChild(app.view); let stage = new PIXI.Container(); let testGraphic = new PIXI.Graphics(); testGraphic.beginFill(0x18FF10); testGraphic.drawRect(0, 0, 500, 500); stage.addChild(testGraphic); TweenMax.to(testGraphic, 1, {pixi: {alpha: 0}}); app.render(stage); Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted July 6, 2019 Share Posted July 6, 2019 It should work. Please publish the demo in https://www.pixiplayground.com/#/edit , you can specify links to plugins there. Quote Link to comment Share on other sites More sharing options...
bubamara Posted July 6, 2019 Share Posted July 6, 2019 should be : TweenMax.to(testGraphic, 1, { alpha: 0 }); Quote Link to comment Share on other sites More sharing options...
Vizions Posted July 7, 2019 Author Share Posted July 7, 2019 Thanks for the responses here is the link to the playground: https://www.pixiplayground.com/#/edit/IUF~i2xGirtSSntnn~O3d Quote Link to comment Share on other sites More sharing options...
bubamara Posted July 7, 2019 Share Posted July 7, 2019 I've updated your playground: - don't call new PIXI.autoDetectRenderer(), use new keyword only before CanvasRenderer/WebGLRenderer - you've been missing update loop (animate), you just rendered stage once You don't need to use PIxi Plugin for GSAP, you can tween alpha directly Vizions 1 Quote Link to comment Share on other sites More sharing options...
Vizions Posted July 8, 2019 Author Share Posted July 8, 2019 Thank you @bubamara. Your help is highly appreciated. ivan.popelyshev 1 Quote Link to comment Share on other sites More sharing options...
bubamara Posted July 8, 2019 Share Posted July 8, 2019 you're welcome ivan.popelyshev 1 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.