I found another way to make real lens flare, combine with my lens dirt based on quality mod 1.9x, but still currently i only know the way to make it fit my level, and it will only work for sunlight; the update time can be adjusted shorter, so it will be smoother.
Post Topic: Re: Custom lens dirt & Lens Flare effect
Posted 03.04.2013, 14:13
It soon but now it will only work for my sun direction, because I used ray cast to sun direction to test if anything blocked the sun, the coordinates of those flare is determined by a camera yaw and pitch according to the sun, and my environment map of the plane that attached to the camera, it process by me that only fit my sun direction. I ll see if I can transform time of day and sun longtitude, latitude into camera yaw and pitch, but it will be hard to make the environment map usable in any level. For the ray direction, it's a bother hard thing to solve. Anyway, I ll post it soon and we can find a way out.
Post Topic: Re: Custom lens dirt & Lens Flare effect
Posted 03.04.2013, 18:53
^ For freeSDK it is not necessary, since Crytek preparing to release new version 3.5+ with already options for lens flare. This will be great for modSDK.
Post Topic: Re: Custom lens dirt & Lens Flare effect
Posted 03.04.2013, 19:48
Quote by promuckaj:
^ For freeSDK it is not necessary, since Crytek preparing to release new version 3.5+ with already options for lens flare. This will be great for modSDK.