Jump to content

How to reuse render target in the post process pipeline?


BMWPilote
 Share

Recommended Posts

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

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...