dingoogle Posted June 12, 2018 Share Posted June 12, 2018 Hi Guys, I'm trying to integrate godrays effect into my project. as the pg: https://www.babylonjs-playground.com/#1WXYBQ But I want to just keep the volumetric lights and the animation. Is it possible to hide/transparent/move away the light source mesh of godrays? Your help will be highly appreciated. Quote Link to comment Share on other sites More sharing options...
Guest Posted June 12, 2018 Share Posted June 12, 2018 Pinging @Luaacro Quote Link to comment Share on other sites More sharing options...
julien-moreau Posted June 12, 2018 Share Posted June 12, 2018 Hey @dingoogle I'm not sure to understand, but to be sure: you would like to keep only the rays and have the current mesh hidden ? Quote Link to comment Share on other sites More sharing options...
dingoogle Posted June 13, 2018 Author Share Posted June 13, 2018 2 hours ago, Luaacro said: Hey @dingoogle I'm not sure to understand, but to be sure: you would like to keep only the rays and have the current mesh hidden ? Hi Luaacro, yes, I want to keep the rays and their animations, without mesh. I've tried to hide the mesh, or move it out of screen, then the rays gone. I'm not familiar with shaders, not sure whether it's possible to do that. Quote Link to comment Share on other sites More sharing options...
julien-moreau Posted June 13, 2018 Share Posted June 13, 2018 Looks possible, let's give a try ASAP and I will let you know Quote Link to comment Share on other sites More sharing options...
julien-moreau Posted June 18, 2018 Share Posted June 18, 2018 You can try this: https://www.babylonjs-playground.com/#V2DAKC#1 When you set the alpha to 0 for an obstable it gives what you want Quote Link to comment Share on other sites More sharing options...
julien-moreau Posted June 18, 2018 Share Posted June 18, 2018 @dingoogle missed to tag you Quote Link to comment Share on other sites More sharing options...
dingoogle Posted June 20, 2018 Author Share Posted June 20, 2018 On 6/19/2018 at 2:27 AM, Luaacro said: @dingoogle missed to tag you Hi Luaacro, many thanks for your time. Sorry that I should explain more clearly. I want something as below, only the rays in the view. Quote Link to comment Share on other sites More sharing options...
julien-moreau Posted June 20, 2018 Share Posted June 20, 2018 Oooooooooooh ! Finally understood! Unfortunately not possible using the current post-process you are using because it is just based on screen-space You should use the standard rendering pipeline instead : https://doc.babylonjs.com/how_to/using_standard_rendering_pipeline (look at the "Setting up volumetric lights" section) jerome 1 Quote Link to comment Share on other sites More sharing options...
dingoogle Posted June 22, 2018 Author Share Posted June 22, 2018 On 6/21/2018 at 1:53 AM, Luaacro said: Oooooooooooh ! Finally understood! Unfortunately not possible using the current post-process you are using because it is just based on screen-space You should use the standard rendering pipeline instead : https://doc.babylonjs.com/how_to/using_standard_rendering_pipeline (look at the "Setting up volumetric lights" section) Got it. Thanks Luaacro. I'll do more investigation. 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.