Webcam Basic

Blitz3D Forums/Blitz3D Programming/Webcam Basic

LAB[au](Posted 2004) [#1]
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


WendellM(Posted 2004) [#2]
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.


LAB[au](Posted 2004) [#3]
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.


Tom(Posted 2004) [#4]
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


TomToad(Posted 2004) [#5]
Hey, this is great. Something I've been looking for. Can we use the .dll in our own projects?


Wayne(Posted 2004) [#6]
Work on my creative web cam, nice.


BlackD(Posted 2004) [#7]
yay! *feels a potential Blitz video-chat client in the work*


LAB[au](Posted 2004) [#8]
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.


Panno(Posted 2004) [#9]
he how many fps ?


LAB[au](Posted 2004) [#10]
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.


jhocking(Posted 2004) [#11]
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.


Tom(Posted 2004) [#12]
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.


Rambus(Posted 2004) [#13]
Works good, no errors


TomToad(Posted 2004) [#14]
So does WebCam Basic only render to a texture? I tried to render to an image buffer, but it didn't seem to work.


LAB[au](Posted 2004) [#15]
Yep, only a texture.


Ross C(Posted 2006) [#16]
Well, it wouldn't take long to copy to an image, with a copyrect.


Ross C(Posted 2006) [#17]
Apologies for that :S Did a search and this page came up and i replied :S Good lib tho!


bulat(Posted 2009) [#18]
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/