Tinic Uro - You Rock!

May 15th, 2008

Tinic Uro implemented a low-level sound API to pass Actionscript generated audio data to the sound card in the FlashPlayer 10. Needless to say, that we are all celebrating the next big thing in Flash.

Read on at Adobe, MAKE SOME NOISE | Countless more delightful features in FP10

Filed under: actionscript, announce | 3 Comments »



Away3D - A 3d demo convinces entirely

March 4th, 2008

We all know the current hype on papervision3d and I really admire the effort the whole team put into it. However I spend a lot of time talking to Fabrice Closier on the last Flash conferences and he pointed me to their latest demo. He almost let me forget, that we all still need to deal with linear texture mapping in Flash. The perspective texture correction is so convincing, I am really impressed. It is actually very difficult to keep control of it, while moving the camera close to polygons. So keep an eye on this engine as well. Great work, Fabrice!

Away3D | Papervision3D

Filed under: actionscript, links | No Comments »



Popforge Updates

August 12th, 2007

Joa & I are very busy at the moment contributing more stuff to our little open source project PopForge. There are lots of new stuff in the line. For now, I recoded the 909 from the scratch - hopefully less CPU intensive and with better sound quality. The sound samples and grains are now stored into a single file, introducing Joa's compressing FurnaceFormat. Quite elegant!

Source code 909 GUI | Source code Popforge package (including 909 processor)

Furthermore I have updated the AIR version of the 909. You can now stream a Wavefile to disk while playing your session. If AIR will be some day as distributed as the FlashPlayer, we will have good times. I like it. Joa is also preparing FUI, a smart and simple GUI Creationset to build UIs in actually no time. This will be a huge timesaver for creating and debugging synthesizer and effect devices.

Rock'N'Roll!

Filed under: actionscript, announce | 13 Comments »



Air909 - First Air Application

August 10th, 2007

I decided to give AIR a try building my 909 as an AIR application. It comes now with a chromeless, shaped window and save/load functionality to store the whole content (including the parameter values) of the 909 permanently to your harddrive. I have rewritten the 909 engine for making it open source in the next time. Everything should sound as before, even better and less CPU intensive.

Make sure you have the Adobe Integrated Runtime (AIR) installed.

Install Air909 and share your beats!

Please update to the latest version. There was a serious playback bug, that causes clicks.
NEW: Hold SHIFT while clicking START to save a WAV - stream directly to your harddrive!

Note: Make sure you save the file with the *.909 extension.

#

David Rowald captured me while playing around with the 909 and put it on youtube. Damm you ;)

Filed under: actionscript | 11 Comments »



Multitouchscreen AS3 controlled

July 10th, 2007

Oh well, I need such a device. It is so elegant to work with. This application by Tim Roth is above all controlled by AS3. If you speak german you can follow this thread in the german flashforum.

via Jens Franke

Read the rest of this entry »

Filed under: actionscript | 9 Comments »



Weird behavior of numbers in as3

June 5th, 2007

My colleague Bram de Jong at splicemusic did some tests with number types in arrays to find out, if we can save memory somehow. However his findings are rather not expected that way. Numbers can loose their type in an irreproducible way.

So lets try:

 
trace( getQualifiedClassName( uint( 0 ) ) ); // int
trace( '28bits', getQualifiedClassName( uint( 0x0fffffff ) ) ); // int
trace( '29bits', getQualifiedClassName( uint( 0x1fffffff ) ) ); // Number
 

Above all check this:

 
			var num: uint;
 
			for( var i: int = 0 ; i < 64 ; i++ )
			{
				num = 1 << i;
 
				trace( i, getQualifiedClassName( num ) );
			}
 

From 0 to 27 it is int
From 28 to 31 it is Number
From 32 to 59 it is int (again)
From 60 to 63 it is Number (again)

The disadvantage of this is that Numbers are slower in computation as well as reading, writing in an Array. And however it doesn't make any sense at all. Bram has already sent a note to adobe. I'll keep you updated.

Filed under: actionscript | 6 Comments »



SimpleMouseEvents (onReleaseOutside, onDragOut,…)

May 21st, 2007

Some of the most confronted issues in AS3 are the missing mouse events as onReleaseOutside, onDragOut, onDragOver and so on. I saw that question over all boards. While coding the TR909, I had the same problem and I tried to figure out a common solution. I wrote a wrapper class, which adds itself as a listener to the passed target object. It takes care of the fact, that the stage can be null (required for releaseOutside) and the stage focus. It also provides (if necessary) the trackAsMenu mode to receive onDragOut, onDragOver, if the target itself doesn't have the focus.

source code + sample application

Filed under: actionscript | 9 Comments »



Flash sound issues on vista

May 18th, 2007

