Re: [Algorithms] Blurring in HLSL
Brought to you by:
vexxed72
From: Oscar F. <os...@tr...> - 2009-06-16 20:54:39
|
What sort of blur do you want? (ie full screen?) What sort of kernel do you want to use? (ie Gaussian?) What sort of hardware are you targetting? I'd be very surprised, though, if you could beat a 2 pass (horizontal then vertical) blur though. To do the equivalent in a single pass would require a stupid amount of samples. The 2 pass 7 tap per pass gaussian blur (ie 14 samples and 2 writes per pixel) would require 49 samples and 1 write per pixel to do in a single pass. I'd be very surprised if you could get an equivalent blur for the same cost as doing 2 passes. I'll be very interested if some can show me an equivalently good single pass method, but I doubt they will ... Oscar 2009/6/16 Zafar Qamar <zaf...@co...> > Hi All, > > Thanks for all the help you people have given me in the past. > > A question about blurring. > I want to do a soft blur in HLSL. Preferably in one-pass. > I've read lots of stuff but I want to know if anyone has managed to come > up with a solution that works in one-pass and achieves a soft blur, AND > is fast. > > Any help much appreciated. > > Cheers > Zafar Qamar > > > ********************************************************************************** > Disclaimer > > The information and attached documentation in this e-mail is intended for > the use of the addressee only and is confidential. If you are not the > intended recipient please delete it and notify us immediately by telephoning > or e-mailing the sender. Please note that without Codemasters’ prior written > consent any form of distribution, copying or use of this communication or > the information in it is strictly prohibited and may be unlawful. > > Attachments to this e-mail may contain software viruses. You are advised to > take all reasonable precautions to minimise this risk and to carry out a > virus check on any documents before they are opened. > > Any offer contained in this communication is subject to Codemasters’ > standard terms & conditions and must be signed by both parties. Except as > expressly provided otherwise all information and attached documentation in > this e-mail is subject to contract and Codemasters’ board approval. > Any views or opinions expressed are solely those of the author and do not > necessarily represent those of Codemasters. > > This footnote also confirms that this email message has been swept by > SurfControl for the presence of computer viruses. > > ********************************************************************************** > > > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > GDAlgorithms-list mailing list > GDA...@li... > https://lists.sourceforge.net/lists/listinfo/gdalgorithms-list > Archives: > http://sourceforge.net/mailarchive/forum.php?forum_name=gdalgorithms-list |