To content | To menu | To search

Wednesday, November 26 2008

AS3 Perlin Plasma Class

During my experiments i spent some time on perlin effect to create a plasma effect.

The most useful in perlin noise are octave offsets that can create the perlin movements, so the PerlinBD class extends the BitmapData class and provide simple way to manage octave offsets movements.

So here is a simple way to create a moving perlin noise to create a plasma effect :

// create new PerlinBD as normal BitmapData (width; height, alpha, color)
perlinBmp = new PerlinBD(550, 400, true);


// set 3 octaves effects (means 3 points offsets)
perlinBmp.setOctaves(3);

and then using Event.ENTER_FRAME, just call :

perlinBmp.updatePoints();

The perlinBmp instance has different properties to modify the plasma effect :

  • number of octaves
  • greyscale
  • offset points directions (coords, direction, angles, speeds)

Each of octave point direction is changing slightly so that the plasma effect is not repetitive.

In this example, i added an AdjustColor Filter (directly on movieclip) to increase the effect :

The sources can be donwloaded here :

Thursday, November 13 2008

AS3 Librairies

Lately i had time to look forward in AS3 scripting, and i focused on 2D physics API like APE or Flash2DBox.

And after few searches i found the google keywords that lead to interesting links, i think they are worth to share :

- Adrian Parr's blog : http://www.adrianparr.com/?p=83

this page is amazing, gathering many libraires as 2D/3D physics engine, tweening, frameworks, various APIS like Facebook, ....

- Free Flash scripts http://www.free-flash-scripts.com/

Another pool of as3 classes and API where you can find system files classes such as : png/jpeg encoder, zip class, pdf exporter, ......

With these 2 links, i guess everyone will find something intersting.

Papervision - Import Cinema4D dae

For my first attemps in Papervision3D development, i focused on Collada import.

One of the great features of Papervision is the Collada import capabilities (through .dae scene files).

As i got a body export from Cinema4D (which does not need extra plugin to export), i wondered how could i import this scene into papervision.

So i tried some online tutorials which used the ASCollada class to import dae files, but i still had a compilation error.

After few more searches i found an article where the native DAE parser from papervision package was used.

And finally i managed in importing my Cinema4D .dae file, so here is the result :

In this example you'll find the following features :

  • DAE file import (from Cinema4D Collada export)
  • FlatShade material
  • Composite Material

The sources can be donwloaded here (including papervision package)

Wednesday, November 12 2008

SamyStudio MyLib AS3 components

If you have already seen the Adobe components limits, SamyStudio created an great set of AS3 components called "myLib" which include the following components :

  • Button
  • CheckBox
  • ComboBox
  • Label
  • List
  • MouseScroll
  • PanoramaScroll
  • RadioButton
  • ScrollBar
  • ScrollPane
  • Slider
  • TextArea
  • TextInput
  • MediaPlayer.

Once installed, these compenents appear in the components panel.

Personnaly my favourite is the wonderful combobox which is a pain to code.

The set comes with a whole API documentation, i guess this was a hard work to do so thanks a lot SamyStudio, great job !

click here for official site

Sunday, October 19 2008

Music finder

Maybe you know Shazam wich allows mobiles & iPhones owner to recognize a music from a 10 seconds recorded sample ?

So have a look to : http://www.shazam.com/

How does it works :

You are hearing a song you like but you don't know who is the artist... Record a sample to your mobile/iPhone, and thanks to its huge database this tool is capable of finding the entire music informations.

But Shazam made me think of another old web flash application i saw a long time ago .

This funny small app asks you to tap the music rythm you are thinking of, and it discovers it very fast.

It is called : Song Tapper

Just click the link and test it :)

Wednesday, August 6 2008

Eclipse undelete option

Thanks god eclipse has its own undelete option !!!

Continue reading...

Tuesday, August 5 2008

AS3 gotoAndStop & gotoAndPlay issue

Here is a little trick that may help you to target items on scene right after a gotoAndStop/gotoAndPlay

Continue reading...

Wednesday, July 16 2008

AS3 8BitBoy in Flash 9 IDE

Flex to Flash IDE conversion of the amazing 8Bitboy project, with an extra example, yipee !

Continue reading...

Tuesday, July 8 2008

AS3 Bezier blobs/metaballs

My latest AS3 investigation using the graphics & mathematics capabilities of Flash player.

Continue reading...

Saturday, June 28 2008

AS3 - Blurred Camera

Here a fast experiment of as3 and video handling, enjoy !

Continue reading...

Saturday, May 24 2008

LeCrabe site updated !

Almost 1 year without any update.....

Continue reading...

Sunday, April 6 2008

Finally the Smoother component is here !

After several people asked me about a more complete sequel of the Smooth class, here is a brand new component

Continue reading...

Tuesday, February 19 2008

PS3 Flash Test

Quick benchmark of the Flash player in the PS3 browser.

Continue reading...

Wednesday, January 30 2008

JSFL - Flash Texts to HTML (for webranking)

Here is a jsfl script in order to extract texts from fla files and improve your site webranking

Continue reading...

Tuesday, January 22 2008

LunarExpress - A whoseGame contribution

Try my last contribution to the whosegame community

Continue reading...

WhoseGame adventure engine

My last month project was the main platform engine for this nice game community

Continue reading...

Whosegame game portal

Creates games and share them on the Whosegame community

Continue reading...

Saturday, November 24 2007

StreamPlayer - the Streamedia FMS 2 Videoplayer

An sweet little video player for easy video campaigns.

Continue reading...

AS2 EventManager class

An easy alternative to the dispatchEvent class from adobe to deals with events in a project.

Continue reading...

Sunday, September 30 2007

3D array cpu access benchmark

Here is an as2 benchmark between 2 forms of 3Darray object.

Continue reading...

- page 1 of 3