No problem. I think I might give it a go on my laptop instead. My desktop’s webcam has only ever worked properly with Skype anyways; any of the web cam applications (like cheese and webkam) never pick it up properly, so I’ll assume it might have something to do with that.
My laptops web cam works much more reliably, so I’ll give it a go on there.
Update: I’ve made some improvements, totally changing almost everything:
ARToolKit is now a shared library, but still has 2 versions: v4l and gst.
There is only one osgART
And there is only one levelhead, but it has two subpackages levelhead-config-v4l and levelhead-config-gst
There is separate package levelhead-data, which contains platform independent files. The idea is that when levelhead gets rebuild, you don’t have to redownload 5MB of data.
Some other packages (ARToolKitPlus, openscenegraph, osgcal) and those mentioned above got renamed, split or separated, so I thing that the best way of updating is to uninstall the old ones and then install the new ones.
Tip: If you select “levelhead” package, it will pull all needed dependencies. Alternatively if you know, that you want for example the v4l version, select levelhead-config-v4l. It will pull levelhead, dependencies and proper version of ARToolKit.
@etamPL: Could I run this on my laptop, using the built in Chicony CNF7129 webcam? I’m very curious about this game, but love to see it running without having to buy new hardware.
@etamPL: de gst version works AFAICS now. Flipped yep. Will print the stuff on a nice quality paper this weekend and start experimenting.
Hi Malcolm,
I’ve been trying to rebuild the rpm for kernel 2.6.34 from the HEAD repo yesterday (the cam is in my laptop, that I use for sandboxing, no other major changes from 11.2 except KDE4), but it doesn’t build:
LapTop:/Extra/Install/Devel/WebCam # rpmbuild --rebuild uvcvideo-0.1.0-3.4.src.rpm
Installing uvcvideo-0.1.0-3.4.src.rpm
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.jGt96V
+ umask 022
+ cd /usr/src/packages/BUILD
+ cd /usr/src/packages/BUILD
+ rm -rf uvcvideo-0.1.0
+ /usr/bin/bzip2 -dc /usr/src/packages/SOURCES/uvcvideo-0.1.0.tar.bz2
+ /bin/tar -xf -
+ STATUS=0
+ '' 0 -ne 0 ']'
+ cd uvcvideo-0.1.0
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ echo 'Patch #0 (uvc_video.c.diff):'
Patch #0 (uvc_video.c.diff):
+ /bin/cat /usr/src/packages/SOURCES/uvc_video.c.diff
+ /usr/bin/patch -s -p0 --fuzz=2
+ set -- Kconfig Makefile uvc_ctrl.c uvc_driver.c uvc_isight.c uvc_queue.c uvc_status.c uvc_v4l2.c uvc_video.c uvc_video.c.orig uvcvideo.h
+ mkdir source
+ mv Kconfig Makefile uvc_ctrl.c uvc_driver.c uvc_isight.c uvc_queue.c uvc_status.c uvc_v4l2.c uvc_video.c uvc_video.c.orig uvcvideo.h source/
+ mkdir obj
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.u43ANM
+ umask 022
+ cd /usr/src/packages/BUILD
+ /bin/rm -rf /usr/src/packages/BUILDROOT/uvcvideo-0.1.0-3.4.x86_64
++ dirname /usr/src/packages/BUILDROOT/uvcvideo-0.1.0-3.4.x86_64
+ /bin/mkdir -p /usr/src/packages/BUILDROOT
+ /bin/mkdir /usr/src/packages/BUILDROOT/uvcvideo-0.1.0-3.4.x86_64
+ cd uvcvideo-0.1.0
+ export 'EXTRA_CFLAGS=-DVERSION=\"0.1.0\"'
+ EXTRA_CFLAGS='-DVERSION=\"0.1.0\"'
+ for flavor in debug default desktop xen
+ rm -rf obj/debug
+ cp -r source obj/debug
+ make -C /usr/src/linux-obj/x86_64/debug modules M=/usr/src/packages/BUILD/uvcvideo-0.1.0/obj/debug
make: Entering directory `/usr/src/linux-2.6.34-34-obj/x86_64/debug'
make -C ../../../linux-2.6.34-34 O=/usr/src/linux-2.6.34-34-obj/x86_64/debug/. modules
CC [M] /usr/src/packages/BUILD/uvcvideo-0.1.0/obj/debug/uvc_driver.o
/usr/src/packages/BUILD/uvcvideo-0.1.0/obj/debug/uvc_driver.c: In function ‘uvc_simplify_fraction’:
/usr/src/packages/BUILD/uvcvideo-0.1.0/obj/debug/uvc_driver.c:160: error: implicit declaration of function ‘kmalloc’
/usr/src/packages/BUILD/uvcvideo-0.1.0/obj/debug/uvc_driver.c:160: warning: assignment makes pointer from integer without a cast
/usr/src/packages/BUILD/uvcvideo-0.1.0/obj/debug/uvc_driver.c:197: error: implicit declaration of function ‘kfree’
/usr/src/packages/BUILD/uvcvideo-0.1.0/obj/debug/uvc_driver.c: In function ‘uvc_parse_streaming’:
/usr/src/packages/BUILD/uvcvideo-0.1.0/obj/debug/uvc_driver.c:547: error: implicit declaration of function ‘kzalloc’
/usr/src/packages/BUILD/uvcvideo-0.1.0/obj/debug/uvc_driver.c:547: warning: assignment makes pointer from integer without a cast
/usr/src/packages/BUILD/uvcvideo-0.1.0/obj/debug/uvc_driver.c:632: warning: assignment makes pointer from integer without a cast
/usr/src/packages/BUILD/uvcvideo-0.1.0/obj/debug/uvc_driver.c:699: warning: assignment makes pointer from integer without a cast
/usr/src/packages/BUILD/uvcvideo-0.1.0/obj/debug/uvc_driver.c: In function ‘uvc_parse_vendor_control’:
/usr/src/packages/BUILD/uvcvideo-0.1.0/obj/debug/uvc_driver.c:817: warning: assignment makes pointer from integer without a cast
/usr/src/packages/BUILD/uvcvideo-0.1.0/obj/debug/uvc_driver.c: In function ‘uvc_parse_standard_control’:
/usr/src/packages/BUILD/uvcvideo-0.1.0/obj/debug/uvc_driver.c:928: warning: assignment makes pointer from integer without a cast
/usr/src/packages/BUILD/uvcvideo-0.1.0/obj/debug/uvc_driver.c:988: warning: assignment makes pointer from integer without a cast
/usr/src/packages/BUILD/uvcvideo-0.1.0/obj/debug/uvc_driver.c:1015: warning: assignment makes pointer from integer without a cast
/usr/src/packages/BUILD/uvcvideo-0.1.0/obj/debug/uvc_driver.c:1045: warning: assignment makes pointer from integer without a cast
/usr/src/packages/BUILD/uvcvideo-0.1.0/obj/debug/uvc_driver.c:1080: warning: assignment makes pointer from integer without a cast
/usr/src/packages/BUILD/uvcvideo-0.1.0/obj/debug/uvc_driver.c: In function ‘uvc_probe’:
/usr/src/packages/BUILD/uvcvideo-0.1.0/obj/debug/uvc_driver.c:1591: warning: assignment makes pointer from integer without a cast
make[3]: *** [/usr/src/packages/BUILD/uvcvideo-0.1.0/obj/debug/uvc_driver.o] Error 1
make[2]: *** [_module_/usr/src/packages/BUILD/uvcvideo-0.1.0/obj/debug] Error 2
make[1]: *** [sub-make] Error 2
make: *** [all] Error 2
make: Leaving directory `/usr/src/linux-2.6.34-34-obj/x86_64/debug'
error: Bad exit status from /var/tmp/rpm-tmp.u43ANM (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.u43ANM (%build)
Any idea why this does not work? Having the same errors on my server, running the distro’s kernel 2.6.31-12. Machine data in my sig.
Hi
Have been playing on the netbook, lots of things have changed (yet no
version change in uvc source… grrrrrr) Maybe an email to the author
asking if a flip video parameter can be added to the module? Else you
would need to get onto v4l and see if they can update the patch?
CullSettings:: readEnvironmentalVariables ()
DynamicLibrary:: getLibraryHandle (osgart_artoolkit.so) - dlopen ():. / osgart_artoolkit.so: can not open shared object file: No such file or directory
DynamicLibrary:: failed loading “osgart_artoolkit.so”
osgART:: VideoManager:: createFunc (filename) Could not open osgart_artoolkit
VideoManager:: createVideoFromPlugin (plugin): Plugin ‘osgart_artoolkit’ Could not be loaded!
Could not initialize the video!
osgART:: TrackerManager:: destroy () Delete the tracker manager
OpenGL extension ‘GL_EXT_secondary_color’ is not supported.
OpenGL extension ‘GL_EXT_fog_coord’ is not supported.
OpenGL extension ‘GL_ARB_multitexture’ is not supported.
OpenGL extension ‘GL_NV_occlusion_query’ is not supported.
OpenGL extension ‘GL_ARB_occlusion_query’ is not supported.
S | Name | Summary | Type
–±----------------±-----------------------------------------------------------±----------
| libosgART-devel | Adapter to use the ARToolKit inside OpenSceneGraph headers | package
i | libosgART1 | Adapter to use the ARToolKit inside OpenSceneGraph | package
i | osgART | Adapter to use the ARToolKit inside OpenSceneGraph | package
| osgART | Adapter to use the ARToolKit inside OpenSceneGraph | srcpackage
use opensuse 11.1 and 11.3, Same error like that,
Is there someone who can help?
If you are on 32bit then this should help:
edit as root file /usr/bin/levelhead, find line that begins with “export LD_LIBRARY_PATH” and change in it “lib64” to “lib”.
but I get the white screen asking me to “put the red cube inside square to begin playing”
video not working on levelhead, I’ve tried the camera works well use Kopete, and i have cube like http://selectparks.net/~julian/level...es-hll_sml.jpg.,
there is manual setting for web cam for levelhead? my cam is quickcam pro 9000,
but I get the white screen asking me to “put the red cube inside square to begin playing”
video not working on levelhead, likes bharathp’s :levelhead is here!.
I run from konsole :
CullSettings::readEnvironmentalVariables()
Opened DynamicLibrary osgart_artoolkit.so
VideoManager::createVideoFromPlugin(plugin): Plugin ‘osgart_artoolkit’ successfully instantiated a video handler
Added a osgART::GenericVideo with ID:0 to the VideoManager
Opened DynamicLibrary osgart_artoolkitplus_tracker.so
osgART::TrackerManager::addTracker(tracker): Added tracker with ID 0
Field ‘threshold’ = 150
video open…
Using config string from environment [v4l2src device=/dev/video0 use-fixed-fps=false ! ffmpegcolorspace ! capsfilter caps=video/x-raw-rgb,bpp=24,width=640,height=480 ! identity name=artoolkit ! fakesink].
libARvideo: GStreamer 0.10.29
Parse error: no element “v4l2src”
CHECK 1,2,3… IS THIS THING ON?