Category Archives: Experimentation

Test ProcessingJS

Circuit setup for sensor control of mains power supply

Circuit setup for sensor control of mains power supply. This stage shows the circuit with a physical switch that allows a current from one source (9v battery) flip a relay and supply a higher current from another source (mains AC power adapter plugged into the mains socket). A 5v input from a digital pin can be used to switch on a device powered by an electrical mains power supply.

Kinect3D Client-Server

Am currently working a client server application for the Kinect3D. I am looking to take data from the Kinect and send it over a socket connection so it can be accessed in other applications such as Flash, Processing and Unity3D.

Will have a basic working prototype shortly for testing which takes joint data from a tracked skeleton and sends it over the web to a server that then distributes it an client that subscribes to the server.

It’s been written for PC only and developed in VS2012 with C#. Earlier I experienced poor support for the connect via Processing forums so decided to take this rout. the release of the K3D SDK by Microsoft last June supports the decision to go with C#. My immediate goal is to get the data into Unity3D where I can do some public prototyping.

The illustration below shows the current state of the Kinect client and server applications.Plenty to be done still.

32m Radio Telescope

Was asked today if I would be interested in developing some artwork with a 32m Radio Telescope. Blackrock Castle Observatory gained access to the telescope which they upgraded with a digital fiber optic so live data streams can be sent directly from to a desktop computer is just outside Cork on the east side near Midleton Cork.

The telescope is pictured in an Irish Times article published just yesterday.

Dynamic Clouds

It is envisioned at this point that the output from several drawings will be used as input for a dynamic painted scene that is controlled by a number of constantly changing events. Cloudscapes are one possibility and others may include sources such as the changing data from the quasar presented in previous posts.

Below is an example of a cloud drawing that has been generated with AS3 by borrowing pixels from a collection of images taken of sky scenes. At present the source files are static but other work done earlier will enable the imagery to be written in real time from webcams or other live image feeds.

cloudScape02

Quasar Data Animation Update

The linked file below is another version of the animation reported in the post entitled “Prototype Animation Anticipating Data from BCO” on the 16th February last. In this case however the data that drives the animation of the same circle is the actual data from an online archive of values representing the quasar’s behaviour as captured in studies of the object from various locations on earth.

Black Hole Animation

The data driving the animation is a small selection of values that have been collected from the archive and processed through a combination of functions and regular expressions. In this example there are in total 28 keyframes driving the motion. No consideration has been given yet to the aesthetics or function of the animation. Developments in relation to this will be posted in due course.

Stripping Text From Quasar DAT Files

Had some success today with stripping out floating point values from the DAT text files that BCO provided. The values are extracted through two functions. The first sets a patterns to find a specific value in the DAT file such as “10.00” and then does a second search to get another value in a offset column of text in a row marked by the value “10.00”. When the value is identified it is passed into an array. The second function then does the straightforward work of clearing the value of white space. The next stage is now to normalise this value  so it can be used as an animation key as described in, “Prototype Animation Anticipating Data from BCO” posted on 16th Feb last.

One unforeseeable issue that came up was related to the quantity of data. Pulling in text information dynamically to AS3 is typically unproblematic but in this case the smallest text file in the batch is42mb; other files are in excess of 213mb. An intermediate step may be required to copy out specific values from these raw files and generate new text files that are then passed to AS3.

A second issue is that when a selection of values is taken from the text file, that is one that represents the brightness value for a certain radius of pixels in the image from the telescope , there are in the smallest text file 21,511 values that represent changes in light readings from March to May 2008. I may therefore have to consider how to manage these values. Based on a very loose estimate of the data I have access to at present this would provide me with approx. half of one million keyframes generated from studies of quasars recorded over a period of one calendar year.

Before I go there I want to now invest some time with what I will do visually with the data. I intend soon return to looking at processes that will allow me to draw in real time with the information and extend earlier investigations as demonstrated in ‘Family Portrait’ (see post entitled “Real time Portraits” from 7th Feb last)

