Ricksmuseum

Alternatieve Sinus Functie

Category: Math, Information Esthetics, Processing, Science, Art — Rick Companje — 20 November 2007 @ 21:15

Over het algemeen kost het aanroepen van een sinusfunctie binnen een programmeertaal een hoop clock-cycles. Daarvoor krijg je wel een hele nette benadering van de sinus van een getal. Vaak veel te netjes als het mij vraagt. Zijn er alternatieven voor wanneer je wat minder detail nodig hebt? Ja, en die zijn een stuk sneller. [1].

Wat dacht je van:

sinX = 1.2732395*x + (0.4052847*x*x) * (x<0?1:-1);

Het is een aardige benadering van de sinusfunctie die op mijn vaste computer wel even 20x zo snel is als de ingebouwde Processing/Java sinus functie.

Wil je nou iets meer detail dan kun je ‘m nog finetunen door met het resultaat van de vorige berekening nog even het volgende uit te halen.

sinX= .225*((x<0?-1:1)*sinX*sinX-sinX)+sinX;

Die is nog steeds 9x zo snel als de standaard sinus functie.

Ben je benieuwd hoe dit werkt zoek dan even op Taylor reeksen want volgens mij hebben we het oorspronkelijk aan hem te danken.

Taylor wilde iedere willekeurige functie schrijven als een polynoom.
Eventueel met graad oneindig, oftewel: als een oneindige reeks.
De gedachte achter dit polynoom is, dat hij voor het punt x=0 de
zelfde waarde heeft als f(x), maar ook dezelfde afgeleide en 2e
afgeleide, enz. [2]

Fijn om te weten is misschien waar die twee getalletjes (1.2732395 en 0.4052847) precies vandaan komen. Waarom weet ik niet maar de eerste staat voor 4/PI en de tweede voor 4/PI2.

Sourcecode
Zie source Alternatieve-Sinus-Functie
Zie source qSin-Color-Wave-Demo

Zoals je ziet is voor zoiets als het onderstaande de grove benadering prima voldoende:
Cool Sinus

Quick Sine

Cool Sine

Externe links
* http://home.wanadoo.nl/rule-off/wis/reeksen.htm
* http://lab.polygonal.de/
* http://lab.polygonal.de/wp-content/articles/fast_trig/fastTrig.as

VS Stormschade meldingen

Category: Creative Research, Information Esthetics, Data, Making Art of Databases, Globe4D, Science, Processing, Art — Rick Companje — 19 November 2007 @ 11:02

Op 9 nov 2007 ben ik bezig geweest met het zoeken naar CSV bestanden op internet met daarin LON LAT coordinaten en tijd. M’n plan is om die data te verzamelen en weer te geven op een kaart. Dat heb ik gedaan voor stormschade meldingen in de VS en wat je ziet is dan een kaart die door de tijd verandert en waarbij je eigenlijk precies met een beetje fantasie windrichtingen kunt zien. Echt heel vet en super makkelijk. Wellicht interessant voor Globe4D.

VS Stormschade meldingen
Stel je dit voor als een animatie waarbij de meldingen een voor een binnendruppelen in een soort van sliert door het land heen.


Sourcecode

Node.pde

class Node {

  Node next;
  String ini;
  String time;
  float speed;
  String location;
  String county;
  String state;
  String comments;
  float lat;
  float lon;
  int x;
  int y;
  int r;
  int time_hour;
  int time_minute;

  Node(String ini) {
     //this.ini = ini;
     String items[] = split(ini,",");
     time = items[0].substring(0,2) + ":" + items[0].substring(2);
     time_hour = int(items[0].substring(0,2));
     time_minute = int(items[0].substring(2));
     speed = int(items[1]);
     r = int(speed/5);
     if (r<1) r=1;
     location = items[2];
     county = items[3];
     state = items[4];
     lat = float(items[5]);
     lon = float(items[6]);
     int sc = 7;
     x = int(lon*sc + 180*5);
     y = int(lat*sc);
  }

}

CSV_Test_1.pde

import processing.opengl.*;

PFont font;
PImage bg;
Node first;
Node cur;
Node last;

int speed=1; //draw 40 dots per frame

