Draw on object in away3D tutorial

By request here is a small tutorial about “everything is in the title”.
Imagine, you wan’t to draw something on a mesh, exactly where your mouse is hitting the object, or when using movieMaterial, 
you wanna add a movie, sprite or whatever, create a hotspot, etc…
That doesn’t seems so easy, dealing with  many projection concept, and well, [...]

Clay (uv modifier)

A small experiment with the UVMapModifier (FP10).
A first step to my new sound experiment : “the clay sound modeler”.
Soon, with sources, you’ll learn how to draw on object with away3D, how to manage perlin deformation without AsMod.
I’ll release the source during the week.
enjoy.

away3D lite 44k 3D galery

 
Diving into the last away3D branch aka away3D lite.
I wanted o create a small, lightweight, XML galery of 3D objects, for 3DS files, a simple starter kit for beginners so I made it a simple fla file (I’ll create a more Classy one later).
Here are the sources. Here is the demo.
Simply edit XML and models [...]

Empty circle Container Box2D

Whow !  Two as3 post this morning !
(I have a list of about hundreds of post to publish, so it’s a great day !)
A simple trick to create empty circle in Box2D, you can full with whatever you wan’t !

function createContainer(def:int=24,radius:int=260,X:Number=290,Y:Number=250):void{
var composite:b2Body;
var composite_def:b2BodyDef = new b2BodyDef;
composite_def.position.Set(X/30,Y/30);
composite = m_world.CreateBody(composite_def);
var angle:Number = (Math.PI*2/def);
for(i=0;i<def;i++)
{
var comp1:b2PolygonDef = new b2PolygonDef();
comp1.density=.5;
[...]

Sound3D for away3D

First and last statement :
If you are ready for an immersive 3D experience, sound is important.

the sound3D object is a simple object3D with a listener (camera for subjective listening), that displays a soundtransform depending on the distance the listener is from the sound3d, and pan this sound depending on the position of the listener/sound3D.