Post

 Resources 

Console

Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 VBGamer
 VBGamer
 bluescreen
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

sageb
Neophyte

1 Posts

Posted - Nov 21 2003 :  8:52:44 PM  Show Profile  Reply with Quote
Hi everyone.

q: Is it possible to implement a bluescreen in VB? What i want to do is this:
1: Use a picture as background.
2: On top of the picture, place a video featuring a moving character (a real person). If the video is shot against a blue/greenscreen, is it possible in VB to render the blue/green parts of the video invisible?

Possible? Let me know:)

andreas (andreas.sagen@sv.no)

Eric Coleman
Gladiator

USA
811 Posts

Posted - Nov 22 2003 :  4:24:49 PM  Show Profile  Visit Eric Coleman's Homepage  Reply with Quote
All you need to learn about is a little bit of image manipulation. You simply go through each pixel in the source frame or picture, and test to see if it is blue or not, if it is, then you don't copy it. If its not blue, then you would bitblt it to the destination image in the appropriate location. If you're using Direct Draw, then I suggest you look at GetPixel and SetPixel. If you're using bitblt, then try www.vbexplorer.com , there are some tutorials on using bitblt, and I'm sure it will explain it better than I can. And if you're using Directx 9, then you'll have to find out what happend to color keys, because they've been removed, but that's what you would use. I think specifiying a color key in directx 9 just causes direct x to make those pixels transparent through an alpha mask.

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
VBGamer © Go To Top Of Page
This page was generated in 0.09 seconds. Snitz Forums 2000

Copyright © 2002 - 2004 Eric Coleman, Peter Kuchnio , et. al.