is it possible ?
cause i cant find a way to make it work
render to image works fine but
etWindowTitle( "vidbox" )
SetWindowSize( 1024, 768, 0 )
// set display properties
SetVirtualResolution( 1024, 768 )
SetOrientationAllowed( 1, 1, 1, 1 )
b = CreateSprite(0)
SetSpriteSize(b,1024,768)
SetSpriteVisible(b,0)
CreateRenderImage(1,256,256,0,0)
a = loadVideo("boaz.mp4")
playvideo()
//CreateText(1,"Hello")
//SetTextColor(1,0,0,0,255)
//SetTextPosition(1,5,5)
//SetTextSize(1,100)
for i = 1 to 100
sync()
next i
// update the scene, should only do this once
Update(0)
REnder()
// render to image 2
SetRenderToImage( 1, -1 ) // -1 for depth to use an internal buffer, we could set an image if we wanted (not supported on all devices)
ClearScreen() // clear the image before drawing to it
Render() // draw the entire scene, we could pick and choose what we wanted to draw to the image instead
// render to screen
SetRenderToScreen()
SetSpriteImage( b, 1)
// don't use Sync() here as it will call Update() again.
Render()
Swap()
StopVideo()
SetSpritevisible(b,1)
//DeleteText(1)
do
Print( ScreenFPS() )
Sync()
loop
dosent work is it possible that agk cant render to image a frame form a video that is being played ?