Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 21 Mar 2013
Offline Last Active Apr 05 2013 05:43 AM

Topics I've Started

[DX9] Blur with variable radius

27 March 2013 - 05:51 AM

Please advice blur with variable radius with good quality for entire screen.


I've read advice to use separated gaussian blur x, y axis. However all examples were for certain fixed radius. How to implement variable radius?


Also it's important to avoid moire artefacts for animated objects inside blurred scene. We tried downsampling + spline and it gave moire defects.



[DX9] How to correctly render several alpha textures to alpha RT?

21 March 2013 - 08:52 AM

I need to render several alpha textures (PNG images - photos and text) to 32-bit alpha RT. And then render alpha RT to backbuffer. This is for 2D multimedia app.


D3DBLENDOP_ADD doesn not mix correctly layers. The result is not same if I render alpha textures directly to 24-bit backbuffer.


In other words, I need same alpha blending as used for layers in Photoshop (by default).


I know alternate solution with rendering of each alpha texture to RT and then use shaders. But it works slow because of multiple switching of rendertargets for each alpha texture.