void setup() {
  //Time,Speed,Location,County,State,Lat,Lon,Comments

  String lines[] = loadStrings("060622_rpts_wind.csv");
  println("there are " + lines.length + " lines");

  font = loadFont("AvantGardeITCbyBT-Demi-30.vlw");
  textFont(font, 30); 

  first = new Node(lines[1]);
  cur = first;

  for (int i=2; i < lines.length; i++) {
    cur.next = new Node(lines[i]);
    cur = cur.next;
  }

  cur = first;

  size(800,600);
  //colorMode(HSB,255);
  //background(0);
  //stroke(255);
  smooth();

  //image(bg,0,0);
}

void draw() {
  fill(0,10);
  noStroke();
  rect(0,0,width,height);
  noFill();
  stroke(255);

  for (int i=0; i<speed; i++) {
    ellipse(cur.x,cur.y-100,cur.r,cur.r);
    cur = cur.next;
    if (cur==null) cur=first;
  }

  int ox=-700;
  int oy=100;
  int x=cur.time_hour*60 + cur.time_minute;
  println(ox+x);
  line(ox+x,oy,ox+x,oy+5);
  fill(0,150);
  noStroke();
  fill(0);
  rect(0,0,200,50);
  fill(255);
  text(cur.time, 30, 30);
}

060622_rpts_wind.csv

Time,Speed,Location,County,State,Lat,Lon,Comments
1222,UNK,LEWISTOWN,FULTON,IL,40.4,-90.16,TREE LIMBS DOWN. (ILX)
1302,60,PEKIN,TAZEWELL,IL,40.57,-89.63,(ILX)
......

Globe4D slimme buffer

Category: Data, C++, Making Art of Databases, Globe4D — Rick Companje — 6 November 2007 @ 21:06

In het onderstaande filmpje vertel ik over de nieuwe buffer die ik heb ontwikkeld voor het inladen van een animatie binnen de Globe4D software engine.

Video: Globe4D @ TodaysArt 2007

Category: C++, Information Esthetics, Math, Data, Globe4D, Multimedia, Events, Art, Science, Interaction — Rick Companje — 27 September 2007 @ 01:01

TodaysArt in Den Haag was bizar cool! Bedankt iedereen!
Check de video en zie een aantal nieuwe apps. Let ff op bij het einde, daar experimenteren we namelijk met het tonen van fMRI data (hersenscans) op de globe! Vrijdag moet dat af zijn, want dan staan we ermee op de lustrumdag van het F.C. Donders Centrum in Nijmegen.

Hersenen op Globe4D @ Radboud Universiteit

Category: Information Esthetics, Math, Design, Data, Media Tech, Making Art of Databases, Events, Art, Multimedia, Globe4D, Interaction — Rick Companje — 24 September 2007 @ 00:44

FMRI imageVrijdag 28 september is er spectaculaire opendag bij F.C. Donderscentrum van de Radboud Universiteit in Nijmegen vanwege hun vijf jarig bestaan.

Globe4D is samen met De Spullenmannen van het Knopjesmuseum uit Amersfoort vertegenwoordigd met een wel heel vreemde setting. Een ‘EEG fluitketel‘ en een globe waarmee je in het brein kunt kijken. In plaats van het veranderingsproces van planeten te projecteren wordt Globe4D dit keer ingezet om laagjes af te pellen van een menselijk brein, althans van de fMRI data daarvan.

Komt dat zien! Klik hier voor meer info

“Sinds 2002 doen wij onderzoek naar de werking van de hersenen. Wij nodigen u graag uit om dit met ons te vieren. 10.000.000.000.00 zenuwcellen die via 100.000 km aan verbindingen met elkaar samenwerken maken het mogelijk dat wij TV kijken, fietsen, spreken, studeren en al het andere doen wat ons mens maakt. Door de modernste technieken kunnen wij het brein nu live in actie zien, iets wat dertig jaar geleden nog onvoorstelbaar was. Wilden we in de 20ste eeuw zo ver mogelijk de ruimte inkijken, in de 21ste eeuw richten wij ons naar binnen. Hoogste tijd om u een kijkje in onze keuken te geven!” [www.ru.nl/fcdonders/lustrum]

Areas of conflu(x)ence - Art, Space & Technology in the Digital Age

