Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: Youre in the movie image incrustation  (Read 1994 times)
Valcriss
Customers
Community Member
*****
Posts: 146


WWW
« on: December 15, 2008, 12:52:46 PM »

I recently see an online test of Youre in the movie a codemaster game

French test link i sure you will find an english one Smiley

I wanted to try to make something like a webcam video incrustation, to see what i can do with it.

I am just a the beguining, here is what ive got :


Download Source

I would like to find a way to optimise the "character" detection, and may be find how to generate some kind of Bounding Box around him.

If someone have any clues.


Edit : this source use Philip Pierce's Webcam capture control (link)
« Last Edit: December 15, 2008, 12:55:11 PM by Valcriss » Logged

Hope you understood my english.

Indealsoft
Zaknafein
Customers
Community Member
*****
Posts: 2940


WWW
« Reply #1 on: December 15, 2008, 01:17:16 PM »

This looks like a task for a GPU. Grin

Have you considered working with a TVRenderSurface and shaders for this?
Like, textures for the reference/with-character/background images, and a rendersurface for the final composite. Then you pass this to a shader and use fancy alphablending to composite it together. You could do much more logic per-pixel too, since it'll be much faster.

I guess the bottleneck then becomes feeding the webcam image as a texture. There's probably an efficient way to do this, maybe with an unsafe block.
Logged

Valcriss
Customers
Community Member
*****
Posts: 146


WWW
« Reply #2 on: December 15, 2008, 01:25:53 PM »

Hum that the thing i must learn "shaders"  Grin

Well i think it will be a good way to learn  Grin

If someone know a good "i am very new to shaders and want to make an hello world" book Smiley
Logged

Hope you understood my english.

Indealsoft
ZaPPZion
Moderator
Community Member
*****
Posts: 555


« Reply #3 on: December 16, 2008, 02:58:53 AM »

Yea i know one Smiley I'd recommend it to anyone who's trying to learn shaders, since i learned it pretty fast with that book.

"Shaders for game programmers and artists" written by Sebastien St-Laurent

It covers a lot of basic shaders, but also a couple more advanced shaders.
Logged

Check out my website: www.bartkuipers.com
Valcriss
Customers
Community Member
*****
Posts: 146


WWW
« Reply #4 on: December 16, 2008, 08:04:48 AM »

I have just bought it on amazon, will receive it in 2 weeks, thank you!
Logged

Hope you understood my english.

Indealsoft
sciophyte
Customers
Community Member
*****
Posts: 245


« Reply #5 on: December 16, 2008, 12:52:49 PM »

i had some decent results using the aforge image filters.

https://secure.codeproject.com/KB/audio-video/Motion_Detection.aspx?display=PrintAll&fid=177045&df=90&mpp=25&noise=3&sort=Position&view=Quick&select=1889308&fr=376
Logged
Valcriss
Customers
Community Member
*****
Posts: 146


WWW
« Reply #6 on: December 16, 2008, 12:57:37 PM »

this seems to be very interesting thank you  Smiley
Logged

Hope you understood my english.

Indealsoft
Zaknafein
Customers
Community Member
*****
Posts: 2940


WWW
« Reply #7 on: December 16, 2008, 04:18:28 PM »

This looks excellent. And having all the bounding/movement/shape detection maths already done for you is a huge plus.

I'm a shader guy so shaders came to mind first, doesn't mean it's the best solution.
Logged

Valcriss
Customers
Community Member
*****
Posts: 146


WWW
« Reply #8 on: December 19, 2008, 03:05:12 AM »

I will try to implement the motion detection algorithm at the end of this week.

While i was searching for this kind of stuff i found this project :

http://www.codeplex.com/touchless

With this very impressive video :
http://communityclips.officelabs.com/Video.aspx?videoId=a89a217b-fc38-4a6c-87f8-ab59a2028391

I dont think i will use it on my "i want to dance in front of my webcam" test game, but i wanted to share this link.
Logged

Hope you understood my english.

Indealsoft
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks