Drawing rabbits with WPF pixel shaders


crossposted on labs.boulevart.be

I’m a big fan of writeable bitmaps.
When drawing more then 1000 items on screen writeable bitmaps performs a zillion times better then individual objects.
Based on WriteableBitmap Class MSDN sample it’s peanuts creating a fullscreen drawing application.
After modifying DirectionalBlur shader from the WPFFX I got the this little drawing app.

The above demo was done on a MSI windtop touchscreen (dual core 1.5Ghz Atom CPU)

download

Use M to (de)activate the mouse.
Use F to toggle fullscreen.
Use ESC to exit the application.

3 Responses to “Drawing rabbits with WPF pixel shaders”

  1. Mark says:

    Hi, Nice sample!

    I am also looking into writeablebitmaps/pixel shaders to perform really high intensive graphic effects, but Im a bit in-experienced, do you think you could send me the source code for this just so I can have a look at how you go about doing this?

    Thanks
    Mark

  2. [...] Crossposted on: Lab101 [...]

Leave a Reply


lab101 is proudly powered by WordPress
Content and design by Kris Meeusen
Entries (RSS) and Comments (RSS).