Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Best way for Animated Textures

Author
Message
luskos
19
Years of Service
User Offline
Joined: 28th Jun 2007
Location:
Posted: 21st Sep 2010 15:35
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:



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!
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 21st Sep 2010 15:45
I have done it like you, with an avi file or with an animated gif, and if you dont´t put so many frames in the animation, it goes ok...that depends as well on how big the frame is (128*128 256*256 etc...)

I have used as well several images and then using a variable to make the animation....there are so many ways I suppose to get the same.

cheers.

I'm not a grumpy grandpa
luskos
19
Years of Service
User Offline
Joined: 28th Jun 2007
Location:
Posted: 22nd Sep 2010 15:00
What if i need more than one animated texture at a time?Can you define me how many is "many" for animation frames?

Coding is My Kung Fu!
And My Kung Fu is better than Yours!

Login to post a reply

Server time is: 2026-07-23 20:31:22
Your offset time is: 2026-07-23 20:31:22