levelhead is here!

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.

Thank you again for your assistance!

Hurray! Thanks to knowledge written in https://bugzilla.novell.com/show_bug.cgi?id=533563 I made the ARToolKit_gst to compile successfully.
It means that levelhead_gst is now available.

Tutorial in Portuquese here Levelhead:Um jogo Print e Play - openSUSE

Thanks! Great job.

Don’t you think, that there’s missing levelhead_v4l and gst in 1-Click Install section?

Update: I’ve made some improvements, totally changing almost everything:

  1. ARToolKit is now a shared library, but still has 2 versions: v4l and gst.
  2. There is only one osgART
  3. And there is only one levelhead, but it has two subpackages levelhead-config-v4l and levelhead-config-gst
  4. 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.
  5. 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.

I’ll try to submit it to the games repository.

If you have any troubles, feel free to ask here.

@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.

Probably yes Hardware for Linux - Chicony Electronics / CNF7129 and you might have image upside-down Linux UVC driver & tools

The uvcvideo is in the kernel, so you don’t need to install any drivers by hand.

notice: The information above could be find by Google: linux Chicony CNF7129 and then Google: uvcvideo

And the last word: If you don’t try, you won’t know.

Hi
If it is upside down, I build a patched kmp to fix this;
http://software.opensuse.org/search?baseproject=openSUSE%3A11.2&p=1&q=uvcvideo


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.45-0.1-default
up 2 days 18:11, 3 users, load average: 1.52, 0.71, 0.45
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 195.36.15

Victory!!! <:) levelhead is on games repo! https://build.opensuse.org/package/show?package=levelhead&project=games

@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.

Thanks

Hi
Hmmmm, did you rebuild the kernel-source rpm on your system, or just
install?


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.45-0.1-default
up 3 days 19:15, 3 users, load average: 0.26, 0.28, 0.30
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 195.36.15

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?

Author: Laurent Pinchart <laurent{dot}pinchart{at}ideasonboard{dot}com>


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.45-0.1-default
up 3 days 22:09, 3 users, load average: 0.79, 1.15, 0.77
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 195.36.15

I used ‘rpmbuild --rebuild sourcerpm’.

I’ll write to it’s maker ;), ask him what he can do. Thanks a lot.

I never use the cam, but was fooling around with it for levelhead, I saw some video’s and some testing of it, absolutely fun.

Ηi,

can you help me run levelhead ,i need help,can someone give me information;…Ηas somebody install this game…?

Cheers,

hello

I tried to install levelhead from software.opensuse.org: Download openSUSE 11.3, using 1-Click Install
or Manual Package Download always have failed, same thing happened:

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.

I’ve check osgart_artoolkit exist:
Loading repository data…
Reading installed packages…

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?

thank you

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”.

I’ll fix that in rpm package soon.

Package fixed. Please tell if it’s working.

Yes it’s works!..thanks alot

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,

You should have “.levelhead.v4l” or “.levelhead.gst” config file in your home directory.

Hi EtamPL

Thank you for your assistance,
I check file levelhead.gst is already in my home directory,

linux-3kfh:/usr/lib/levelhead # dir
total 252
lrwxrwxrwx 1 root root 31 2011-02-06 01:02 Data -> …/…/share/levelhead-data/Data
lrwxrwxrwx 1 root root 32 2011-02-06 01:02 fonts -> …/…/share/levelhead-data/fonts
-rwxr-xr-x 1 root root 233974 2011-02-03 02:01 levelhead.bin
-rw-r–r-- 1 root root 242 2011-02-03 02:01 levelhead.gst
-rw-r–r-- 1 root root 12288 2011-02-06 15:22 .levelhead.gst.swp
-rwxr-xr-x 1 root root 701 2011-02-03 02:01 levelhead.sh
lrwxrwxrwx 1 root root 33 2011-02-06 01:02 models -> …/…/share/levelhead-data/models
lrwxrwxrwx 1 root root 34 2011-02-06 01:02 shaders -> …/…/share/levelhead-data/shaders

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?

ARToolKitPlus: CamSize 960 , 720

ARToolKitPlus: Dist.Factor 425.00 305.00 -4.70 0.99

INFO: 0 markers loaded from config file
file=Data/character/man/man4man.cfg
fileName=Data/character/man/man4man.cfg
ReaderWriterCFG::readObject( Data/character/man/man4man.cfg )
Loading cal3d character from Data/character/man/man4man.cfg
subloading skeleton: Data/character/man/man4man.xsf
subloading animation: Data/character/man/man4idle.xaf
subloading animation: Data/character/man/man4walk.xaf
subloading animation: Data/character/man/man4stairs.xaf
subloading mesh: Data/character/man/man4male.xmf
subloading material: Data/character/man/man4plain.xrf
subloading material: Data/character/man/man4plain.xrf
subloading material: Data/character/man/man4plain.xrf
subloading material: Data/character/man/man4plain.xrf
subloading material: Data/character/man/man4plain.xrf
subloading material: Data/character/man/man4plain.xrf
subloading material: Data/character/man/man4plain.xrf
subloading material: Data/character/man/man4plain.xrf
subloading material: Data/character/man/man4plain.xrf
subloading material: Data/character/man/man4plain.xrf
subloading material: Data/character/man/man4plain.xrf
subloading material: Data/character/man/man4plain.xrf
subloading material: Data/character/man/man4plain.xrf
subloading material: Data/character/man/man4plain.xrf
scaling model by 1 factor
Time to load = 0.738776
Font 0x81427f0, numberOfTexturesAllocated 1
Opened DynamicLibrary osgdb_freetype.so
Adding to object cache fonts/Bandal.ttf
Font 0x81ae678, numberOfTexturesAllocated 2

This is time 0
This is time 0
This is time 0
This is time 0

There is something wrong ?