Archive for May, 2008

dynamic grid calculation

Sunday, May 25th, 2008

SurveillanceSaver will run as a multi-touch application on the new heyewall 2.0 with a 35 megapixel resolution. the whole database (> 1000 images) will be displayed as a grid of images.

johannes helped me with the calculation of the dynamic grid formula:

x elements = squareroot ( number of images * aspect ratio )
y elements = number of images / x elements

surveillance_grid.jpg

little piggies on the screen

Friday, May 23rd, 2008

one of the nicest scenes of SurveillanceSaver is the barn of a pig in england. it has a family now!

image_piggies.jpg

python eai for x3d proof of concept

Wednesday, May 21st, 2008

jython also works for EAI (external authoring interface) for X3D browsers like instantplayer. this is a 5 minute proof of concept.

code example (HelloInstant.py):

from java.net import InetAddress
from vrml import *

      address = InetAddress.getByName(“localhost”)
browser = eai.BrowserFactory.getBrowser(address, 4848)

     print(browser.getName())

1. just download and install jython:
http://www.jython.org/Project/download.html

2. put you instantreality lib (instantreality.jar) into java classpath or modify the startup file (jython) in order to do so:

#!/bin/sh

# This file was generated by the Jython installer
# Created on Mon May 19 20:25:40 CEST 2008 by me

CP=”/Users/me/jython2.2.1/jython.jar:/Applications/Instant Player.app/Contents/MacOS/instantreality.jar
if [ ! -z "$CLASSPATH" ]
then
CP=$CP:$CLASSPATH
fi
“/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin/java” -Dpython.home=”/Users/me/jython2.2.1″ -classpath “$CP” org.python.util.jython “$@”

3. start the python file in your shell:

./jython HelloInstant.py

python processing proof of concept

Wednesday, May 21st, 2008

i am sure that if ben fry and casey reas would start processing today they would use python instead of java. learning the short and efficient python is much easier than the statically typed and lengthy java. no compilation would be necessary anymore, tons of native libraries would be available via c-bindings, etc. nodebox is a nice example of the use of python for computational design. unfortunately it is restricted to os x.

today we are using python for all sorts of automated code generation in wuerzburg. one example is the conversion of fluid simulation data into x3d files for our coperion project. jan and sebastian are using this approach for their simulated cities of their master projects.

i started a short proof of concept of a python based processing. jython is an implementation of python in java. with its help it’s possible to write code with the processing api in python language.

code example (helloProcessing.py):

from processing.core import PApplet

class HelloProcessing(PApplet):

     def setup(self):
          global p
          p = self
          p.size(350, 350)

     def draw(self):
          p.fill(p.random(255))
          p.rect(150, 150, 50, 50)

     if __name__ == ‘__main__’:
          import pawt
          pawt.test(HelloProcessing())

1. just download and install jython:
http://www.jython.org/Project/download.html

2. put you processing libs into java classpath or modify the startup file (jython) in order to do so:

#!/bin/sh

# This file was generated by the Jython installer
# Created on Mon May 19 20:25:40 CEST 2008 by me

CP=”/Users/me/jython2.2.1/jython.jar:/Applications/Processing/lib/core.jar
if [ ! -z "$CLASSPATH" ]
then
CP=$CP:$CLASSPATH
fi
“/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin/java” -Dpython.home=”/Users/me/jython2.2.1″ -classpath “$CP” org.python.util.jython “$@”

3. start the python file in your shell:

./jython helloProcessing.py

reality filter in cultural heritage project

Saturday, May 17th, 2008

at fraunhofer igd i am leading the augmented reality part of the eu funded project iTACITUS. the project deals with mobile augmented reality for cultural heritage sites.

in april we tested our markerless tracking and my reality filtering system at the unesco word heritage site “reggia venaria reale” near turin in italy. the markerless tracking bases on alain’s and yulian’s poster tracker. you only have to take a reference image of the background for a stable tracking. that’s how tracking should work.

my reality filtering system renders the whole environment at a sketch in order to augment historic drawings on the site. one example is temple diana at the site. it was located at the end of a long creek in the large gardens. only its ruins and two historic drawings are left. standing on a viewing platform visitors are looking through the display of a mobile computer. as soon as they are looking at the temple’s position the video on the screen is rendered like a sketch and the drawing on the temple fits in the environment. the whole garden becomes a real time drawing.

venaria_01.jpgvenaria_02.jpg
venaria_03.jpgvenaria_04.jpg

there is a flash video of the tests on the project site:
http://a4www.igd.fraunhofer.de/projects/49

ps: mark from boingboing just wrote about a frog concept about a reality filtering.