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.

Newcomers DBPro Corner / is their a way to animate a texture

Author
Message
wind27382
18
Years of Service
User Offline
Joined: 10th Feb 2006
Location:
Posted: 26th Dec 2007 15:00
working on my advanced terrain and was wondering if their was a way to animated an image or texture in darkbasic.

wind
BMacZero
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 26th Dec 2007 15:54 Edited at: 26th Dec 2007 15:55
You could constantly retexture the object or terrain with different images.

Example:



"Ok, so that wasn't funny. I don' have any good Christmas jokes."
wind27382
18
Years of Service
User Offline
Joined: 10th Feb 2006
Location:
Posted: 26th Dec 2007 16:03
hey thank you i didn't know if it would actully animate them or just load the last one thanks again bmaczero

wind
wind27382
18
Years of Service
User Offline
Joined: 10th Feb 2006
Location:
Posted: 26th Dec 2007 16:50
ok the problem is that i am trying to animate a heightmap. any more suggestions.

wind
Twu Kai
18
Years of Service
User Offline
Joined: 2nd Oct 2005
Location:
Posted: 26th Dec 2007 17:35
You can use 'LOAD ANIMATION' to load the animated image, then use 'PLAY ANIMATION TO IMAGE' to convert the animation to an image. I'm not sure if it would work with heightmaps - I haven't used them much before. I hope it works for you.

wind27382
18
Years of Service
User Offline
Joined: 10th Feb 2006
Location:
Posted: 26th Dec 2007 17:44
thank you twi kai i will find out in a minute

wind
Bozzy
18
Years of Service
User Offline
Joined: 10th Sep 2006
Location: Birmingham, UK
Posted: 29th Dec 2007 00:34
So you want to make a terrain like scroll?

It makes sense that the "play animation to image" should work as it is just an image... make sure that you space out the different hightmaps in the animation... I think this can be done by quite loading the different hightmaps into windows movie maker and exporting the animation

"I'm a firm believer that if a team scores one goal, then the other has to score two to win."
Veron
17
Years of Service
User Offline
Joined: 22nd Nov 2006
Location:
Posted: 3rd Jan 2008 19:42
You might be able to use the command SCROLL OBJECT TEXTURE command. Taken from the manual:

Quote: "SCROLL OBJECT TEXTURE
This command will scroll the UV data of the specified object. The UV data controls how a texture is
mapped onto your object. By scrolling the UV data, you can effectively scroll the texture over your
object. The U value controls the horizontal shift of the data. The V value controls the vertical shift of the
data. The scroll effect is permanent.

SYNTAX
SCROLL OBJECT TEXTURE Object Number, X, Y"


Hope it helps.


Login to post a reply

Server time is: 2024-09-27 10:25:58
Your offset time is: 2024-09-27 10:25:58