mr_pinc Posted October 19, 2017 Share Posted October 19, 2017 I'm trying to leverage the built in Depth of Field effect - when I attach it to my camera I get an error - attachCamerasToRenderPipeline() - >You're trying to reuse a post process not defined as reusable. I can still seem to toggle the effect on an off. I looked at the typescript code and can see that the internal effects of the LensRenderingPipeline class are indeed set to be non-reusable. The effect does seem to be behaving the way it we expect but is there anything I should be concerned about in regards to this error? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted October 20, 2017 Share Posted October 20, 2017 This should be fixable do you mind creating a repro in the PG? Quote Link to comment Share on other sites More sharing options...
mr_pinc Posted October 20, 2017 Author Share Posted October 20, 2017 I've created this playground : https://playground.babylonjs.com/#63QN3J Weird thing is, you need to click the toggle button a couple of times. Detaching / does not seem to work the first time even though it works in my project Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted October 23, 2017 Share Posted October 23, 2017 Fixed will be in the next nightly Quote Link to comment Share on other sites More sharing options...
mr_pinc Posted October 24, 2017 Author Share Posted October 24, 2017 I can confirm the fix works. Also works on the playground example. Thanks GameMonetize 1 Quote Link to comment Share on other sites More sharing options...
mr_pinc Posted October 24, 2017 Author Share Posted October 24, 2017 Additional unrelated note on the playground example. Pretty sure the UI elements should not be affected by the post process effect unless a user would explicitly want that. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted October 25, 2017 Share Posted October 25, 2017 To do so, you just need to create a second camera and then use it for GUI: https://github.com/BabylonJS/Website/blob/master/Demos/DefaultRenderingPipeline/default.js Demo: https://www.babylonjs.com/demos/defaultrenderingpipeline/ 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.