We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpPrograms › Visualising a sonar scan
Page Index Toggle Pages: 1
Visualising a sonar scan? (Read 781 times)
Visualising a sonar scan?
Mar 30th, 2009, 3:03pm
 
Hi people!

I'm new to Processing and have a project I'd like attempt.

I have some data from a sonar scan of a riverbed. The data is a text file containing a series of x, y, z coordinates.

I'd like to display the data in a way which allows me scroll back and forth through it.

I don't need it to look too fancy at the moment. I just want to get the data into processing, then I can take it from there.

So basically, I'm after some pointers on where to start. I ordered the 'Creative Coding' book (but it hasn't arrived yet  Sad )

Are there any particular areas that I should focus on to make this work?

Thanks in advance.

K.
Re: Visualising a sonar scan?
Reply #1 - Mar 30th, 2009, 4:03pm
 
for everything related to data visualisation i can recommend this book :
Visualizing Data: http://oreilly.com/catalog/9780596514556/ by ben fry himself.

it starts with some first examples of how to read data from a text file and convert it to some graphs, i guess this example would be a good start for you. Dont know if you want to spend some money on books, but its definitly worth it. Just feel free to ask more questions if you need more help, it shouldnt be to hard.
Re: Visualising a sonar scan?
Reply #2 - Mar 30th, 2009, 4:05pm
 
Just found one of my old sketches i made when working through this book. Thats the example i was talking about :
http://dec32.de/public/worlddata/applet1/index.html

Re: Visualising a sonar scan?
Reply #3 - Mar 30th, 2009, 4:19pm
 
I would plot the data in 3D, just as points or little spheres or something, then implement some arrow-key or mouse-move controls to move the viewpoint back and forth across the data.

If you do it in 3D that way, you'll also have an easy time implementing zoom-in/out and other nice visualization options too.
Re: Visualising a sonar scan?
Reply #4 - Apr 1st, 2009, 2:33am
 
ahh, that's great.

i have access to 'visualizing data' as an ebook through my uni's library, so i'll give it a read when i have some spare time.

@cloister: good idea, i'll try and hack something like that together later.

eventually i'm going to build a big multi touch surface (ala jeff hahn) to veiw the data. to begin with though i'm just going to stick to mouse control.
Page Index Toggle Pages: 1