BMWPilote Posted June 19, 2018 Share Posted June 19, 2018 Hi guys, I would like to know if the each PostProcess creates internally a new render target texture and never reuse what could be potentially reused? Normally we could just use two or three render targets and play ping-pong with them to finish the whole post process. Is it doable? Thanks Quote Link to comment Share on other sites More sharing options...
Sebavan Posted June 19, 2018 Share Posted June 19, 2018 Hello, This is exactly what we do using renderPipelines. It is actually used extensively in the DefaultRenderPipeline to reuse RTT as much as we can: https://github.com/BabylonJS/Babylon.js/blob/master/src/PostProcess/RenderPipeline/Pipelines/babylon.defaultRenderingPipeline.ts The documentation is available here: http://doc.babylonjs.com/how_to/how_to_use_postprocessrenderpipeline and you can see some sharing examples here: https://github.com/BabylonJS/Babylon.js/blob/master/src/PostProcess/RenderPipeline/Pipelines/babylon.defaultRenderingPipeline.ts#L447 Hope that can help getting you started. Wingnut 1 Quote Link to comment Share on other sites More sharing options...
BMWPilote Posted June 19, 2018 Author Share Posted June 19, 2018 2 hours ago, Sebavan said: Hello, This is exactly what we do using renderPipelines. It is actually used extensively in the DefaultRenderPipeline to reuse RTT as much as we can: https://github.com/BabylonJS/Babylon.js/blob/master/src/PostProcess/RenderPipeline/Pipelines/babylon.defaultRenderingPipeline.ts The documentation is available here: http://doc.babylonjs.com/how_to/how_to_use_postprocessrenderpipeline and you can see some sharing examples here: https://github.com/BabylonJS/Babylon.js/blob/master/src/PostProcess/RenderPipeline/Pipelines/babylon.defaultRenderingPipeline.ts#L447 Hope that can help getting you started. Yes, this is exactly what I need. Thank you. 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.