Hi, i wonder what's the best way of playing animated texture to object?In my case this is a plain which i textured this way:
sync on : sync rate 0
set display mode 1280,1024,32
color backdrop 0
LOAD ANIMATION "C:\Documents and Settings\anarhist\Desktop\images\demoheart.avi",1
set animation speed 1,100
`play animation to image
make object plain 1,20,20
`texture object 1,1
position camera 0,0,-100
ghost object on 1
do
text screen width()/2,20,"FPS: "+str$(screen fps())
if animation playing(1)= 0 then play ANIMATION TO IMAGE 1,2,0,0,128,128
texture object 1,2
sync
LOOP
As you can see i used AVI file for the texture with playing the animation to image which i later texture to my object.I need to know if there is faster way to do that because the performance is very bad.I think mainly because of using animation to image comand.I don't know why but all comands that involve "image" as the above or for example "get image" are very slow.Any workaround for AVI?For better performance i mean.I haven't time to play with other methods i read in the forums so i really don't know how it's gonna be using them.
Coding is My Kung Fu!
And My Kung Fu is better than Yours!