Join thousands of game developers in our forums and read over 2 million messages
Purchase vouchers for use on future orders or as a gift for others.
toolbar powered by Conduit
Join thousands of game developers in our forums and read over 2 million messages
Purchase vouchers for use on future orders or as a gift for others.
toolbar powered by Conduit
Dark Video is a complete movie encoder and decoder solution, targeted at anyone interested in adding hyper speed movie playback into their game. Built from the ground up to focus on extreme speed and quality, Dark Video opens the gateway for ultra high quality movies but with a very low impact to your game. Designed for ease of use and ease of integration, Dark Video makes adding movie functionality to your game a cinch.
Dark Video is available for DarkBASIC Professional and Dark GDK.


DarkBASIC Professional or Dark GDK is required to use this product. It runs on Windows 2000, XP, Vista and Windows 7 (x86 and x64 variants)
| 17% Off - DarkBASIC Professional Add on Pack 2010 | |||||||||||||||
|
Take advantage of this special offer and get all of these packs for an incredibly low price. This bundle contains: Dark Data, Dark Video, DarkNet, Dark Ink, 2D Plugin Kit, X-Quad Editor Bundle Version
|
The following code demonstrates how easy it is to utilise Dark Video in DarkBASIC Professional.
rem Dark Video DarkBASIC Professional sample rem Based on the 3DVideo sample by The Game Creators rem Dark Video (C) 2008-2009, Deep Cove Software, Ltd. rem init sync on : sync rate 30 : hide mouse rem switch display mode if available if check display mode(1024,768,32)=1 then set display mode 1024,768,32 rem set default screen color backdrop rgb(0,32,32) rem open our Dark Video movie and get the dimensions movieId = darkvideo open movie( "sample.dvf" ) movieWidth = darkvideo get movie width( movieId ) movieHeight = darkvideo get movie height( movieId ) rem set the movie volume (between 0-255), no effect of course if there's rem no audio in the movie. result = darkvideo set movie volume( movieId, 255 ) rem arbitrary ids we'll use memBlockId = 32 imageId = 32 rem create a blank 32-bit image of the same dimensions as the Dark Video rem movie. Dark Video will decode each frame to this image. make memblock memBlockId, movieWidth * movieHeight * 4 + 12 write memblock dword memBlockId, 0, movieWidth write memblock dword memBlockId, 4, movieHeight write memblock dword memBlockId, 8, 32 make image from memblock imageId, memBlockId delete memblock memBlockId rem create 3D projection for p=1 to 3 make object box p,320,240,10 scale object p,p*250,p*250,p*250 if p>1 then ghost object on p,2 texture object p,imageId next p set object light 1,0 rem setup camera position camera 0,0,-700 rotate camera 0,0,0 rem main loop begin=1 disable escapekey while mouseclick()=0 and escapekey()=0 rem begin movie playback if begin=1 begin=0 result = darkvideo play movie( movieId, imageId, 1, 0 ) endif rem move projection around for p=1 to 3 a#=wrapvalue(a#+1.0) position object p,cos(a#)*20,sin(a#)*10,p*75 yrotate object p,cos(a#)*20 zrotate object p,(p-1)*10 next p rem update screen sync rem end loop endwhile rem stop and close the Dark Video movie. this isn't required rem but it's good practice. all movies will be stopped rem and closed at the end of the program automatically. result = darkvideo stop movie( movieId ) result = darkvideo close movie( movieId )
| Dark Video Trial | |||||||||||||||||
| Download: | Dark Video Trial | ||||||||||||||||
| File Size: | 12.70 MB | ||||||||||||||||
|
|||||||||||||||||
| Updated: | 12th Jan 2010 | ||||||||||||||||
| Description: | The trial version of Dark Video is a time limited version. It contains all of the functionality, demos and documentation. |
||||||||||||||||
| Downloads: | 2372 | ||||||||||||||||