Archived

This topic is now archived and is closed to further replies.

trigger

lens flare effect

Recommended Posts

hi all, i am trying to code a lens flare effect. i have a main flare wich moves in the background. after normalizing the main flare vector i use this vector and multiply it by different scalars and put at this position new billboarded flare textures. now my problem is that i dunno how to check if the main flare is covered by geometry. if so i wanna fade the lens flare effect down smoothly. i heared about several different technics to achive this efefct, one is raytracing the other is just reading the z-buffer. but i dont know how to do this and maybe i have not enought mathematical background who knows... so anybody can point me in the right direction. maybe some example code. best regards trigger

Share this post


Link to post
Share on other sites
hmm thanx,

but this tutorial is just about how to create lens fölare textures - the easiest part. maybe read it again i wanna know how to check it the mainflare..the position where the lightsource (sun or whatever) is is covered by geometry so that the flares are smoothly faded down and it totally disapperas from the screen.

trigger

Share this post


Link to post
Share on other sites