lens flare effect
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
http://trigger.xenyon.net/
http://www.blackpawn.com/texts/lensflare/default.html
========================
Leyder Dylan
http://ibelgique.ifrance.com/Slug-Production/
========================
Leyder Dylan
http://ibelgique.ifrance.com/Slug-Production/
========================Leyder Dylan (dylan.leyder@slug-production.be.tf http://users.skynet.be/fa550206/Slug-Production/Index.htm/
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
but this tutorial is just about how to create lens fölare textures - the easiest part. maybe read it again

trigger
http://trigger.xenyon.net/
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement