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
Completed:
Scrip - Command line engine in the palm of your hands Get it Here
XML - XML simplified

#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 Elder
  • 2520 posts
  • Version:GM:HTML5

Posted 23 February 2005 - 05:06 PM

i get an unexpected error
  • 0
Posted ImagePosted Image

#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
Using GM since 2002
Website support available, contact me via pm

#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
"There are 10 kinds of people; those who can count binary and those who can't"
in need of help? pm me / DO NOT pm me about your forum/offers

#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

#31 sufergamerdude23

sufergamerdude23

    GMC Member

  • New Member
  • 59 posts

Posted 20 May 2005 - 03:41 PM

oh man I got so many game ideas, I am gonna go crazy on this one. And I notice pepole coming on here saying they dont got a cam. Like anyone cares.
Thanks for the dll buddy
  • 0

#32 RiChArD_fLoOd

RiChArD_fLoOd

    GMC Member

  • New Member
  • 395 posts

Posted 29 May 2005 - 02:43 PM

awwww i wish i had a webcam to see why every1 is so made up, i gonna buy a webcam soon just for this (i am sad)
  • 0

#33 robogame

robogame

    Programming

  • GMC Member
  • 85 posts

Posted 29 May 2005 - 05:58 PM

This is a great, but easy to use DLL. I am currently using the DLL for my Game Maker Eyetoy program (in my signature). Thank you for making this DLL.
  • 0

#34 ?????GAMEMAKER???????

?????GAMEMAKER???????

    GMC Member

  • New Member
  • 41 posts

Posted 30 May 2005 - 06:14 AM

I might change it for a TV card(instead of a webcam)(if possible)! :)
  • 0

#35 IceMetalPunk

IceMetalPunk

    InfiniteIMPerfection

  • GMC Elder
  • 9603 posts
  • Version:GM:Studio

Posted 30 May 2005 - 05:51 PM

This is AWESOME! One thing that would make this better: The ability to save as MPG or AVI files, like as start/stop recording function...

-IMP ;) :rolleyes:
  • 0

:GM123: Are you an artist who likes creating original creature designs? Maybe you can help out with Elementa here! Give it a look; you might like the idea :)

:bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny:


#36 3dcoder

3dcoder

    GMC Member

  • New Member
  • 278 posts

Posted 21 June 2005 - 12:36 PM

That will save images with current time. You can also change it to current d m y...

screen_save_part('image '+string(current_hour)+'-'+string(current_minute)+'-'+string(current_second)+'.bmp',0,0,800,600);

  • 0

#37 coolgames

coolgames

    GMC Member

  • New Member
  • 228 posts

Posted 21 June 2005 - 02:33 PM

Very nice. I have started making a motion sensor with this. It is working great. :whistle:
  • 0

#38 3dcoder

3dcoder

    GMC Member

  • New Member
  • 278 posts

Posted 21 June 2005 - 03:49 PM

I'm now making FTP-camera server utility which automatically uploads file to server... Also some EyeToy type game should be great.

EDIT: I tried to make video recording sof with this, works but 10 seconds of VGA video takes 120 Mb :whistle: Compressing is possible with JPG-video.

Edited by 3dcoder, 21 June 2005 - 03:52 PM.

  • 0

#39 Tyrant

Tyrant

    Tyrant, King of Hell

  • New Member
  • 249 posts

Posted 21 June 2005 - 06:28 PM

Viital, was this made in ASM? If it was, could you give us source code?
  • 0

#40 ari_aaron

ari_aaron

    GMC Member

  • New Member
  • 295 posts

Posted 26 June 2005 - 08:58 PM

I tried the example that came with the DLL, but if you dont use any input except for the webcam, the the screensaver will keep comming on in the middle.
Is there a way to prevent the screensaver from comming on??
  • 0

#41 IceMetalPunk

IceMetalPunk

    InfiniteIMPerfection

  • GMC Elder
  • 9603 posts
  • Version:GM:Studio

