Maybe I understood something wrong - but Blitz3D can map the stream of an AVI to a brush. As far as I know you cannont do Alpha Channels (that would be great). What you can or cannot do, depends on the installed codecs. If it works in the Media Player, it will also work in Blitz.
This code (from Skully) displays a movie on a cube.
Graphics3D 800,600,16
cam=CreateCamera()
light=CreateLight(2,cam)
moviefilename$ = "movie.avi"
movie=OpenMovie( moviefilename$ )
mw=MovieWidth(movie)
mh=MovieHeight(movie)
texture=CreateTexture(mw,mh)
toX=(TextureWidth(texture)-mw)/2
toY=(TextureHeight(texture)-mh)/2
sprite=CreateCube()
EntityTexture sprite,texture
MoveEntity sprite,0,0,3
Repeat
While MoviePlaying(movie) And (Not KeyDown(1))
TurnEntity sprite,0,1,0
If KeyDown(200) Then TurnEntity sprite,-5,0,0
If KeyDown(208) Then TurnEntity sprite,5,0,0
If KeyDown(203) Then TurnEntity sprite,0,-5,0
If KeyDown(205) Then TurnEntity sprite,0,5,0
SetBuffer TextureBuffer(texture)
DrawMovie (movie,toX,toY)
SetBuffer BackBuffer()
UpdateWorld:RenderWorld
Text 250,0,"Movie playing To 3d Object by Skully"
Text 320,20,"Arrows rotate screen"
Flip
Wend
movie=OpenMovie(moviefilename )
Until KeyHit(1)
End
|