AR shadowmapping demo

while my last video already contained augmented reality and shadow mapping, it did not really show the potential of shadowmapping, therefore I created another video

other news are the tracking of multiple individual markers(quite obvious) and the camera relative light source. The latter is necessary to cast the shadow of all objects in the same direction.

As some of you wondered where the sense behind all of this is; I write the program as a project work at the university. The aim is to create an easy way to create and modify 3D scenes.

  • Mike

    This video really sparks my imagination. A few ideas you might want to think about: An Icon that represents a light source. Adding a filter to the rest of the screen, no reason you need to see the table, why not add grass over it? It may already do this, but support for various heights and orientations of objects in the scene.

    Anyways, very cool.

  • Bratag

    I have to say this is quite impressive. I can actually see a use for this now as opposed to other AR demos I have seen.

  • Tico

    Cool stuff. I was trying to build this myself using the new MADDE environment and got stuck because of lack of the scons tool. A tutorial on how to build the samples from ARToolkitPlus would be helpful.

  • http://www.rojtberg.net Pavel

    the MADDE environment is still experimental and I have not tried it myself yet. But if you use scratchbox you can find an ARToolkitPlus package in extras-devel. For building the examples uncomment the last line in the ./SConstruct file.

  • Tico

    Thanks for the response. I just got a chance to try to build the examples using scratchbox. It didn’t quite work. It seems like the version of scons in scratchbox is very old and not able to parse the ./SConstruct file (see below). How did you work around this?

    [sbox-FREMANTLE_ARMEL: ~] > apt-get source artoolkitplus
    Reading package lists… Done
    Building dependency tree… Done
    Need to get 4302kB of source archives.
    Get:1 http://repository.maemo.org fremantle/free artoolkitplus 2.1.4-1maemo1 (dsc) [563B]
    Get:2 http://repository.maemo.org fremantle/free artoolkitplus 2.1.4-1maemo1 (tar) [4301kB]
    Fetched 4302kB in 4s (936kB/s)
    gpg: Signature made Mon Jan 25 11:45:52 2010 GMT using DSA key ID B11FFF2F
    gpg: Can’t check signature: public key not found
    dpkg-source: extracting artoolkitplus in artoolkitplus-2.1.4
    dpkg-source: unpacking artoolkitplus_2.1.4-1maemo1.tar.gz

    [sbox-FREMANTLE_ARMEL: ~/artoolkitplus-2.1.4] > scons
    scons: Reading SConscript files …
    NameError: name ‘Glob’ is not defined:
    File “SConstruct”, line 27:
    SConscript(“bin/SConscript”)
    File “/scratchbox/tools/lib/scons/SCons/Script/SConscript.py”, line 581:
    return apply(method, args, kw)
    File “/scratchbox/tools/lib/scons/SCons/Script/SConscript.py”, line 508:
    return apply(_SConscript, [self.fs,] + files, {‘exports’ : exports})
    File “/scratchbox/tools/lib/scons/SCons/Script/SConscript.py”, line 239:
    exec _file_ in stack[-1].globals
    File “bin/SConscript”, line 12:
    env.Program(“idpatgen”, ["../tools/IdPatGen/main.cpp"]+Glob(“../tools/IdPatGen/PN/*.cpp”))

    [sbox-FREMANTLE_ARMEL: ~/artoolkitplus-2.1.4] > scons –version
    SCons by Steven Knight et al.:
    script: v0.96.1.D001, 2004/08/23 09:55:29, by knight on casablanca
    engine: v0.96.1.D001, 2004/08/23 09:55:29, by knight on casablanca
    Copyright (c) 2001, 2002, 2003, 2004 The SCons Foundation

  • http://www.rojtberg.net Pavel

    yeah, scons is Frementale is ancient, but building is still possible. Just add the line “from glob import glob as Glob” on top of “bin/SConscript” just like it is done in “./SConstruct”. I will add this patch in my next upload of the library…

  • Pingback: Shadow Mapping & Augmented Reality Interaction Demo On The Nokia N900 | The Nokia Review | Your Definitive Nokia Resource()

  • Yana

    Pavel, is your AR demo for Nokia N900 opensourced? Is it possible to make a look at its sources?

  • Hoshang

    Dear Sir
    Is your project open source?
    I am really intrested in. Thanks anyway.
    Hoshang