Reputation: 678
There are multiple rings on the screen as shown. 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).
All graphics rendering is to be done using DirectX 9 + HLSL. The problems I am facing :
Upvotes: 0
Views: 2471
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:
That would be much easiert to implement and much faster then the other approach :)
Upvotes: 0
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