The Interactive Morphogenesis project I did together with Ralph Kok and Irad Lee is accepted for the international art conference: Areas of conflu(x)ence - Art, Space & Technology in the Digital Age.

Location : Sibiu, Romania
Dates : October 4-7, 2007

In our project we demonstrated a concept for interacting with 3-dimensional Lindenmayer Systems (L-systems) models using live sound. Using the dynamics of L-systems, methods for visualizing and synthesizing sound are examined through recursive generation of virtual-artificial organisms. The project shows how L-systems can be used to visualize elements in sound and vice-versa, to demonstrate how sound can be used to grow L-system based, interactive artificial morphogenesis.

More info about the conference at: Mediamatic.net and www.2580association.info

Interactive Morphogenesis

Areas of conflu(x)ence proposes an international debate on the relationship between art and technology in the present digital era, focusing on the impact of the new media in our lives.

Today’s digital technologies have created a new model of understanding different aspects of reality. The change they produced compels us to reconsider the conditioning of our modern lives while their potential demands to be explored. Post-modernist syntax is today reevaluated and there are positions that support the thesis of a hyper-industrialized society.

Science and technology are expected to push forward the frontiers of knowledge, while art is asked to mirror these new experiences. The way we handle our lives and our expectations is changing continuously according to these new frontiers. The place we give to the different aspects of our lives and the spatial articulation of our activities are subjected to constant conceptualization based on a continuous flux of discoveries. What kind of models are we using in perceiving and understanding our new environment? If the tools we use have an influence on the way we deal with our environment,
how do we use their potentiality? What traps are to be avoided? What do we expect from technology? Should the new technologies be a matter of concern? By trying to answer all these questions, the conference intends to identify the present condition of our data driven lives and the factors that influence it.

On the basis of artistic and aesthetic experiences, we will study the ways in which image, sound and space are today affected by the digital technologies.

The conference will also include multimedia performances, an exhibit hall of innovative projects and tours of the art installations. [Mediamatic.net]

interactive-morphogenesis.jpg

Globe4D at SIGGRAPH 2007

Category: Information Esthetics, Museums, Design, Conferences, Media Tech, Globe4D, Events, Science, Multimedia, General — Rick Companje — 12 June 2007 @ 13:33

siggraph2007s.gifGreat news! The Globe4D project will be presented at the ACM SIGGRAPH Conference 2007 in San Diego, California between 5-9 August 2007. We will be part of the Emerging Technologies program which shows “Digital innovations that change the way we work, live, and play.”

Please come and see us there!

Globe4D
Globe4D is an interactive, four-dimensional globe. It’s a projection of the Earth’s surface on a physical sphere. It shows the historical movement of the continents as its main feature, but it is also capable of displaying all kinds of other geographical data such as climate changes, plant growth, radiation, rainfall, forest fires, seasons, airplane routes, and more.

Enhanced Life
Globe4D extends the functionality of traditional globes found in many households and schools by allowing people of all ages and backgrounds to learn in an entertaining way about how a planet changes over time.

Goal
This simple but highly educational, entertaining multi-user device for globe viewing is designed to help people, especially kids, learn about the earth and realize in a playful and tactile manner how it has changed and still changes over time.

Innovations
Globe4D’s main innovation is its method of mapping spatio-temporal geographic data on a physical sphere. It is not a flat representation of a changing planet but a real physical globe featuring hands-on interactivity.

Vision
Flat screens in classrooms and museums are outdated when it comes to learning about the earth. The earth is a sphere, and so is Globe4D. The earth changes over time, and so does Globe4D. You can play on earth, and you can play with Globe4D. You can learn on earth, and you can learn from Globe4D.

Don’t put kids behind computers. Put computers behind things!

Awards for Globe4D at Laval Virtual 2007

Rick and Globe4DWe released a brand new version of Globe4D and presented it at the great Laval Virtual 2007 Conference. This very special event in the west of France attracted over 10.000 people with all kinds of backgrounds: scientists, engineers, museum directors, school teachers, children from all ages, parents and grandparents.

Exhibiting at Laval Virtual gave us the opportunity to test our four dimensional globe on a really big user group. Thousands of people enjoyed playing with Globe4D and learned about the history of the earth. Their happy faces and the feedback we got from them were incredibly useful for us.

