Rendering a "sprite" in Away3D (molehill)

556 Views Asked by At

Turns out, that I need to be able to render something similar to sprites, but having all of the goodness from Molehill.

Im new to Away3D and Molehill, and I was wondering how hard (if possible) would be to render a sprite (plain I guess) using Away3D, emulating somehow what Flash does with sprites, bitmaps, and the like.

Thanks in advance!

2

There are 2 best solutions below

1
On

You can make a normal sprite and draw a bitmap from it, and use that bitmap as material. You can then update the material whenever the sprite does. I build a text inputbox with blinking caret like that, looks quite dynamic! .. just remember every update of the material requires an upload of the bitmap to the GPU, which is quite heavy performance wise, so be sparse with the updates

2
On

You should be able to whip something up in Away3D, but if it's only 2D you need, it might be worth having a look at M2D.

M2D logo