开发者

Rendering a "sprite" in Away3D (molehill)

开发者 https://www.devze.com 2023-04-02 10:26 出处:网络
Turns out, that I need to be able to render something similar to sprites, but having all of the goodness from 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, emul开发者_开发技巧ating somehow what Flash does with sprites, bitmaps, and the like.

Thanks in advance!


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.

Rendering a "sprite" in Away3D (molehill)


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

0

精彩评论

暂无评论...
验证码 换一张
取 消