Globe4D at Laval 2007, over 10.000 people with all kinds of backgrounds

More good news is that Globe4D received two awards this week and got a special invitation for the ACM SIGGRAPH Conference 2007 in San Diego, California in August. We received one award in the category ‘Education and Virtual Entertainment’ and another one in ‘Emerging Technologies’.

The Globe4D team would like to thank Laval Virtual for the wonderful organization, the Laval School of Tourism for their help and support and all the friendly people we met during this week. It was a great experience!

Globe4D (Pays-Bas) Ce globe terrestre interactif apporte une toute nouvelle dimension à la découverte géographique, à la fois ludique et pédagogique.

Globe4D on Flickr
http://www.flickr.com/photos/lavalvirtual/
laval virtual 450.png

Emerging Technologies Award for Globe4D at Laval Virtual 2007 (=invitation for ACM SIGGRAPH 2007, San Diego)
Globe4D wins Emerging Technologies Award for ACM Siggraph 2007 at Laval Virtual 2007- DSC_0201.jpg
Photo Sébastien Kuntz

Education et Entraînement Award for Globe4D at Laval Virtual 2007
Globe4D-wins-Laval-Virtual-2007-Education-et-Entrainement-virtuel-award
Photo Sébastien Kuntz

Movie

Danica, Nico and Globe4D
globe4d-danica-nico.jpg

Capture The Moment

Category: Data, Artificial Intelligence, Media Tech, Making Art of Databases, Interaction, General — Rick Companje — 22 February 2007 @ 03:55

Uitgaande van het gegeven dat je vaker op dezelfde plekken komt, regelmatig met dezelfde mensen samen bent en ook vaker dezelfde dingen doet in een bepaalde periode van je leven, ben ik op dit moment bezig met een experiment op het gebied van tijdgestuurde annotatie van de wereld om je heen, oftewel het actief real-time vastleggen van contextuele informatie.

Het komt er op neer dat ik straks een mobile device bij me draag zoals een Smartphone of een PDA die is uitgerust met een stukje software waarmee op uiterst eenvoudige manier in een paar stappen op elk willekeurige moment van de dag contextuele informatie kan worden opgeslagen. De vragen “Waar ben je?”, “Wat doe je?” en “Met wie?” leveren ontzettend veel bruikbare informatie op. Het “Wanneer” aspect wordt automatisch door de software vastgelegd.

De interface is opgebouwd uit drie dynamisch groeiende keuzelijsten die met item-to-item suggesties komen en die ook van auto-complete functionaliteit voorzien zijn.

Capture The Moment

Om het invoeren zo vlot mogelijk te laten verlopen ontwikkel ik een systeem dat me steeds beter zal leren kennen en probeert patronen in m’n gedrag te ontdekken. Na een tijdje wordt ontdekt dat er bij mij een sterk verband is tussen ‘thuis’ en ‘Utrecht’ en het voorstel zal zijn deze twee te koppelen.

“Thuis en Utrecht lijken sterk met elkaar in verband te staan. Wil je deze twee koppelen zodat automatisch Utrecht wordt geselecteerd bij het klikken op thuis? Ja / Nee”

Of,

“Je bent nog nooit tegelijk binnen en buiten geweest. Wil je deze combinatie uitsluiten? Ja / Nee”

Het resultaat zal een live-timeline van je leven zijn. Ik onderzoek op dit moment welke manieren er zijn om mijn data te koppelen aan bestaande onderzoeksprojecten zoals o.a. Nokia Lifeblog en Microsoft MyLifeBits.

Binnenkort meer…

Capture The Moment

NB. De suggesties zijn op dit moment nog niet zo heel sterk. Bierdrinken en een fruitontbijtje hebben voor zover ik weet niet zo heel veel met elkaar te maken…

Globe4D opgenomen in GIS jaaroverzicht

Category: Media Tech, Information Esthetics, Boeken, Museums, C++, Globe4D, Projects, Interaction, Science, Multimedia, General — Rick Companje — 22 January 2007 @ 21:32

De Vrije Universiteit van Amsterdam heeft een boekje uitgegeven met daarin een overzicht van de meest recente ontwikkelingen op GIS gebied (Geografische Informatie systemen). In het boekje “Actuele Onderwerpen” wordt uitgebreid aandacht besteed aan Globe4D. Een erg mooie vermelding met een goede foto.

