wolsen Posted April 7, 2017 Share Posted April 7, 2017 I would like to use Babylon rendering output as a texture in an existing WebGL app that is not using Babylon. The Babylon rendering needs to update continuously. How can I do this? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 8, 2017 Share Posted April 8, 2017 Hello the trick will be to create an babylon engine from an existing context. You could do the following: - create a dummy canvas and instantiate a new Engine from it - update the engine._gl to the gl context you already have This should do the trick. Then create a scene, a rendertarget and do what you want with it. The renderTarget has a _texture property which is a webgl texture that you can use in your current webgl app 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.