Shalmak Posted March 3, 2018 Share Posted March 3, 2018 Hi, Is renderTexture already supposed to work in Phaser 3? I am porting a game from phaser 2 to phaser 3 and getting an exception when I try to create a renderTexture. After isolating the problem, I am doing this in my create() function: renderTexture = this.add.renderTexture(100, 100); And I am getting this in the chrome console: Uncaught Error: Framebuffer incomplete. Framebuffer status: Incomplete Attachment at WebGLRenderer.createFramebuffer (phaser.js:88300) at new RenderTexture (phaser.js:30278) at GameObjectFactory.renderTexture (phaser.js:102405) at Scene.create (lost_main.js:64) at SceneManager.create (phaser.js:51686) at SceneManager.loadComplete (phaser.js:51603) at LoaderPlugin.emit (phaser.js:2762) at LoaderPlugin.processComplete (phaser.js:111711) at LoaderPlugin.removeFromQueue (phaser.js:111691) at LoaderPlugin.processUpdate (phaser.js:111672) Offscreen-For-WebGL-000000000E49A020]GL ERROR :GL_INVALID_FRAMEBUFFER_OPERATION : glClear: framebuffer incomplete Offscreen-For-WebGL-000000000E49A020]GL ERROR :GL_INVALID_FRAMEBUFFER_OPERATION : glDrawArrays: framebuffer incomplete WebGL: too many errors, no more errors will be reported to the console for this context. I am using phaser v3.1.2 Help would be much appreciated Link to comment Share on other sites More sharing options...
rich Posted March 4, 2018 Share Posted March 4, 2018 Build from master to get the latest version of it, then have a look in the labs for an example of how to use it as it differs significantly from v2 Link to comment Share on other sites More sharing options...
Recommended Posts