“……Er komen steeds mooiere toepassingen van twee-en driedimensionale kaart visualisaties. Naast interactieve projectie schermen aan de muur (’smartboards’) zijn er tafels met interactieve kaarten, zogenaamde ‘tangitables’. Op deze schermen kun je met je handen gebieden selecteren, in- en uitzoomen en de kaart verschuiven (zie Figuur 5). De mogelijkheden zijn niet beperkt tot platte schermen: studenten van de Universiteit Leiden ontwierpen Globe4D, een interactieve wereldbol waarop drie-dimensionale beelden van de aarde geprojecteerd worden (zie figuur 6). De gebruiker kan draaien aan een schijf om de wereldbol, waarmee hij de vierde dimensie in gang zet. De vierde dimensie van de globe kan de tijd of een andere variabele zijn, zoals de zeespiegel stand in het jaar 2100.”

NB:
Wanneer je de zeespiegel van het jaar 2100 wilt bekijken is toch tijd de afhankelijke variabele, niet de zeespiegel. Een beter voorbeeld was geweest op één moment in tijd in- of uitzoomen op aardlagen of de atmosfeer om bijvoorbeeld informatie te krijgen over levensvormen op verschillende hoogten.

De Tijdlijn voor het Rijksmuseum

Category: Information Esthetics, Tijdslijn, Flash, Art, General — Rick Companje — 27 November 2006 @ 21:58

Tijdens het laatste half jaar van mijn bachelor Interaction Design in 2004 ontwikkelde ik “De tijdslijn” voor het Rijksmuseum. Toen der tijd een presentatie van de Nederlandse Meesterwerken uit de Gouden Eeuw, maar zo gebouwd dat ie zo weer van de plank gehaald kon worden. En dat is nu gebeurd. En hoe!

‘De Tijdslijn’ is weer helemaal terug, en als nooit tevoren! Ontwerpbureau Fabrique heeft ‘m nieuw leven ingeblazen. Op basis van mijn oude code en gedachtengoed, maar wel met aantal sterke verbeteringen. Zo is de filter nu een stuk prominenter maar vooral intuitiever, staan de scrollbalkjes voor het reizen door de tijd en het kiezen het detailniveau op een betere plaats en valt er per kunstwerk een heleboel te lezen en te zien.

rijksmuseum-tijdslijn-tijdlijn-canon.jpg

Een visuele reis door de tijd, langs belangrijke personen, gebeurtenissen en thema’s: een combinatie van de canon en de presentatie in het nieuwe Rijksmuseum. Deze special van het Nederlandse verleden in internationale context zal met regelmaat uitgebreid worden. (www.rijksmuseum.nl)

rijkscanon.jpg
De Rijksmuseum “tijdlijn, tijdbalk, tijdslijn of timeline”

Lees meer over de tijdslijn…

Beestjes in de MemePool

Category: Information Esthetics, Semester Project, Events, General — Rick Companje — 9 September 2006 @ 16:37

De Media Technology expositie nadert… Vrijdag 15 t/m zondag 24 augustus in Scheltema in Leiden.
Meer info volgt spoedig.

beestjes1.png

Vervolg: document classificatie met nieuwsgroepen

Category: Information Esthetics, Media Tech, Semester Project, General — Rick Companje — 27 August 2006 @ 20:13

worpjes450.jpg

Boggle

Category: Semester Project, Information Esthetics, Processing, Programming, Science, General — Rick Companje — 20 August 2006 @ 16:57

Ik zie ineens dat m’n er naam rechtsboven staat. Hoe toevallig is dat!?
Klik op de afbeelding om de applet te openen.

Springs used for flattening 26 dimensions into 2

View source

Gebruik +/- voor het aantal particles, r voor reset en c voor clear

GMail API

I started experimenting with the GMail API and it rocks!
We’re going to use this API in our Petri-Jungle E-volution project to create life-forms from e-mail. More info follows.

