Der Schmale – David Lenaerts’s blog

Flash Platform Experiments

Parallax Mapping with Pixel Bender (still burning cpu’s)

Tags: , , ,

Aw man, Mr. Doob went ahead and made me all stoked about Pixel Bender again (and there goes my patience, curse your leet hide!). I went back to the parallax mapping effect from my last post to see if I could make it work more correctly in Pixel Bender (using the steep parallax algorithm). And since we’re using Flash Player 10 anyway, I made the surface rotate in 3D to illustrate the effect a bit better. Because of the lack of loops when using PB in FP10, it’s limited and some things could look a bit weird (especially since I’m exaggerating the effect here). Pixel Bender in Flash also has its speed limits, so this is still a cpu killer… As a result, I had to throw out the part handling lighting and self-shadowing :(

 

Enough rambling, here’s the demo (Flash Player 10 needed!):

  • demo for FP10 browser plugin
  • swf for the standalone player
  • the source (including pixel bender code)
Share and Enjoy:
  • Digg
  • TwitThis
  • del.icio.us
  • Facebook
  • Reddit
  • Netvibes
  • Technorati
  • Google

Tags: , , ,

4 Responses to “Parallax Mapping with Pixel Bender (still burning cpu’s)”


  1. Mr.doob
    on Oct 14th, 2008
    @ 12:52 pm

    Hahahaha! Awesome! Looks great! :D
    Thanks a lot for sharing the code! :)


  2. David
    on Oct 15th, 2008
    @ 11:28 am

    Hehe thanks, and no problem :) If only it could be faster, it might actually be useful :D


  3. Nick
    on Jan 15th, 2009
    @ 9:45 am

    Great work! Just sumbled across this – wondering if this will work in AE so I can render offline?
    Thanks
    Nick


  4. David
    on Jan 15th, 2009
    @ 10:54 am

    Hi Nick,

    Thanks :) I reckon it should work in After Effects, however it might be best to rewrite it just for that, so you can take advantage of loops etc :)

Leave a Reply

© 2009 Der Schmale – David Lenaerts’s blog. All Rights Reserved.

This blog is powered by Wordpress and Magatheme by Bryan Helmig.