Michael Jackson Pearl Jam Stevie Ray Vaughan Ozzy Osbourne Finntroll MP3 list A Fine Frenzy Capone Phil Collins Shakira Pink Floyd Keane

Archive for the 'Notes' Category

Off Topic: Spore Islands AS3 Facebook Game

sporeislandsimage

We just wanted to share the great news about the release of Spore Islands on Facebook.

Woven Interactive had the privilege to assist Area/Code with the client programming on Electronic Arts new Spore Islands Facebook game. Spore Islands is EA’s first Facebook and social media game.

Try it out on Facebook:
http://apps.facebook.com/sporeislands/

Learn more about Woven Interactive or read more about this project on our interactive blog.

Post to Twitter Post to Delicious Delicious Post to Digg Digg This Post Post to Facebook Facebook Post to StumbleUpon Stumble This Post

Playing with filters

I've been playing with applying flash filters to the viewport object and wanted to share a few examples of what can be done!

This is NOT the effects branch of papervision, this is simply applying filters onto the viewport object, really simple and fast, check it out:

Cel Shading!!

"Dazed" Effect:

Shadow:

How cool is that?! Fast too.

Cel-Shading Code:

Actionscript:
  1. package 
  2. {
  3.  
  4.     import org.papervision3d.objects.DisplayObject3D;
  5.     import PaperBase;
  6.     import org.papervision3d.objects.parsers.Collada;
  7.     import org.papervision3d.materials.BitmapFileMaterial;
  8.     import flash.filters.*;
  9.  
  10.     public class Main extends PaperBase
  11.     {
  12.  
  13.         public var cow:DisplayObject3D;
  14.         public var filter:GlowFilter = new GlowFilter (0x000000,1,5,5,50,1,false,false);
  15.  
  16.         public function Main() {
  17.             init(300, 200);
  18.             viewport.filters = [filter];
  19.         }
  20.  
  21.         override protected function init3d():void
  22.         {
  23.             cow = new Collada("http://papervision2.com/wp-content/downloads/dae/cow.dae");
  24.             cow.moveDown(100);
  25.             cow.scale = 3;
  26.             cow.pitch( -30);
  27.             default_scene.addChild(cow);
  28.         }
  29.  
  30.         override protected function processFrame():void
  31.         {
  32.             cow.yaw(5);
  33.         }
  34.     }
  35. }

Try changing the line:
public var filter:GlowFilter = new GlowFilter (0x000000,1,5,5,50,1,false,false);

To one of the following:
public var filter:BlurFilter = new BlurFilter();
or

public var filter:BevelFilter = new BevelFilter();
or any other filters you can think of!

Have fun :)

Post to Twitter Post to Delicious Delicious Post to Digg Digg This Post Post to Facebook Facebook Post to StumbleUpon Stumble This Post


Follow WovenCharlie on Twitter

Flash and the City banner
2010 Flash And The City Speaker

RSS Feed