[code lang=”PHP”]$gmailer = new GMailer();
if ($gmailer->created) {
$gmailer->setLoginInfo($gmail_acc, $gmail_pwd, $my_timezone);
if ($gmailer->connect()) {
// $gmailer->fetchBox(GM_STANDARD, “inbox”, 0);
// $gmailer->fetchBox(GM_LABEL, “Globe4D”, 0);
// $gmailer->fetchBox(GM_CONTACT, “all”, 0);
$gmailer->fetchBox(GM_QUERY, “To:Nico”, 0);
$snapshot = $gmailer->getSnapshot(GM_STANDARD);
//echo print_r_xml($snapshot);
print_r($snapshot);
[/code]

The output is a snapshot object like this:
[code lang=”PHP”]
GMailSnapshot Object
(
[created] => 1
[gmail_ver] => cd4adb3001353850
[country] =>
[google_name] => Rick Companje
[have_invit] => 96
[quota_mb] => 1760

[quota_tot] => 2743
[quota_per] => 64
[quota_col] => #006633
[gmail_tip] => Shortcuts: …………

[personality] => Array
(
[0] => Array
(
[name] => Rick Companje
[email] => ……………….

[default] => 1
[reply-to] =>
[verified] => 1
)

)
[label_list] => Array
(
[0] => 3voor12
[1] => ARP Mailing
[2] => Cijfers.net
[3] => Domeinen
[4] => Events

[5] => Fabrique
[6] => Flash
[7] => FlexCoders
[8] => Globe4D
[9] => Hardware
[10] => HHS
[11] => Kamer zoeken

[12] => Lasergame
[13] => Links
[14] => Lowlands 2004
[15] => Lowlands 2005
[16] => Nieuwsbrieven
[17] => Nieuw Zeeland
……..
[view] => 11
[box_name] => Search results for: To:Nico
[box_total] => 190
[box_pos] => 0
[box_display] => 20
[box_query] => To:Nico

[queried_results] => 1
[box] => Array
(
[0] => Array
(
[id] => 10c67372660b17a8
[is_read] => 0
[is_starred] => 0

[date] => 10:28 am
[sender] => Draft
[flag] =>  
[subj] => goed nieuws gmail api
[snippet] =>

[msgid] => 10c67372660b17a8
[labels] => Array
(
[0] => ^r
)

[attachment] => Array

(
)

[long_date] => Thu Jul 13 2006
[long_time] => 10:28 AM
[is_chat] => 0
[chat_length] =>

)
[/code]

Inkblots of your Inbox

Experimenting with visualisation of word patterns in e-mail, blogs, fora, chats and newsgroups.

ScreenHunter_023.jpg

See also: DNA van je inbox

Globe4D at infosthetics.com

After such a brilliant day as yesterday where RTV West announced that the documentary they’re making about Globe4D will be watched by 250.000 people and where ACM Multimedia invitited us for the ACM Multimedia Conference in Santa Barbara California in October 2006, it’s seems to get even more crazy now! Andrew Vande Moere added Globe4D to the Information Aesthetics page!

Globe4D at Information Aesthetics

A big day for Globe4D!

globe4d-congrats.jpgToday, Monday the 3rd of July 2006 was really an amazing day! First, this morning RTV West visited our workspace for a documentary they make about our Globe4D project. And second, we got a positive response from the ACM Multimedia Conference 2006 in California!!! This means Globe4D will be part of the exibition in October!

WOEEEEHEEEEY!!!!

And by the way, our video demonstration has been viewed over 2000 5000 10000! times in the last five days! Awesome!

Interactive Morphogenesis

Category: Making Art of Databases, Language & Text, Gardening, Information Esthetics, Processing, Science, Tech, Projects, Art, General — Rick Companje — 29 June 2006 @ 13:16

Some information on our Making Art of Databases project ‘Interactive Morphogenesis‘ is available now.

morphogenesis400-2.jpg

Interactive Morphogenesis is a project in which I and two other students demonstrated a concept for interacting with three-dimensional Lindenmayer Systems (L-systems) models using live sound.
Using the dynamics of L-systems, methods for visualizing and synthesizing sound are examined through recursive generation of virtual-artificial organisms.
The project shows how L-systems can be used to visualize elements in sound and vice-versa, to demonstrate how sound can be used to grow L-system based, interactive artificial morphogenesis.

morphogenesis400.jpg

DNA van je Inbox…

Watch and interact with the Java Applet (drag with your mouse):

Lees verder…

Next Page »