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.

Dark GDK / Apply an animated texture?

Author
Message
heyufool1
15
Years of Service
User Offline
Joined: 14th Feb 2009
Location: My quiet place
Posted: 2nd Jul 2009 06:21
Hi! I want some dust to pop up when I shoot a wall so I have a texture that has 16 frames to it. So how do I apply that to a plain object that I made?


Use Google first... it's not rocket surgery!
Mista Wilson
16
Years of Service
User Offline
Joined: 27th Aug 2008
Location: Brisbane, Australia
Posted: 2nd Jul 2009 10:44
It might be easier to make your 16 frame image an animated sprite, and place it that way, unless you want to dig down into UV manipulation.

To use an object with an animated texture, you need to be able to alter the objects UV's to show the right frame of the image at the right time.

Its kind of like breaking the image up into frames, and pasting just a little bit of that image onto the object each sync..

There is a good example of the technique if you own DarkPhysics, there is a "water" sample, and it includes some splashes as some objects fall down into water, those splashes are actually small 3d objects, textured with an animating image, by manipulating the small object's UVs, it actually looks like the water is splashing up into the air and ripling when the objects fall into it.

Another way that you may be able to achieve what you want, with bullets anyway, is to use a particle emitter, setup the particles to be small and fast moving, texture them to look how you want, they would have to have a small lifespan, like millisecond, then you could place the emitter at the place where the bullets hit, and "fire" it.. you could even have different emitters textured differently or setup differently depending on what its hitting, a metal surface might spark, where a monster might have green blood splatter or something......

If it ain't broke.... DONT FIX IT !!!
heyufool1
15
Years of Service
User Offline
Joined: 14th Feb 2009
Location: My quiet place
Posted: 2nd Jul 2009 17:56
Ok thanks! I'll look into the particle way because that'll save some loading time


Use Google first... it's not rocket surgery!

Login to post a reply

Server time is: 2024-10-01 06:02:53
Your offset time is: 2024-10-01 06:02:53