I installed Windows Vista today and besides having problems getting familiar with the new look and locations of stuff, I found that the onSoundComplete event is completely out of time on any player I tested. So even in the standalone with the classic design it is really glitchy. Damm, this breaks my flow in programming audio stuff for flash. I am really thinking of getting back to XP for the time it isn't fixed. I found this blog entry, but I do not have the sound card settings as him.

Any change to get some official notes on this?

Filed under: actionscript | 11 Comments »



APE (Actionscript Physics Engine)

May 10th, 2007

Alec Cove released a new demo of his physics engine APE. It is really impressive and runs very smooth.

Worth a visit!

Filed under: actionscript | No Comments »



cubicvr is opensource again on popforge

November 17th, 2006

No further developing from my site, since I'm too busy with more important projects :)

cubicVR

Filed under: actionscript, announce | 3 Comments »



Scratch My Back !

August 6th, 2006

http://lab.andre-michelle.com > F9: Audio > scratch

Make sure you have a fast computer, since I adjust a very small latency to get almost immediately feedback on you movements.

Scratch My Back !

Filed under: actionscript | 4 Comments »



Supermario Modplayer

July 31st, 2006

Everything seems to be possible now. After implementing a lot of new features to my current AudioBufferEngine, Joa Ebert pointed me directly to the mod-format. There are tons of songs outside in the net. Here is just the first one and of course, it has to be Super Mario. Underlay your flashgames with 8bit music.

Read the rest of this entry »

Filed under: actionscript | 7 Comments »



Flex2 Beta3 disappointments

May 9th, 2006

I cannot couch my disappointment about the current beta3 related to the BitmapData.setPixel method.
A simple test confirms, that the setPixels method is now 30% slower than before. After that test, I converted my 3dengine (beta2) to the current beta3 and the framerate drops from 76 to 55FPS. So, simply put, I will abort the research about-perspective texture-mapping in AS3.

I know, there are many wonderfull things to do with AS3, but hey, it was is still a dream...

Filed under: actionscript | 20 Comments »



AS3 Sound Radar

April 25th, 2006

flash 8.5 player required | source

Filed under: actionscript | 9 Comments »



Missing things TOP3: Solid FPS

April 18th, 2006

A lot of new features are coming up these days, but the main problems for me in 7 years of developing flash havn't changed. These are not single feature requests, they are essential and annoying in my daily work and it's overdue to change them.

Read the rest of this entry »

Filed under: actionscript | 23 Comments »



Recycle my source codes

April 13th, 2006

I'm just trying to collect all sources spreaded over my website.
Includes the perspective texture mapping and a lot of other as3 stuff.

Filed under: actionscript | 8 Comments »



SoundMixer.computeSpectrum

March 30th, 2006

flash 8.5 player required | source

Filed under: actionscript | 23 Comments »



AS3 Light Tapes

March 23rd, 2006

flash 8.5 player required | source
screenshot

Filed under: actionscript | 6 Comments »



AS3 Bresenhams line algorithm

February 23rd, 2006

here is an implementation of the bresenhams line algorithm. I tried to avoid the Math.abs, which I found in most source or pseudo codes. I think, this couldn't be much faster in AS3. I'm developing a custom line algorithm, cause its the first step trying to code an own texture mapper, since the one I used is ported from C.

Here it is:

 
private function bresenham( x0: int, y0: int, x1: int, y1: int, value: int ): void
{
	var error: int;
 
	var dx: int = x1 - x0;
	var dy: int = y1 - y0;
 
	var yi: int = 1;
 
	if( dx < dy )
	{
		//-- swap end points
		x0 ^= x1; x1 ^= x0; x0 ^= x1;
		y0 ^= y1; y1 ^= y0; y0 ^= y1;
	}
 
	if( dx < 0 )
	{
		dx = -dx; yi = -yi;
	}
 
	if( dy < 0 )
	{
		dy = -dy; yi = -yi;
	}
 
	if( dy > dx )
	{
		error = -( dy >> 1 );
 
		for( ; y1 < y0 ; y1++ )
		{
			output.setPixel32( x1, y1, value );
			error += dx;
			if( error > 0 )
			{
				x1 += yi;
				error -= dy;
			}
		}
	}
	else
	{
		error = -( dx >> 1 );
 
		for( ; x0 < x1 ; x0++ )
		{
			output.setPixel32( x0, y0, value );
			error += dy;
			if( error > 0 )
			{
				y0 += yi;
				error -= dx;
			}
		}
	}
}
 

watch here Flash8.5Player required

Filed under: actionscript | 10 Comments »



Missing AS3 examples

February 16th, 2006

I'm converting my AS3 examples from time to time to the current BETA built. I will update this posting, whenever an example is updated to the current flash8.5player.

Perspective Texture Mapping Thanks to Denis Chait for the 3dMax scene
: Nice adaption with a video, projected onto the wall (speaker: Blixa Bargeld)

