Webcam Basic
Blitz3D Forums/Blitz3D Programming/Webcam Basic
| ||
Just a cube spinning with live webcam image (with userlib and dll). Quick and dirty style, so it could cause crash on some computers... download here > http://www.mediaruimte.be/temp/webcambasic.rar |
| ||
No crash here - just a nice, black screen (removing the cube texturing shows a spinning white cube). Not surprising, given how non-standard webcams still are; mine often requires fiddling with various settings to work with different apps. |
| ||
Ok it works with creative webcam drivers and philips webcams as well. Use windows capture device...if you have you webcam listed under imaging devices in device manager, it should work. In WebcambasicInit function, second parameter is for device number, if you have more than one "imaging device" connected you can target the one you want. It's tested with creative webcam NX, webcam NX Ultra and Philips W720 webcam. |
| ||
Hi, I'll test that out in a bit, my daughter was using my digicam today (it doubles up as my webcam :) so I'll have to go find where she left it :P Here's a webcam library based on DsVideoLib, it uses DirectShow9 so you'll need to have DX9.0c installed. It can stream direct to a B3D Image, so it's pretty quick. Unfortunately it seems to be tempremental with my setup, sometimes I have to go to a vidcap proggy and start/stop a stream to 'kick in' my webcam. Anyways....... Use at own risk! Backup your important stuff before trying!!! http://www.tomspeed.com/dsvideolib/ The DLL in the folder is a tweaked one, try it if the one in the zip doesn't work. For more info on setting parameters for the library refer to the documentation here: http://www.ims.tuwien.ac.at/~thomas/dsvideolib_doc.php Cya! Tom |
| ||
Hey, this is great. Something I've been looking for. Can we use the .dll in our own projects? |
| ||
Work on my creative web cam, nice. |
| ||
yay! *feels a potential Blitz video-chat client in the work* |
| ||
If the question was for my Dll, You can use it in your own projects. It's released for free, without any support :) It streams as well directly to a b3d texturebuffer,so it's fast. The dll is working only if your webcam isn't used in another process (it's general webcam problem, only one application should link to it at a time). Tom I'll test your dll later, thanks for sharing. |
| ||
he how many fps ? |
| ||
difficult to say...it's updating as fast as the webcam is running but doesn't interrupt your blitz application from running, there is no update to make in the mainloop, altough obviously it is using some cpu time. |
| ||
I'll have to try this out to see if it is better than panno's webcam dll. I've been using that for live video in Blitz; it works with every camera I've tried so far, but it impacts performance significantly. |
| ||
If you guys mean the DsVideoLib, it's free to use under one of those GPL type licenses, check the link to the authors site for more info. |
| ||
Works good, no errors |
| ||
So does WebCam Basic only render to a texture? I tried to render to an image buffer, but it didn't seem to work. |
| ||
Yep, only a texture. |
| ||
Well, it wouldn't take long to copy to an image, with a copyrect. |
| ||
Apologies for that :S Did a search and this page came up and i replied :S Good lib tho! |
| ||
I look for that file because available resemblance with, wrapper that I works currently. I try to utilize webcam library based on DsVideoLib. http://www.tomspeed.com/dsvideolib/ |