Jump to content


Photo

Webcam Dll


  • Please log in to reply
122 replies to this topic

#1 VitalDragon

VitalDragon

    GMC Member

  • New Member
  • 83 posts

Posted 23 February 2005 - 03:33 AM

I made this Webcam DLL , it should work for USB webcams...

Webcam DLL
;) ;)

Features:
- Multiple WebCams
- Capture Frames to BMP
- Set x,y,width,height
- Set FPS
- Compression, Display, Format, and Source Dialogs supported

Edited by VitalDragon, 23 February 2005 - 09:34 PM.

  • 0

#2 aaron7114

aaron7114

    GMC Member

  • New Member
  • 445 posts

Posted 23 February 2005 - 03:37 AM

Darn. I don't have a webcam. I would really like to see this. I will test it the next time I go to my grandma's house since she has a webcam.
  • 0

#3 King Stephan

King Stephan

    www.gameboxsoftware.com

  • New Member
  • 734 posts

Posted 23 February 2005 - 05:19 AM

Wow. This is exactly what I've been looking for - for as long time. It works flawlessly here. I have a few suggestions:

- allow multiple webcams
- return wether starting the webcam was successful, or if a webcam was found
- perhaps allow resizing webcam area without restarting it


That's all I can think of at the moment. This could allow for just about anything.
  • 0

#4 Azu

Azu

    GMC Member

  • New Member
  • 33 posts
  • Version:None

Posted 23 February 2005 - 05:49 AM

WOW!!
This is what many people have been looking for...
And it's even so fast, that if you keep the space-key down,
the right sided photo also started to move in real-time.

This could be the dll for those gm-eyetoy games.
(Cant wait what someone will make out of this.)

The only down-side was, that the left-sided picture made me taller.
(I think the size of the picture was wrong)
But when I took a photo with space, it didn't have the same problem.

So a way to get the cameras pictures real width and height would make this lib perfect.

I also like the King Stephans ideas...
  • 0

#5 King Stephan

King Stephan

    www.gameboxsoftware.com

  • New Member
  • 734 posts

Posted 23 February 2005 - 07:47 AM

Generally the aspect ration for webcams is 4:3. So 320 by 240 would be a good size.

This really has great potential. I wonder why not many people are replying.
  • 0

#6 celebraces

celebraces

    GMC Member

  • GMC Member
  • 956 posts

Posted 23 February 2005 - 09:08 AM

they're too busy having fun with it!
  • 0

#7 databot

databot

    admin of moonlight games

  • New Member
  • 309 posts

Posted 23 February 2005 - 04:09 PM

I wish i had a webcam to test this with ;)
oh well, it seems great anyway
  • 0

#8 Bowex

Bowex

    Digital-X

  • New Member
  • 462 posts

Posted 23 February 2005 - 04:28 PM

uhhhh.... i tested it with 2 Webcams and a real camera... nothing worked...hmm...i wish i could see it working ... but well done man !!!
  • 0

#9 tangibleLime

tangibleLime

    Lunatic

  • Global Moderators
  • 2520 posts
  • Version:GM:HTML5

Posted 23 February 2005 - 05:06 PM

i get an unexpected error
  • 0

#10 Porfirio

Porfirio

    GMC Member

  • GMC Member
  • 1209 posts

Posted 23 February 2005 - 05:08 PM

you need to have the camera drivers to the dll work

[edit]

oh i forget !!

i have a wintv tv receptor and it work with that dll when i init the example it turn on the wintv and show it in gm room

Edited by PORFIRIO, 23 February 2005 - 05:12 PM.

  • 0

#11 Bowex

Bowex

    Digital-X

  • New Member
  • 462 posts

Posted 23 February 2005 - 05:13 PM

drivers ?? ehhmm when i used a "REAL" webcamprogram or just ICQ it works...so what drivers do i need ?? a special one for my camera ??
  • 0

#12 Giles1991

Giles1991

    GMC Member

  • New Member
  • 216 posts

Posted 23 February 2005 - 05:54 PM

omg this is daen asme with no lag at all!!!!!!!!!!!!!!!!!!! down side my music stoped for a lil while the game connected to my webcam so maby the connection process is a bit glitchy btw how do i findout the fps needed for my webcam so it can work at optim speed?
  • 0

#13 Davis27

Davis27

    In the Shadows

  • New Member
  • 118 posts

Posted 23 February 2005 - 06:44 PM

this is cool now we maybe can make an GM eyetoy ;) ("dreaming ;) )
  • 0

#14 VitalDragon

VitalDragon

    GMC Member

  • New Member
  • 83 posts

Posted 23 February 2005 - 09:31 PM

I have updated the WebCam DLL, it now allows multiple webcams, allows you to modify different settings using built-in dialogs, lets you set the size, and returns true or false if successful in connecting.

I am working to get the image size to be set right...
  • 0

#15 the hunter

the hunter

    GMC Member

  • New Member
  • 227 posts

Posted 23 February 2005 - 09:52 PM

i think i figured out how to use this in a game


again with all the other ideas all you need to do is make an object that "sticks" or stays on whatever grop of...10... pixelsmoves(or changes hue....). if nothing moves on lets say 3 steps then the object will desapear. this makes abkects stay at whatever pixel moves. then you could have other objects easily "bounce" of of it! so it could be easy to... hit stuff

to reduce lag it would be groups of pisels. and they could change hue a little bit.

confusing but makes scence......


i am going to make a pityfull etempt at this.... <_< but im shure someone with more GML experience could do this.
  • 0

#16 TGMG

TGMG

    G-java creator

  • New Member
  • 706 posts
  • Version:GM8

Posted 23 February 2005 - 09:56 PM

Wow this is great. I tryed to make a dll like this but gave up :(. Very well done good job <_<
  • 0

#17 AP-Ashley

AP-Ashley

    GMC Member

  • GMC Member
  • 474 posts

Posted 23 February 2005 - 10:10 PM

Cool improvements going from great to the best. keep the work up.
  • 0

#18 Cubiso

Cubiso

    Previously dragonsoft

  • New Member
  • 81 posts

Posted 24 February 2005 - 10:22 AM

I tested it first without a real webcam but with my TV-card, and now I have putted on a real webcam, the DLL always choose for my TV-card. Does anyone know how to make the DLL get my webcam?

EDIT: I have done it to make I can select my webcam, but it didn't work. Does anyone know if it is needed to install your webcam on the USB port? Now I have done it on my firewire port.

Edited by dragonsoft, 24 February 2005 - 10:28 AM.

  • 0

#19 Bowex

Bowex

    Digital-X

  • New Member
  • 462 posts

Posted 24 February 2005 - 06:58 PM

it still doesnt work for me...but wouldnt it be cool if mark could make something like this as a function in the next Gamemaker ?

Edited by Denni$, 24 February 2005 - 07:02 PM.

  • 0

#20 Lunar Corporation

Lunar Corporation

    GMC Member

  • Validating
  • 7 posts

Posted 24 February 2005 - 07:33 PM

How can I start this DLL in a game or program? <_<




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users