animated textures and video as background

Previous topic - Next topic

djtoon

is three a way to use animated textures ?
and
is there a way to load a video and draw on top of it 3d objects?
10x

Schranz0r

Try VIEWPORT to "animate" your texture!
I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

Quentin

Think he's looking for animated textures for 3D objects. Try X_SETTEXTUREOFFSET for this. Use one texture with your animated steps

Schranz0r

i think he wants to animate a texture like a speaking mouth...
I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

Quentin

hmm, guess we should ask him what he really wants   =D

Schranz0r

I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

matchy

#6
Quote from: djtoon on 2010-Aug-22
is three a way to use animated textures ?
and
is there a way to load a video and draw on top of it 3d objects?
10x

To cycle animated existing set of textures, load them in to an array an cycle through them.
To project a movie on to a 3D or poly, convert each frame to png and buffer load them. Perhaps there is another way and I would be very, very interested to know.
To created texture in real-time, Schranz0r VIEWPORT suggestion is interesting because I have not tried that, but generally you can reserve a sprite by CREATESCREEN and USESCREEN to draw on in loop.
  ;)

Quentin

sure you can use X_SETTEXTUREOFFSET  for aminations, if you set the texture coordinates well and use a texture with the animation frames.

djtoon

well iwas thinking about loading an mpeg and useing it as a texture but :( no

matchy

Quote from: djtoon on 2010-Aug-23
well iwas thinking about loading an mpeg and useing it as a texture but :( no
Now that would be awesome.

Kitty Hello

You can't load video files. You can however load a set of images and set the correct texture for each showscreen with a simple MOD(GETTIMERALL()/100, number_of_frames)

Ian Price

Rather than loading a video file, can you not play the video onto a virtual/hidden screen and grab the screen for use as a texture?
I came. I saw. I played.

Marmor

its too slow imho , my tipp is hack your avi into  bmp (avi2bmp.exe) and play the image game