Generative Portrait 2

Lire la suite

Generative Portrait

Lire la suite

WOW-Engine 0.3 Preview : Sphere of spheres

Lire la suite

WOW-Engine 0.3 Preview : Your skin is so soft!

Hi there,
This little demo showing the brand new SoftBody class included in the new upcoming version of WOW-Engine (AS3 verlet physics engine)
it take advantage of Worker, shareable ByteArray and Mutex.
The stage3D rendering engine is Away3D.
To create a SoftBody, you jsut need a 3D Mesh with vertices using Vector.<Number>, the vertices can be unique or not.
Click to add impulse, and move your mouse to interact.

Lire la suite

WOW-Engine 0.3 Preview : Falling balls?

Hi there,
This little demo showing more than 300 ball using the new upcoming version of WOW-Engine (AS3 verlet physics engine)
it take advantage of Worker, shareable ByteArray and Mutex.
The stage3D rendering engine is Away3D.

Lire la suite

AS3 Concurrency/Workers : using shared ByteArray and Mutex

Hello there,
je vais vous parler un peu des Workers récemment implémentés au Flash Player 11.4.
Autant vous le dire tout de suite, vous ne pouvez pas passer à coté de cette nouvelle classe.
Chaque Workers utilise une instance de la machine virtuelle (MV) du player Flash (FP) qui s’exécute en background de votre application.

L’intérêt est donc de faire tourner du code en arrière plan pour alléger la MV principale, celle qui affiche votre application.
Il est bien sûr possible de communiquer entre les différents Workers de différentes manières :
- en envoyant des messages via MessageChannel.send()
- en partageant un ByteArray (BA) (depuis le FP 11.5) dont l’instance sera accessible par tous les Workers.
Lire la suite

Stage3D version of Enlarge your pants : Amazing performances!

Enlarge your (pants, slips or underpants) was developed with AIR for mobile devices using blitting technic.
It takes now advantage of Stage3D using Starling‘s mod (quick drawing, dynamic Texture packer).
This is a demo of the game running with a solid 60fps framerate. The original game is available on Android Market, Apple Store and Blackberry App World and will support Stage3D when it will come out with AIR3.

Try the game.

You need Flash Player 11 to run the game.

3D pathfinder

you need flash player incubator to see this demo

Grid map generator

Damn it, I worked too much on it, i can see the map turning when i look at this JPG
next post i’ll show you a 3D pathfinder on it.

you need flash player incubator to see this demo

Line experiment in Away3D 4

i work on some class to show « line » in away3d 4
this is « line » with always the same tickness on the screen
the final purpose is to generate wireframe , grid, helper and of course cool shit

*update* i add a grid on the floor and axis helper

you need flash player 11 to see this demo

Code source:

package {
	import away3d.arcane;
	import away3d.cameras.lenses.PerspectiveLens;
	import away3d.containers.View3D;
	import away3d.debug.AwayStats;
	import away3d.entities.SegmentSet;
	import away3d.primitives.WireframeAxesGrid;
	import away3d.primitives.LineSegment;
	import away3d.materials.ColorMaterial;

	import flash.display.Sprite;
	import flash.display.StageAlign;
	import flash.display.StageScaleMode;
	import flash.geom.Vector3D;

	use namespace arcane; 

	[SWF(width="700", height="700", frameRate="60")]

	public class MainLine extends Sprite {

		private var _count : Number = 0;
		private var view: View3D;
		private var grid : WireframeAxesGrid;
		private var lines : SegmentSet;

		private var distance : Number;
		private var lastVector : Vector3D;
		private var lastColor : Number;
		private var nextVector : Vector3D;
		private var newColor : Number;
		private var tempColor : Number;

		public function MainLine() {
			stage.scaleMode = StageScaleMode.NO_SCALE;
			stage.align = StageAlign.TOP_LEFT;


			lines=new SegmentSet();
			grid=new  WireframeAxesGrid(10,500,.25,0x666666,0x666666,0x666666);

			lastVector=new Vector3D(Math.sin(_count) *distance,Math.sin(_count * .54) * distance,Math.cos(_count) *distance);


		private function setupView3D() : void {
			view = new View3D();
			view.antiAlias = 2;
			view.backgroundColor = 0x333333; = -1500; = 1000; = -1500; Vector3D(0, 150, 0));;;
			( as PerspectiveLens).fieldOfView=45;

			/*addChild(new AwayStats(view));
			var sign:SignAway=new SignAway();sign.y=700-280;
			addEventListener(Event.ENTER_FRAME, _handleEnterFrame);


		private function _handleEnterFrame(ev : Event) : void {

			_count += .1;
				nextVector=new Vector3D(Math.sin(_count)*distance,Math.sin(_count*.48 ) * distance,Math.cos(_count) *distance);
				newColor= tempColor << 16 | tempColor*.7 << 8 | 0;
				lines.addSegment(new LineSegment(lastVector, nextVector,lastColor,newColor,2+tempColor/100));
			} = Math.sin(_count*.05) * 2000; = 900; = Math.cos(_count*.05 ) * 2000; Vector3D(0, 0, 0));