Tuesday 16 September 2008

virtual plant

This is just a short test on using XML data streams to create 3d geometry which is good for 3d printing.
Download the application to let it grow on your computer(windows,macosX). 
It uses real temperature data from different locations around the globe (you can switch location by pressing 'c') and the current sun position at the location to determinate the growth. 
With 'd'=/2 | 'f'=*2 you can change the growth rate, but to get nice results you will need to let it grow slow (grow rate about .000125 or less). If you press 'e' it will stop the growing and save (as XMLfile) the current geometry which will be the geometry it will start growing from if you reopen the program. After that you can navigate around your plant with the coursers and 'q'/'a'. 
To reset your plant just delete the XML file and it will start new. It also exports a dxf file every 25 minutes (or press 'r').
After welding the vertex in a 3d program you should be able to do a 3d print of it. 
Will soon post images of my plant and pictures of the 3d print.

Thanks to 

4 comments:

Jahue said...

Im very interested in this process. Is there any way I could get a more detail explanation of the program. I am a novice a processing and I understand some things but Im interested in how you are getting the data for the sun etc. I would love to use this with my students but I need to explain it a bit clearer to them. Im also interested in how you take the processing data in create an application.

Very Cool
Justin

RS said...

Hallo jahue

Sorry that it took a while. In the source files. There is one file missing which would explain it.
I can't publish it because it has my user id to access the weather information.
You can access the data for free through a xml data feed:
http://www.weather.com/services/xmloap.html?from=search_siteresults%3C1%3E

Together with the proXML tool from the processing page you can read the data feed.

I know my code is a little bit messy if you have any questions to specific lines please send me an e-mail :

schaf82-at-aon.at

Richard

RS said...

and the SUN :

from the XML feed I get the data for the global position, and the time.

based up on that and an explanation form wikipedia

http://de.wikipedia.org/wiki/Sonnenstand

I callculate the position. (unfortunatly it's german)

There seams to be a slight bug with calculating the Julian day. If you would use it for astrophysics it would be a failure but I am an architect.

schaf

Kenshiro said...

Could you re-host the file? It sounds very interesting.