Many thanks to both of you!
I am now constructing the Spite2D and then integrating it inside of an
objectContainer3D object:
var bitmap:Bitmap = new ObjIcon();
var material:BitmapMaterial = new
BitmapMaterial(bitmap.bitmapData);
material.smooth = true;
var labelIcon:DirectionalSprite = new DirectionalSprite(material);
labelIcon.scaling = 12;
labelIcon.x = iQ3d.SCALE * meta.x;
labelIcon.z = iQ3d.SCALE * meta.y;
labelIcon.y = iQ3d.SCALE * meta.z + iQ3d.SCALE * 0.036;
objs3D = new ObjectContainer3D(labelIcon);
view.scene.addChild(obj3D);
It compiles, but nothing get displayed... Any idea?
On Oct 5, 3:52 am, Darcey Lloyd <
darcey.ll...@gmail.com> wrote:
> Quick cookeup of Sprite3D with Away3D 3.6 using the HandCursor.
>
> URL:
http://www.allforthecode.co.uk/aftc/forum/user/modules/forum/article....
>
> Features:
>
> - Click drag to move scene around (HoverCamera3D)
> - 10 PNG assets used for 10 Sprite3D (MovieClipSprite)
> - Each sprite has UseHandCursor = true & ButtoneMode = true applied via
> movieclip
> - I've placed a cube in the center (untextured to give perspective of
> elements in the scene)
>
> Happy coding.
>
> Darcey
>
> >
rob.bate...@gmail.com
> >
www.infiniteturtles.co.uk
> >
www.away3d.com