Jump to content


Photo

Webcam Dll


  • Please log in to reply
123 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

  • GMC Member
  • 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? <_<

#21 hughman

hughman

    GMC Member

  • GMC Member
  • 568 posts

Posted 26 February 2005 - 02:09 AM

Wow! great job...
too bad I don't have a webcam lol
anyway this should probably help lots of people
  • 0

#22 dbgtrgr

dbgtrgr

    Co-Ruler of the Peanuts

  • New Member
  • 110 posts
  • Version:Unknown

Posted 26 February 2005 - 02:39 AM

Nice work my man. I don't have a webcam atm, but you sure have made a lot fo people happy!!!
  • 0

#23 LobbytheLobster

LobbytheLobster

    GMC Member

  • New Member
  • 34 posts

Posted 26 February 2005 - 08:51 AM

Great job,People have been waiting for this for ages.You seem to of cracked it good work
  • 0

#24 Calle

Calle

    GMC Member

  • GMC Member
  • 689 posts

Posted 26 February 2005 - 01:02 PM

This is perfect. It worked flawless at my webcam :)
  • 0

#25 Geohound-Zalbag

Geohound-Zalbag

    GMC Member

  • New Member
  • 115 posts

Posted 26 February 2005 - 07:56 PM

EYETOY! ^^

the kung foo game should be possible with this 1 eh? :D

TOO darn bad i dun have a webcam else id make the kung foo game XD

XD XD XD XD XD XD XD XD it hurts soooo bad XD XD XD
  • 0

#26 YurkShat

YurkShat

    Got YurkShat?

  • New Member
  • 114 posts

Posted 28 February 2005 - 04:38 PM

Lol, I was just making a DLL with webcam capabilities too. Almost done in fact with the webcam part.
  • 0

#27 geedub

geedub

    GMC Member

  • New Member
  • 1 posts

Posted 04 May 2005 - 12:56 AM

I am wondering if it is possible to capture the pics with the filename as current date and time.... Any clue on how to alter the save code to work right? THx
  • 0

#28 NeDolM

NeDolM

    GMC Member

  • New Member
  • 209 posts

Posted 19 May 2005 - 05:39 PM

Can you please allow multiple Webcams i have 2 webcams one is a camera that can be used as a webcam but my wire is with a friend and a he traveld and my second webcam is a real PC webcam the only thing is that it's not my

primary webcam it's my secondary webcam so it's Webcam number 2 on the PC your DLL seem to allow only number ONE but i dont have the wire for that.

please make your DLL to allow multiple webcams


Thank you very much for making this DLL and thanks in advance for trying my request

Edited by NeDolM, 19 May 2005 - 05:56 PM.

  • 0

#29 maarten

maarten

    GMC Member

  • New Member
  • 354 posts

Posted 19 May 2005 - 05:47 PM

omfg this is ****ing amazing **** !@#$^%^we can make eyetoys now!!! woot ty man u rule
  • 0

#30 NeDolM

NeDolM

    GMC Member

  • New Member
  • 209 posts

Posted 20 May 2005 - 02:01 PM

VitalDragon please dont forget my request, it's very important for me.
Thanks.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users