BlackMojito Posted April 9, 2018 Share Posted April 9, 2018 I need to render several meshes into a custom render target (for later compositing in the post process pipeline). But I need them to use the same depth buffer as the normal meshes too. Is there a way that they share the same depth buffer? For now, what in the custom render target is always on the top because they will not be discarded by the depth test... Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted April 9, 2018 Share Posted April 9, 2018 hi i dont understand exactly what you wanna do http://www.babylonjs-playground.com/#WPM24S#7 tell me more detail Quote Link to comment Share on other sites More sharing options...
Guest Posted April 9, 2018 Share Posted April 9, 2018 Unfortunately we cannot share the same depth buffer Quote Link to comment Share on other sites More sharing options...
BlackMojito Posted April 10, 2018 Author Share Posted April 10, 2018 9 hours ago, Deltakosh said: Unfortunately we cannot share the same depth buffer Yeah...that what I had noticed. In my opinion, if we could manage to support that feature, babylonjs would become much more powerful... Quote Link to comment Share on other sites More sharing options...
Guest Posted April 10, 2018 Share Posted April 10, 2018 The number of times I heard this sentence Gijs 1 Quote Link to comment Share on other sites More sharing options...
Guest Posted April 10, 2018 Share Posted April 10, 2018 So the idea would be to attach the main depth buffer to a render target right? Quote Link to comment Share on other sites More sharing options...
BlackMojito Posted April 11, 2018 Author Share Posted April 11, 2018 11 hours ago, Deltakosh said: So the idea would be to attach the main depth buffer to a render target right? Yeah although I have written any GL low level code for a very long time... The great thing is that we can avoid re-render the "main scene". We can just re-render some overlay layers and compose them easily in the post pipeline. Quote Link to comment Share on other sites More sharing options...
Guest Posted April 11, 2018 Share Posted April 11, 2018 Please add an issue on the repo to track this good idea (And check feasibility) 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.