AS3 Image Focus

Have been working on on controlling images automatically taken from a web server and with sensors connected through the computer via an Arduino board.

See below for a setup in AS3 where the images are downloaded through a call to a PHP script imported and blurred using filters on bitmapped data object. In this case the image focus is controlled by the proximity of the viewer to the image. At present it is wired with just one sensor but the intention is to get a range of data from the viewing which in turn will be used to guide the viewers position in the space before the image.

foucusImageArduino

Online Access to Quasar Data

Just received online access today to the data from Blackrock Castle. I have been developing some functions that use regular expressions to filter out irrelevant information in the data so I can access the physical changes in light detected throught the telescope. I have run in to some problems with this and additional work will need to be done before I can begin considering the  frontend visuals that will be driven by these values. Happy now to have the real information to work with and I will begin testing out the regExpessions on the actual data in the coming days.

Entity 0716 714

0716 714  are the spatial coordinates of the black hole that will form the focus of my attention with respect to the current practical experimentation. I met again yesterday with Alan Gilsinan at Blackrock Castle Observatory (BCO). The purpose of this meeting was to gain some understanding  of:

  1. the entities that are currently within the scope of the observatory’s studies;
  2. where these entities are located;
  3. specific data that BCO studies and why that data might be interesting from a scientific perspective;
  4. what the data represents
  5. what form the data is encoded or formatted (decimal, octal, etc)

The meeting lasted for about two hours and many of the questions above were clarified. Needless to say the issues are so complex that clarification really is used here in a relative sense. For example when one asks: “where is this object?”, because of the field of study the answer is framed not only in spatial terms but also in time. So while the object above can be referenced by a particular co-ordinate system such as the ‘equatorial coordinate system’ with Declination (Dec) and Right Ascension (RA) values it is also located back in time, estimated at 15 billion light years. Therefore this object while located outside our own galaxy may not exist in current time.

While there is an uncountable number of entities in space it is estimated that there are 100,000 entities that are currently of interest to the astronomical community worldwide. With respect to BCO there are approx. 20 objects that consume their attention and their particular interest is in quasars which are specific type of black hole, possibly super massive black holes. The categorisation is based not on the material or physical attributes of a black hole per se but its orientation to the observer. In this way a ‘normal’ quasar is defined by a viewpoint that is not obscured by the material being swept into the centre of the black hole but one that looks directly through  its centre from a perpendicular direction to the acceleration disk – the spinning donut of matter some of which is sucked in and destroyed by the black hole. The resulting energy that is produced by this ‘proposed’ activity is emitted outwards in opposite poles from the centre of the black hole; these projections of energy, sometimes referred to as ‘cosmic jets’ , when pointing directly towards the observer, register as a flickering light source. Astronomers at BCO observe these changing light energy values in the interest of discovering what the behaviour might infer.

The data that has been accumulated and processed in BCO is made available to this art project through a dot DAT text format. The data that is studied at the observatory comes from various scientific centres around the world. There is therefore a potential time lag of days to months between the recording of information via a telescope and me receiving the information for use in the art project. This is due to the enormous quantities of information being processed which result in terabytes of data that is then filtered and evaluated. The information that I am currently accessing, thanks to Alan and Niall, represents fluctuations in the light values being emitted from the above quasar.

The data itself is released to me in text format and the numeric values are encoded in 16bit (14bit when unpacked) grayscale spectrum values. Before this information is useful with respect to the artwork a number of filtering operations must be applied in order to extract the ‘interesting’ values that will be used to drive events within the interactive art work. These values must then be normalised so they can be utilised practically as events or keys for animation. While I  have already done some work on this using dummy data (see post on 16th Feb entitled ‘Prototype Animation Anticipating Data from BCO’) more detailed work will need to be done to filter and access relevant information in the dot DAT files.