Dynamic texts in Sprite3D

Software: Away3D 4.x

Avatar
TrueSign, Member
Posted: 05 June 2012 07:08 AM   Total Posts: 57

Hi,

How can I add dynamic texts in material for a sprite3d? I know how to do it in previous versions of away3d (sprite with dynamic text from swf library as a material). I want to add points in the 3d space so simple text field with transparent background will do the job.

   

Avatar
TrueSign, Member
Posted: 05 June 2012 07:47 AM   Total Posts: 57   [ # 1 ]

Solved:

_pointsMc = new PointsMc(); //symbol from swf library
var _bitmapData:BitmapData = new BitmapData(32,32);
_bitmapData.draw(_pointsMc);
var 
bitmapPointsTexture:BitmapTexture = new BitmapTexture(_bitmapData);
_pointsMaterial = new TextureMaterial(bitmapPointsTexture);

_points = new Sprite3D(_pointsMaterial1010); 
   

Avatar
TrueSign, Member
Posted: 05 June 2012 08:21 AM   Total Posts: 57   [ # 2 ]

It’s working now but I can’t force it to display on transparent background.
var _bitmapData:BitmapData = new BitmapData(32, 32, true);
In swf library I used simple movieclip with text field only.
Any ideas?

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X