Click here to Skip to main content
15,886,639 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
can any one tell me how to create a StarBurstFilter using Directx9.0(HLSL),
as I am new in this so please help me and provide me proper direction to
create a starBurstFilter.If any one haveing good link or book then please
provide me.



Thanks,
Vikram
Posted

1 solution

StarBurst filter is the filter which creates the sparkles on area which passes
the user defined luminance range.

There are following steps to create the sparkle :

1 ] First of all we check the luminance value of each pixel( i.e first we did the Luma testing )
and if it passes the user defined range of the luminance then we returns white color otherwise
we returns black.

2] Then apply streaks on the bright region only. We creates the streaks in three direction
seperated by 60 degree from each other.

3] And then calculate Intensity,we stores the intensity of three streak in .r, .g and .b
componet of the color and intensity in the .a component of the color. After that for length,
orientation, intensity and center burst amount we apply the blur technique.We uses maximum
10 pixel blur i.e. 5 pixel in one direction and 5 pixel in opposite direction from the center
for the single streaks.

4] Finaly we blends the streaks and the original texuture color.

So I have got the atarBurst Effect....
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900