Abyss Posted August 25, 2016 Share Posted August 25, 2016 Hi, developers! I have one problem with using postprocesses on cameras with layer masks. My scene contain two cameras with different layer masks, i push them all in active cameras to blend them. For this moment all is good and i have this picture (https://yadi.sk/i/rlKH9yIpuUeWM). Planet are attached to layer with ortho camera, background are attached to the free camera. When i use VolumetricLightScatteringPostProcess (or LensRenderingPipeline) on the ortho camera i get black background (https://yadi.sk/i/tTG9UbaMuUeww), seems like cameras are not blending. Can you told me its a bug, or i doing something wrong? Quote Link to comment Share on other sites More sharing options...
Sebavan Posted August 25, 2016 Share Posted August 25, 2016 Hello, Could you create a playground for it ? I would like to help addressing his issue. On the following sample I have 2 cam with layer and separate pp per cam and it seems to be ok. http://www.babylonjs-playground.com/#1P98HI#88 CU, Nabroski 1 Quote Link to comment Share on other sites More sharing options...
Abyss Posted August 25, 2016 Author Share Posted August 25, 2016 22 minutes ago, Sebavan said: Hello, Could you create a playground for it ? I would like to help addressing his issue. On the following sample I have 2 cam with layer and separate pp per cam and it seems to be ok. http://www.babylonjs-playground.com/#1P98HI#88 CU, Thanx for answer, friend! Can you try this with one orthographic camera. And i will try to create a playground primer. P.s. Your code is amazing, thx for example, pls dont remove him). I see you use render targets and layers, and your code much more complex then my ^_^. Quote Link to comment Share on other sites More sharing options...
Sebavan Posted August 25, 2016 Share Posted August 25, 2016 Ortho cam still works: http://www.babylonjs-playground.com/#1P98HI#89 Abyss and GameMonetize 2 Quote Link to comment Share on other sites More sharing options...
Abyss Posted August 26, 2016 Author Share Posted August 26, 2016 16 hours ago, Sebavan said: Ortho cam still works: http://www.babylonjs-playground.com/#1P98HI#89 Thx one more time) will be learning by your primer how to do this. Thank you very much! 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.