Archive for the ‘papervision3d’ Category

Papervision3d text effect, using anti-aliasing for “rounder” 3d “shapes”

Thursday, January 10th, 2008

I’ve been wanting to do this for ages… Matter of fact, this was meant to be my “end of the year” post for 2007, but you know…

So, same old trick descending my sleeve. Create text, grab BitmapData from it, loop though its pixels and represent them with DisplayObjects.

Again, the ‘trick’ is to check which pixels are transparent. An interesting quality of Anti-Aliased text is that the “rounded” or “Anti-Aliased” pixels are the color of the text, except with varying transparency, meaning the text looks good on any color background.

I took advantage of this by generating “thicker” rows in the Z plane for darker pixels… Hard to explain in words, but let’s allow the screenshots and the app speak for themselves.


text effect screenshot, sakri
text effect screenshot, .net
text effect screenshot, blog
text effect screenshot, FTW!

Click here to fiddle with my toy… :ooh:

click here, or right click app for source

Naturally, the number of Planes makes it more or less impossible to animate the camera with an EnterFrame or so… It’s still cool to see the camera move around using direction keys. Perhaps with Seb Lee-Delisle’s frame by frame movie generator thingy-ma-bob…

Oh yeah, you’ll probably need a decent screen resolution for this… I didn’t bother optimize, for those screen challenged readers, I apologize.

Snow flakes. Flex3 cairngorm papervision tweener snow flakes…

Thursday, December 20th, 2007

Enough buzzwords for you? I wanted to use BlazeDS, but the buzzword overlords were not that kind with me ;) Just good ol’ E4X.

Two years ago we (nascom) made the same thing for club vaio. Unfortunately the old version is gone :( . It was as2 and some “custom 3d” (lol). Customized snowflakes has been done before by others (can’t find links), Seb Lee Delisle made a more realistic snowfall a few weeks back (thumbsup), but this project still has it’s merits :) The project was sold, with the premise of reskinning the old app, but it quickly became apparent that rebuilding from scratch using a more modern approach would be faster. (How things change in just two years!? :ooh: ) Using Flex and Cairngorm made the development extremely rapid and enjoyable. I spent 6-7 working days on this. I was encouraged to go for papervision (and tweener) by Lee Brimelow’s papervision3d experiments, mainly I was impressed with how he could achieve such a nice effect with so little code.

Anyway, here’s the screenshots :

snow fall screenshot

Snow fall, I have a basic ‘random wind engine’ using tweener. I set the max number of flakes to 25… on crappier machines more meant creeping slow death.

flake detail screenshot

I’m quite happy with the “random floating” of the detail flakes…


create your own flake screenshot

That’s supposed to be my favicon smiley d00d… quite the artist I am… :buttrock:

Behold, The Hercules-Trophy Snowflakes greeting app!

deep link directly to the flake pictured above

Ok, Holidays start here. Happy holidays, more exciting blogging in 2008!

:pirate: