Artemix
Artemix

Reputation: 8655

Rendering a "sprite" in Away3D (molehill)

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!

Upvotes: 1

Views: 560

Answers (2)

Flion
Flion

Reputation: 10902

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

Upvotes: 0

George Profenza
George Profenza

Reputation: 51837

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

Upvotes: 1

Related Questions