DrawMovie with rotation ?

Blitz3D Forums/Blitz3D Programming/DrawMovie with rotation ?

This should work: (Obviously just change the movie filename, to the one your using :o) )

Graphics3D 800,600
SetBuffer BackBuffer()

Global camera = CreateCamera()
PositionEntity camera,0,0,-5

Global cube = CreateCube()

Global texture = CreateTexture(512,512)

EntityTexture cube,texture

Global movie = OpenMovie("movie.mpg")


While Not KeyHit(1)

	TurnEntity cube,1,1,0

	SetBuffer TextureBuffer(texture)
	DrawMovie movie,0,0
	SetBuffer BackBuffer()
	


	UpdateWorld
	RenderWorld
	Flip
Wend
End