200 Circles coliding | source

BitmapCloud 9180 particles | source

Stay tuned.

Filed under: actionscript | 15 Comments »



AS3 Simple Slider Implementation

December 8th, 2005

For those, who need a quick slider implementation to change some values in runtime, here is my first attempt using the new event possibilities in Actionscript3.
The package provides custom different SliderView implementations via an interface.

watch flash8.5player required | source

Filed under: actionscript | 7 Comments »



AS3 Explosions (BOOOOM!!!)

December 7th, 2005

Lets get rowdyish with 1000 particles each explosion, a blurfilter and a new color palette. Download the sources and play with the parameters. Boooom !!!

flash8.5player required

Filed under: actionscript | 6 Comments »



AS3 Chip8 emulator

December 7th, 2005

joa ebert has done the first step in emulating a chip8 in Actionscript 3.0. I could imagine, that someone will run a c64 or mame emulator with AS3 in an acceptable performance. joa also provides the source codes in his post. Take a look.

Filed under: actionscript | 2 Comments »



AS3 Particles in a 3d model

December 5th, 2005

Nothing more to say except the model is now imported as a 3ds file.
No sources. It's a fast and ugly hack.

Particles in a 3d model flash8.5player required

Filed under: actionscript | 6 Comments »



AS3 Particles in a 3dcube

December 3rd, 2005

Just another short implementation of 2500 particles reflected by the cube boundings. hold the mouse to move to particles to the center.

Particles in a 3d cube flash8.5player required
source code

Filed under: actionscript | 17 Comments »



AS3 Particles and Lines

December 2nd, 2005

Particles are really fun to play with. Here is another 2D example with line collisions. Click and drag to draw a line. You can also move the endpoints. Releasing an endpoint below or above the stage will remove a line. The collision detection is done by finding the intersection from the line and the moving path from each particle (672).

Particles and Lines require flash8.5player

Try your own bitmaps -default-size 256 384 -default-frame-rate 120 -optimize

Filed under: actionscript | 4 Comments »



AS3 BitmapCloud 3D

December 2nd, 2005

A short study to test, how many 3D particles could be rendered in AS3. Seems a huge. The code scanlines a bitmap and creates 3D coordinates with a random z-value. The computed x,y values result a normal 2D view, when projecting without further transformation. By clicking the mouse button, you can rotate the particles in 3d space. In this case, I'm rotating and projecting 9180 particles.
try your own pictures -default-size 256 256 -default-frame-rate 120 -optimize

BitmapCloud 3D (require flash8.5player)

Filed under: actionscript | 8 Comments »



Sourcecodes max-spark-05

December 2nd, 2005

A bit late, but as promised the sources from the previous conferences in korea and amsterdam. The ZIP includes my sleazy attempt of a winamp like music visualisation and lots of undocumented stuff, I have shown during the sessions. You are welcome to play with.

Filed under: actionscript | 6 Comments »



AS3 optimations & suggestions

November 9th, 2005

AS3 rocks, but hey (arg), I still need more performance. First of all some findings.
Read the rest of this entry »

Filed under: actionscript | 13 Comments »



Hashed Slowmotion Camera

November 8th, 2005

I have no idea, if this could break your computer, since I'm using a lot BitmapData instances, while applying this effect. Be carefull.
But if it's running fine, you can do thinks with yourself, you didn't noticed before, hehe. I cannot stop making faces with it.

8ball lab | camera/motion_hash (flash8player & webcam required)

Filed under: actionscript | No Comments »



AS3 Raycaster

November 2nd, 2005

A fast implementation of a raycaster. You can move forward by pressing the mouse button. This version also provides a camera roll and height, ceil and floor tiles. To boost up the code, I'm using a lookup table for sin, cos, tan and massive bitshifting. The code is accordingly unreadable. What I'm really missing is a typed Array with simple bytes to write faster code, just reading RGB values. I have the feeling, that the getPixel method is too slow. This causes the small stage (240x160px).

as3 raycaster flashplayer 8.5 needed
[leaving the map causes missing walls]

raycasting as3

Filed under: actionscript | 18 Comments »



AS3 Sweet lightning particles

October 28th, 2005

Over thousand particles with little scalings on the buffer bitmap can look really sweet.
Read the rest of this entry »

Filed under: actionscript | 36 Comments »



AS3 Performance

October 28th, 2005

This is an old experiment from flashmx times. After converting to AS3, I'am really exciting. While the optimized AS1 version makes up to 12 circles, the new version can handle 200 very easily. Note that these are 19900 distance calculations each frame plus moving, bounding and resolving the detected collisions. No problem to imagine, that you can write a 9ball billard application which high resolution physics.

200 circles coliding : flashplayer8.5 needed

//-default-size 256 256 -default-frame-rate 120

Filed under: actionscript | 2 Comments »