Ice2D™ Game Engine is Royalty free for use with any type of freeware, shareware or commercial game with focus on independent games and tools developers. Ice2D™ is designed to be used for rapid development of multimedia and games in 2D or ISO metric view with some simple 3D Cut scenes available. Features include Fast sprite engine, isometric maps and objects, tweening, particle effects, bitmap fonts, game scene manger, flexible rendering with directX9. Many Source codes examples provided in Vb.net C# for vs.2010 and vb classic / vb6 or other COM enabled languages

Report article RSS Feed Webcam and Video in Game Engine

Is VMR9 for rendering video on a texture would be possible in Ice2D Game Engine, I got asked early this year, My first reaction was to look at microsofts allocation VMR9 example and say yes, BUT this was a mistake.

Posted by ice2d on Dec 8th, 2012

A few years back I tampered with using webcams for games in DirectX9. The idea was of course to make a game ala Eye toy games for PlayStation. However grabbing the images and loading them into a direct texture proved to be very slow so i had to give up
Then I was asked about VMR9 and it looked promising in the examples i tried. I started implementing it for Ice2D Game Engine, but couldnt make it work. First, I allocated a device for the VMR9, but quickly found out that it's not possible to move textures directly between 2 directx devices. Then i tried using the Ice2D's device for VMR9 but somehow VMR9 messed up the device so Ice2D would stop rendering. Again, I was back with nothing!

6 month later i started to think that perhaps I needed to make a IDL for directshow so i could build the render graph and use ISampleGrabber. I knew from my test with webcam that the grabber was very fast and after constructing the IDL typelibrary it became must easier to work with.

Final outcome is a fully working video and webcam rendering to a real directX9 texture with good performance and the IceVideo interface also allow you direct access to a BMP32 buffer before it's moved to the directX9 texture. This buffer access makes it possible to program simple color filters and even some webcam motion detection in real time - A real success after a long struggle.

IceVideo will be released in Ice2D Game Engine v2 - Happy New Year!

Post a Comment
click to sign in

You are not logged in, your comment will be anonymous unless you join the community today (totally free - or sign in with your social account on the right) which we encourage all contributors to do.

2000 characters limit; HTML formatting and smileys are not supported - text only

Platform
Windows
Company
DigiApp
Contact
Send Message
Official Page
Ice2d.com
Licence
Creative Commons
Release Date
Released Aug 7, 2011
Engine Watch
Track this engine
News
Browse
News
Report Abuse
Report article
Related Engines
Ice 2D Game Engine
Ice 2D Game Engine Creative Commons Released Aug 7, 2011
Related Groups
DigiApp
DigiApp Developer