developer
developer

Reputation: 678

DirectX 9 HLSL Glow Effect

There are multiple rings on the screen as shown. enter image description here The requirement says that the user can select any of the rings and the selected ring should undergo glow effect(glow for few seconds then become green).enter image description here All graphics rendering is to be done using DirectX 9 + HLSL. The problems I am facing :

Upvotes: 0

Views: 2471

Answers (2)

Gnietschow
Gnietschow

Reputation: 3180

If you want to have glowing lines and don't use the glowshader for anything else you could make your lines glowy with a "thick" line and a appropiate texture as in following picture:

Methode

That would be much easiert to implement and much faster then the other approach :)

Upvotes: 0

Gnietschow
Gnietschow

Reputation: 3180

You should work with different rendertargets (Documentation of SetRenderTarget). First you render all not-selected rings to the backbuffer. Then you draw the selected ring to an extra texture as a rendertarget. Your glowshader make this texture glowing and finally you render the texture to the backbuffer. So your green ring is glowing and the others aren't effected by the glowshader.

Upvotes: 1

Related Questions