开发者

how to combine a texture on a cylinder in papervision3d?

开发者 https://www.devze.com 2023-01-01 09:31 出处:网络
I would like to combine bitmaps to one texture and apply it to a cylindric primitive. The cylinder will be rotating or better: the texture should moving along the cylindric-surface and therefor you sh

I would like to combine bitmaps to one texture and apply it to a cylindric primitive. The cylinder will be rotating or better: the texture should moving along the cylindric-surface and therefor you should see only one (up to 3 textures at the same time). For better understanding: it's my intention to create somehow a poster-pillow wi开发者_运维问答th a undefined number of posters on it. By clicking on the pillow, it should rotate to the next poster but you will see always parts of the previous/next poster.

My question is: How can I load the texture dynamically but also how to combine, load/unload posters on the run ?

Thanks in advance


I'm not very familiar with papervision, but I'd look into simply supplying a BitmapData as texture, then you should be able to change that bitmap elsewhere in your app and have the texture update on the fly.

0

精彩评论

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

关注公众号