Page 1 of 1

Making Bitmap Expression update every frame?

Posted: Tue May 13, 2008 8:03 am
by myraneal
Hey all,
Is such a thing possible, to update a Bitmap Expression component update every frame, so that the calculated bitmap changes according to other variables and such?
I wanted to do this for a "power bar" when shooting a ball kinda thing, and I solved my problem with another method, but I'd still like to know.

Thanks,
Yılmaz

Posted: Tue May 13, 2008 10:04 am
by Kjell
Hi Yilmaz,

Use the RefreshContent component. However, keep in mind that updating ( large ) Bitmaps every frame can get quite heavy on your CPU. Always try to look for a solution using Material:TextureX/Y first.

K

Posted: Tue May 13, 2008 2:25 pm
by myraneal
Hey Kjell,
Thanks :D I really wasn't aware of the RefreshContent component. That should work. My bitmap isn't that big 32*128. I'll check if this will decrease the framerate much.

Thanks again,
Yılmaz

Posted: Tue May 13, 2008 5:50 pm
by kattle87
Perhaps you could try out pixel Shaders ;) Should work very well and with no FPS loose

Posted: Tue May 13, 2008 8:02 pm
by myraneal
Unfortunately, I'm not familiar with shaders at all :cry:
If you could point me towards a tutorial to start from that'd be most appreciated.

-Yılmaz