Posted 26 June 2005 - 10:57 PM

Yes. In the STEP event, put
keyboard_key_press(vk_pause);
keyboard_key_release(vk_pause);

-IMP :D :angry:
  • 0

:GM123: Are you an artist who likes creating original creature designs? Maybe you can help out with Elementa here! Give it a look; you might like the idea :)

:bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny:


#42 freaky_entertainment

freaky_entertainment

    GMC Member

  • GMC Member
  • 451 posts

Posted 15 September 2005 - 06:00 PM

I can't reach the page to download it . Can someone send it to me ? My e-mail is : freakysoft@gmail.com :o Please . I wanna try it .... Please :medieval:
  • 0

Cxn8eVf.png gVywn2c.png


#43 gamemaker intermediate

gamemaker intermediate

    GMC Member

  • New Member
  • 123 posts

Posted 16 September 2005 - 12:06 AM

webcam and voice recognition are out two things said to be imposible :o
  • 0

#44 Rune Hunter

Rune Hunter

    GMC Member

  • New Member
  • 317 posts

Posted 16 September 2005 - 12:27 AM

Yes you can turn the screen saver off, but you gotta turn it back on. The bad part is I forgot how to turn it off.
  • 0

#45 hughman

hughman

    GMC Member

  • GMC Member
  • 568 posts

Posted 13 March 2007 - 06:46 AM

hmm.. well this seems to be an old topic so sorry if it seems like I'm bringing it back from the dead.. but I just got a webcam and thought I'd try it out
anyway just wondering is the one on the website the newest one... because it doesn't seem to support all of those features... unless I'm missing something?
thanks
-hughman

edit: the features that seem to be missing are:
- Set FPS
- Compression, Display, Format, and Source Dialogs supported

and I haven't tested multiple webcams since I only have one, however it seems to be an older version..

Edited by hughman, 13 March 2007 - 07:07 AM.

  • 0

#46 Vertex Productions

Vertex Productions

    GMC Member

  • New Member
  • 126 posts

Posted 13 March 2007 - 08:18 PM

OMG! this works amazing!! best thing is i have a PCI TV card so i can play my x-box in a GM window :D . the other web cam dll couldn't do that
  • 0


Lewis Maitland

#47 pokemonelite4leader

pokemonelite4leader

    GMC Member

  • New Member
  • 76 posts

Posted 18 March 2007 - 06:52 PM

i doubt stuff like eyetoy would work unless a really good progammer could figure out how to make a regular webcam sense motion which is what eyetoy does.
  • 0

#48 Daniel-Dane

Daniel-Dane

    GMC Member

  • New Member
  • 3581 posts

Posted 18 March 2007 - 07:29 PM

i doubt stuff like eyetoy would work unless a really good progammer could figure out how to make a regular webcam sense motion which is what eyetoy does.

<{POST_SNAPBACK}>

I use my EyeToy as webcam. (my driver)

http://www.google.co...G=Google Search

Edited by Daniel-Dane, 18 March 2007 - 07:30 PM.

  • 0

#49 Iruka

Iruka

    KopyKon - Kitso

  • GMC Member
  • 310 posts

Posted 18 April 2007 - 12:55 AM

hay can you add a video recorder to it...like taking a pic every .06 secounds and puting tham in to a avi or wmv...That would be cool!!!!
  • 0

:: I Use ::
Game Maker 8 Pro | Code::Blocks with GCC/MinGW | Eclipse Galileo with JDK 6 | Bluefish 2
Windows 7 Ultimate | Ubuntu 10.10
Firefox 3.6

* Did I help you? If so, press the Posted Image button in the bottom right corner of the post :P thanks.


#50 008008

008008

    GMC Member

  • New Member
  • 45 posts

Posted 20 May 2007 - 03:36 PM

GREAT, just wat i needed!!!!!!!! :wacko:
Thanks.

It works fine! :wacko:
  • 0

I am 5,6,7 registered!
GMC Member Since '06





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users