joshcamas Posted October 26, 2014 Share Posted October 26, 2014 Hey guys! I'm in the middle of setting up a day-night system for my game. I have this lovely sun that goes around... And a flaresystem... Then when the sun goes down, you can still see the flares. In other words, the flares go through walls and meshes and stuff. How could this be fixed? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted October 27, 2014 Share Posted October 27, 2014 Just set mesh.isBlocker = true and you're done meteoritool 1 Quote Link to comment Share on other sites More sharing options...
joshcamas Posted October 27, 2014 Author Share Posted October 27, 2014 oh..... Thanks! XD Is there a planned feature to make the flares fade or something when their partly hidden, or something? Cause the flares no worky for sunsets and such. :3 On a slightly different matter:Is it possible to detect whether a ray "intersects" a sprite? I need this to make the flares filter through the clouds. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted October 28, 2014 Share Posted October 28, 2014 If clouds are done using not sprite but mesh with BILLBOARDING, this will work Quote Link to comment Share on other sites More sharing options...
meteoritool Posted March 25, 2016 Share Posted March 25, 2016 The .isBlocker parameter should be documented in the LensFlare tutorial (I don't know how to do this myself) It solved my "LensFlare occlusion by a mesh" problem, it doesn't work with checkCollisions, unlike what is said in the doc... thx again @Deltakosh ! Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted March 25, 2016 Share Posted March 25, 2016 Please just read this to help with documentation meteoritool 1 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.