a tendency towards spontaneous order
a. all individuals are only aware of their nearest neighbors
b. have a tendency to align in the same direction
c. all attracted to each other, but try to keep some distance.
fish 1 body length apart, birds 3 or 4 body lengths apart.
when a predator's coming, get out of the way. then try to get back together.
advantages: your odds of being the one eaten is reduced. waves of panic can propagate. information is sent about half a kilometer in birds in a very short time.
find Steven Strogatz whole talk about nature and sync here.
Tuesday, January 13, 2009
John Maeda makes stuff
in this video hosted at ted.com, John Maeda talks about his life and work. he shows lots of experiments where he makes students function as parts of a computer. he also made a drawing program that has the feature where you can make a piece move about entirely randomly.
Thursday, December 18, 2008
Dubberly Design concept maps
Dubberly Design has posted a series of maps of different things on one page. some of them have links to pdf versions so you can really see the details.
Sunday, December 7, 2008
how to make a blue laser gun
instructions for making a blue laser gun out of an Xbox and a CO2 pistol (whatever that is).
Saturday, December 6, 2008
user experience design at halo
this is a short interview with Colm Nelson, Halo's interaction designer.
here's a short excerpt:
"By any measure, Halo 3 is one of the most wildly-successful consumer software interfaces in recent memory: more than 1 million players played the game in its first 24 hours on Xbox Live; over 8 million copies sold to date; and “over 100,000 pieces of user generated content being uploaded daily[...]"
the article is fairly brief but I wanted to be able to find it again some day so I'm posting it here.
here's a short excerpt:
"By any measure, Halo 3 is one of the most wildly-successful consumer software interfaces in recent memory: more than 1 million players played the game in its first 24 hours on Xbox Live; over 8 million copies sold to date; and “over 100,000 pieces of user generated content being uploaded daily[...]"
the article is fairly brief but I wanted to be able to find it again some day so I'm posting it here.
Tuesday, December 2, 2008
Saturday, November 29, 2008
water veins
natural motion with a haunting similarity to a vascular system. thanks to Paul Kahn and NEW Magazine.
Thursday, November 13, 2008
links to self portrait pdf's
here are pdf files showing 8 self portraits drawn with my eyes closed from an exercise in class compared with self portraits I have drawn from as far back as when I was a teenager.
self portrait 1
self portrait 2
self portrait 3
the above 3 are just portraits drawn from memory with my eyes closed
self portrait bad 1
self portrait bad 2
these next 2 were drawn when I was thinking about a time when I was being told I was bad
self portrait child 1
self portrait child 2
these 2 above were drawn while thinking of myself as a child
self portrait overjoyed
this final one was drawn while I thought about a time when I was overjoyed.
self portrait 1
self portrait 2
self portrait 3
the above 3 are just portraits drawn from memory with my eyes closed
self portrait bad 1
self portrait bad 2
these next 2 were drawn when I was thinking about a time when I was being told I was bad
self portrait child 1
self portrait child 2
these 2 above were drawn while thinking of myself as a child
self portrait overjoyed
this final one was drawn while I thought about a time when I was overjoyed.
Thursday, October 16, 2008
link to as3 class notes
I started posting my class notes from Brian's class in a separate blog. this way they will all be in one place without other junk inbetween. go to my main blog at viacamp.blogspot.com and look in the column on the right under good links if you want to see them.
Thursday, October 9, 2008
Wii night at dmi
Saturday, October 4, 2008
chaos, mojo, talisman, hoodoo, randomness and brownian motion
"Chaos = order without surface predictability." -Bala
"Talisman or amulet, a small object intended to bring good luck and/or protection to its owner
Mojo (pronounced /ˈmoʊdʒoʊ/) is a term commonly encountered in the African-American folk belief called hoodoo. A mojo is a type of magic charm, often of red flannel cloth and tied with a drawstring, containing botanical, zoological, and/or mineral curios, petition papers, and the like. It is typically worn under clothing.
"Spider's Nest Blues" by Hattie Hart and the Memphis Jug Band, Hart wants to go to New Orleans to get her toby (mojo) "fixed" because she is "having so much trouble" -- the mojo is protective and its power is wearing off, as witnessed by the "bad luck" she is having.
An amulet ( [Pliny], meaning "an object that protects a person from trouble"), a close cousin of the talisman (from Arabic طلاسم tilasm, ultimately from Greek telesma or from the Greek word "talein" which means "to initiate into the mysteries").
"Brownian motion (named in honor of the botanist Robert Brown) is the random movement of particles suspended in a liquid or gas or the mathematical model used to describe such random movements
Consider a large balloon of 10 meters in diameter. Imagine this large balloon in a football stadium. The balloon is so large that it lies on top of many members of the crowd. Because they are excited, these fans hit the balloon at different times and in different directions with the motions being completely random. In the end, the balloon is pushed in random directions, so it should not move on average. Consider now the force exerted at a certain time. We might have 20 supporters pushing right, and 21 other supporters pushing left, where each supporter is exerting equivalent amounts of force. In this case, the forces exerted from the left side and the right side are imbalanced in favor of the left side; the balloon will move slightly to the left. This type of imbalance exists at all times, and it causes random motion of the balloon. If we look at this situation from far above, so that we cannot see the supporters, we see the large balloon as a small object animated by erratic movement."
Einstein's Explanation of Brownian Motion; click here, this is a link. this is an animation showing a bunch of small balls making a bigger ball move around by randomly hitting it over and over again.
Below: Lucretius's scientific poem On the Nature of Things (c. 60 BC) has a remarkable description of Brownian motion of dust particles
"Observe what happens when sunbeams are admitted into a building and shed light on its shadowy places. You will see a multitude of tiny particles mingling in a multitude of ways... their dancing is an actual indication of underlying movements of matter that are hidden from our sight... It originates with the atoms which move of themselves [i.e. spontaneously]. Then those small compound bodies that are least removed from the impetus of the atoms are set in motion by the impact of their invisible blows and in turn cannon against slightly larger bodies. So the movement mounts up from the atoms and gradually emerges to the level of our senses, so that those bodies are in motion that we see in sunbeams, moved by blows that remain invisible."
all quotes except for Bala's taken from Wikipedia, September 30 and October 4, 2008.
"Talisman or amulet, a small object intended to bring good luck and/or protection to its owner
Mojo (pronounced /ˈmoʊdʒoʊ/) is a term commonly encountered in the African-American folk belief called hoodoo. A mojo is a type of magic charm, often of red flannel cloth and tied with a drawstring, containing botanical, zoological, and/or mineral curios, petition papers, and the like. It is typically worn under clothing.
"Spider's Nest Blues" by Hattie Hart and the Memphis Jug Band, Hart wants to go to New Orleans to get her toby (mojo) "fixed" because she is "having so much trouble" -- the mojo is protective and its power is wearing off, as witnessed by the "bad luck" she is having.
An amulet ( [Pliny], meaning "an object that protects a person from trouble"), a close cousin of the talisman (from Arabic طلاسم tilasm, ultimately from Greek telesma or from the Greek word "talein" which means "to initiate into the mysteries").
"Brownian motion (named in honor of the botanist Robert Brown) is the random movement of particles suspended in a liquid or gas or the mathematical model used to describe such random movements
Consider a large balloon of 10 meters in diameter. Imagine this large balloon in a football stadium. The balloon is so large that it lies on top of many members of the crowd. Because they are excited, these fans hit the balloon at different times and in different directions with the motions being completely random. In the end, the balloon is pushed in random directions, so it should not move on average. Consider now the force exerted at a certain time. We might have 20 supporters pushing right, and 21 other supporters pushing left, where each supporter is exerting equivalent amounts of force. In this case, the forces exerted from the left side and the right side are imbalanced in favor of the left side; the balloon will move slightly to the left. This type of imbalance exists at all times, and it causes random motion of the balloon. If we look at this situation from far above, so that we cannot see the supporters, we see the large balloon as a small object animated by erratic movement."
Einstein's Explanation of Brownian Motion; click here, this is a link. this is an animation showing a bunch of small balls making a bigger ball move around by randomly hitting it over and over again.
Below: Lucretius's scientific poem On the Nature of Things (c. 60 BC) has a remarkable description of Brownian motion of dust particles
"Observe what happens when sunbeams are admitted into a building and shed light on its shadowy places. You will see a multitude of tiny particles mingling in a multitude of ways... their dancing is an actual indication of underlying movements of matter that are hidden from our sight... It originates with the atoms which move of themselves [i.e. spontaneously]. Then those small compound bodies that are least removed from the impetus of the atoms are set in motion by the impact of their invisible blows and in turn cannon against slightly larger bodies. So the movement mounts up from the atoms and gradually emerges to the level of our senses, so that those bodies are in motion that we see in sunbeams, moved by blows that remain invisible."
all quotes except for Bala's taken from Wikipedia, September 30 and October 4, 2008.
Thursday, October 2, 2008
Microsoft releases Photosynth for public use
I haven't checked this out yet but hope to once I get a little caught up with the rest of my work. Microsoft has released an online version of its software that collect groups of images and builds a kind of 3D model of a place out of them. it's available here
Tuesday, September 23, 2008
terminology considerations for a catalog of movement
I'm considering words to describe my catalog of movement.
lexography
The pursuit of lexicography is divided into two related disciplines:
* Practical lexicography is the art or craft of compiling, writing and editing dictionaries.
* Theoretical lexicography is the scholarly discipline of analyzing and describing the semantic, syntagmatic and paradigmatic relationships within the lexicon (vocabulary) of a language, developing theories of dictionary components and structures linking the data in dictionaries, the needs for information by users in specific types of situation, and how users may best access the data incorporated in printed and electronic dictionaries. This is sometimes referred to as metalexicography.
General lexicography focuses on the design, compilation, use and evaluation of general dictionaries, i.e. dictionaries that provide a description of the language in general use. Such a dictionary is usually called a general dictionary or LGP dictionary. Specialized lexicography focuses on the design, compilation, use and evaluation of specialized dictionaries, i.e. dictionaries that are devoted to a (relatively restricted) set of linguistic and factual elements of one or more specialist subject fields, e.g. legal lexicography. Such a dictionary is usually called a specialized dictionary or LSP dictionary.
taxonomy
Originally the term taxonomy referred to the classifying of living organisms (now known as alpha taxonomy); however, the term is now applied in a wider, more general sense and now may refer to a classification of things, as well as to the principles underlying such a classification.
Almost anything — animate objects, inanimate objects, places, concepts, events, properties, and relationships — may be classified according to some taxonomic scheme.
The term taxonomy may also apply to relationship schemes other than parent-child hierarchies, such as network structures with other types of relationships. Taxonomies may include single children with multi-parents, for example, "Car" might appear with both parents "Vehicle" and "Steel Mechanisms"; to some however, this merely means that 'car' is a part of several different taxonomies.[1]
A taxonomy might also be a simple organization of kinds of things into groups, or even an alphabetical list. However, the term vocabulary is more appropriate for such a list. In current usage within "Knowledge Management", taxonomies are seen as less broad than ontologies as ontologies apply a larger variety of relation types.
ontology
In both computer science and information science, an ontology is a formal representation of a set of concepts within a domain and the relationships between those concepts. It is used to reason about the properties of that domain, and may be used to define the domain.
Ontologies are used in artificial intelligence, the Semantic Web, software engineering, biomedical informatics, library science, and information architecture as a form of knowledge representation about the world or some part of it. Common components of ontologies include:
* Individuals: instances or objects (the basic or "ground level" objects)
* Classes: sets, collections, concepts, types of objects, or kinds of things.[1]
* Attributes: aspects, properties, features, characteristics, or parameters that objects (and classes) can have
* Relations: ways in which classes and individuals can be related to one another
lexicon
In linguistics, the lexicon (from Greek Λεξικόν) of a language is its vocabulary, including its words and expressions. More formally, it is a language's inventory of lexemes.
The lexicon includes the lexemes used to actualize words. Lexemes are formed according to morpho-syntactic rules and express sememes. In this sense, a lexicon organizes the mental vocabulary in a speaker's mind: First, it organizes the vocabulary of a language according to certain principles (for instance, all verbs of motion may be linked in a lexical network) and second, it contains a generative device producing (new) simple and complex words according to certain lexical rules. For example, the suffix '-able' can be added to transitive verbs only, so that we get 'read-able' but not 'cry-able'.
Usually a lexicon is a container for words belonging to the same language. Some exceptions may be encountered for languages that are variants, like for instance Brazilian Portuguese compared to the Portuguese language, where a lot of words are common and where the differences may be marked word by word.
When linguists study the lexicon, they study such things as what words are, how the vocabulary in a language is structured, how people use and store words, how they learn words, the history and evolution of words (i.e. etymology), types of relationships between words as well as how words were created.
An individual's lexicon, lexical knowledge, or lexical concept is that person's knowledge of vocabulary.
vocabulary
The vocabulary of a person is defined either as the set of all words that are understood by that person or the set of all words likely to be used by that person when constructing new sentences.
all definitions taken from wikipedia. links to the articles are placed on the terms. I will post some thoughts on the terms considered and why I am considering them soon.
lexography
The pursuit of lexicography is divided into two related disciplines:
* Practical lexicography is the art or craft of compiling, writing and editing dictionaries.
* Theoretical lexicography is the scholarly discipline of analyzing and describing the semantic, syntagmatic and paradigmatic relationships within the lexicon (vocabulary) of a language, developing theories of dictionary components and structures linking the data in dictionaries, the needs for information by users in specific types of situation, and how users may best access the data incorporated in printed and electronic dictionaries. This is sometimes referred to as metalexicography.
General lexicography focuses on the design, compilation, use and evaluation of general dictionaries, i.e. dictionaries that provide a description of the language in general use. Such a dictionary is usually called a general dictionary or LGP dictionary. Specialized lexicography focuses on the design, compilation, use and evaluation of specialized dictionaries, i.e. dictionaries that are devoted to a (relatively restricted) set of linguistic and factual elements of one or more specialist subject fields, e.g. legal lexicography. Such a dictionary is usually called a specialized dictionary or LSP dictionary.
taxonomy
Originally the term taxonomy referred to the classifying of living organisms (now known as alpha taxonomy); however, the term is now applied in a wider, more general sense and now may refer to a classification of things, as well as to the principles underlying such a classification.
Almost anything — animate objects, inanimate objects, places, concepts, events, properties, and relationships — may be classified according to some taxonomic scheme.
The term taxonomy may also apply to relationship schemes other than parent-child hierarchies, such as network structures with other types of relationships. Taxonomies may include single children with multi-parents, for example, "Car" might appear with both parents "Vehicle" and "Steel Mechanisms"; to some however, this merely means that 'car' is a part of several different taxonomies.[1]
A taxonomy might also be a simple organization of kinds of things into groups, or even an alphabetical list. However, the term vocabulary is more appropriate for such a list. In current usage within "Knowledge Management", taxonomies are seen as less broad than ontologies as ontologies apply a larger variety of relation types.
ontology
In both computer science and information science, an ontology is a formal representation of a set of concepts within a domain and the relationships between those concepts. It is used to reason about the properties of that domain, and may be used to define the domain.
Ontologies are used in artificial intelligence, the Semantic Web, software engineering, biomedical informatics, library science, and information architecture as a form of knowledge representation about the world or some part of it. Common components of ontologies include:
* Individuals: instances or objects (the basic or "ground level" objects)
* Classes: sets, collections, concepts, types of objects, or kinds of things.[1]
* Attributes: aspects, properties, features, characteristics, or parameters that objects (and classes) can have
* Relations: ways in which classes and individuals can be related to one another
lexicon
In linguistics, the lexicon (from Greek Λεξικόν) of a language is its vocabulary, including its words and expressions. More formally, it is a language's inventory of lexemes.
The lexicon includes the lexemes used to actualize words. Lexemes are formed according to morpho-syntactic rules and express sememes. In this sense, a lexicon organizes the mental vocabulary in a speaker's mind: First, it organizes the vocabulary of a language according to certain principles (for instance, all verbs of motion may be linked in a lexical network) and second, it contains a generative device producing (new) simple and complex words according to certain lexical rules. For example, the suffix '-able' can be added to transitive verbs only, so that we get 'read-able' but not 'cry-able'.
Usually a lexicon is a container for words belonging to the same language. Some exceptions may be encountered for languages that are variants, like for instance Brazilian Portuguese compared to the Portuguese language, where a lot of words are common and where the differences may be marked word by word.
When linguists study the lexicon, they study such things as what words are, how the vocabulary in a language is structured, how people use and store words, how they learn words, the history and evolution of words (i.e. etymology), types of relationships between words as well as how words were created.
An individual's lexicon, lexical knowledge, or lexical concept is that person's knowledge of vocabulary.
vocabulary
The vocabulary of a person is defined either as the set of all words that are understood by that person or the set of all words likely to be used by that person when constructing new sentences.
all definitions taken from wikipedia. links to the articles are placed on the terms. I will post some thoughts on the terms considered and why I am considering them soon.
Sunday, September 14, 2008
notes and suggestions on research agenda
I've been pooling notes for the exhaustive and exhausting self-study that I need to submit by October 1 in order to keep my job. one of the items I am asked to supply is my research interest and agenda. I do not know what a research agenda is, so I did some searching and found the following links.
Professor Barbara Ryder of Rutgers University has a simple, very understandable list of ideas on how ad why to do research.
this link goes to a pdf with her questions and answers. I am going to use this one in writing the paragraph on my research goals and agenda for my self-study.
Luis Villa made a blog posting of a series of notes from a seminar on establishing a research agends. First Movers focuses on legal research but it seems to have good general tips on what belongs in a research agenda and how to think about doing research long-term.
Getting A Teaching Job: The Research Agenda again, is written by a law professor. this article describes what a research agenda is and goes on to discuss why schools look for research agenda in prospective professors. I think the approach fits a variety of fields.
Brad Neuberg's "Coding in Paradise" is one programmer's musings about his own personal approach to research and why he finds it important. there is a list of research questions down on the page that I found helpful when I start thinking about my own research questions, particularly now that I need to explain them in writing to an academic, liberal arts audience that will most likely not understand any technical information but will very likely be evaluating my writing against an unknown and undefined criteria.
You and Your Research is a transcript of a seminar talk given by Richard W. Hamming of Bell communications research on March 7, 1986. the talk is about his relationship to his research peppered with some stories of others around him and where they succeeded or failed in their life's research. it's interesting.
Professor Barbara Ryder of Rutgers University has a simple, very understandable list of ideas on how ad why to do research.
this link goes to a pdf with her questions and answers. I am going to use this one in writing the paragraph on my research goals and agenda for my self-study.
Luis Villa made a blog posting of a series of notes from a seminar on establishing a research agends. First Movers focuses on legal research but it seems to have good general tips on what belongs in a research agenda and how to think about doing research long-term.
Getting A Teaching Job: The Research Agenda again, is written by a law professor. this article describes what a research agenda is and goes on to discuss why schools look for research agenda in prospective professors. I think the approach fits a variety of fields.
Brad Neuberg's "Coding in Paradise" is one programmer's musings about his own personal approach to research and why he finds it important. there is a list of research questions down on the page that I found helpful when I start thinking about my own research questions, particularly now that I need to explain them in writing to an academic, liberal arts audience that will most likely not understand any technical information but will very likely be evaluating my writing against an unknown and undefined criteria.
You and Your Research is a transcript of a seminar talk given by Richard W. Hamming of Bell communications research on March 7, 1986. the talk is about his relationship to his research peppered with some stories of others around him and where they succeeded or failed in their life's research. it's interesting.
Tuesday, September 9, 2008
links to my processing sketches
pointLight5 is my sketch for moving light around following the mouse. I got it to read mouseX and mouseY.
(speaking of mice, I cleaned a lot of droppings in the studio this morning. pretty yucky.)
useMyClass10 is a space with the point light and another kind of light from the pointLight sketch with some spheres created with a class and some composite cubes with a stationary cube in the same place as a non stationary cube that rotates according to the mouse. it looks pretty cool.
moveClass4 is a sketch that I started with the hope of making the elements of useMyClass float around on the screen. it didn't work out that way but what happened is really interesting. I have no control over this one and I don't know how it does what it does but it does move.
I posted moveClass5 here also but the only difference from moveClass4 is the background color. today I couldn't see the darker one on my screen, probably because I was facing the rising sun so I made it lighter.
Jason, exporting processing sketches to html is easy. so I did some for all of you to see.
(speaking of mice, I cleaned a lot of droppings in the studio this morning. pretty yucky.)
useMyClass10 is a space with the point light and another kind of light from the pointLight sketch with some spheres created with a class and some composite cubes with a stationary cube in the same place as a non stationary cube that rotates according to the mouse. it looks pretty cool.
moveClass4 is a sketch that I started with the hope of making the elements of useMyClass float around on the screen. it didn't work out that way but what happened is really interesting. I have no control over this one and I don't know how it does what it does but it does move.
I posted moveClass5 here also but the only difference from moveClass4 is the background color. today I couldn't see the darker one on my screen, probably because I was facing the rising sun so I made it lighter.
Jason, exporting processing sketches to html is easy. so I did some for all of you to see.
Friday, August 29, 2008
the turing test web page
this is a web site that has a collection of information about the Turing Test including some links to online bots that you can interact with.
Jason Salavon revisited
last week I posted a link to Jason Salavon's web site after looking at only a few pieces. today I took some more time to look at his work and found The Grand Unification Theory (Part Four: Every Second of Deep Throat). he took one frame from each second of the film and arranged them from light to dark radiating from the center of the page. he did one for "Star Wars," "Snow White" and "It's a Wonderful Life," too.
Thursday, August 28, 2008
notes aug 21
I put my notes in my sketchbook for this class. if you want to see them you will have to find me and ask to borrow the book for a minute.
notes August 20
Make an array
Or try an if statement
Cygwin – Unix(BSD)
Virtual box open source virtual linux for pc.
Curl is easy means of transferring files to web. url + file name needed to post music data.
Need unix prompt from pc to do music stuff.
JMyron libraries Dan worked with. Processing constructs – look under video capture/frame differencing.
A frame full of pixels is a really big array. Create multidimensional array with rows and columns. Will make one massive array
Good to use camera with fixed focus and fixed direction.
Video with windows will need: api fall into 2 categories,
native video and
each platform
capture talks to camera and
avi mov are containers. Car how codec that are inside those containers.
H.264,MJPEG, DivX
NTSC, PAL
Interlaced
Codecs
Hardware
And making things work natively on different platforms.
Either make your own library or use things that can talk to all of them
Check out real world video compression book from peachpit to learn how to encode video.
Windows : directShow, quickTime for windows
Mcos: quickTime (Cocoa; OTKit)
For capture, (important part)
MacOS quickTime cocoa has capture support
Windows directShow, no capture for quickTime. Worse, QT Cocoa is C++ mac only software, DS C++ for windows. Java doesn’t support any of that.
OT Java = processing.video
Mac: playback, capture ,terrible
Windows: playback even more terrible
Future: unspeakably awful
Deprecated
Don’t install update install new quicktime because it will break this stuff. No support at apple to check if QT java works. Capture works ok. Playback not. Should support DV camera and maybe HD camera. Windows doesn’t work at all.
WidVDIG video digitizer doesn’t talk to windows at all.
Bottom line - basic playback ok maybe on mac windows, advanced playback is trouble. Basic sketch working with video. Ask Peter to help, join the army trying to figure out how to do it.
ffmpge – java very fast and works in real time. No library now but maybe soon.
Mac capture ok
Windows look at JMyron for directShow support.
Future ffmpeg-java for playback. Java media components for playback
Use native libraries for capture.
Should be able to fix this with libraries outside of java. Flash capture works well because somewhere there is a set of libraries adobe supports that works on all platforms and they keep fixing them when they break.
If things break its not your fault. Capture applications won’t work on windows unless you use library that supports native video capture or
Mac QT for java.
Nothing on Linux.
cross platform libraries
OTHER KINDS OF INTERACTION
Watercolor
MouseX mouseY, pmouseX, pmouseY are reserved variables in processing. Pmouse I think means previous mouse position.
Remember, you always get a periodic rate. Never get continuous data, you get a set of samples and if the difference is great enough you get gaps, stepping, aliasing. You may need to interpolate to make things seem smooth.
Hold shift press play and you get whole screen mode. Can also hide menu bar and other thing.
Can also hide cursor noCursor();
Most pixels ever mostpixelsever.com has tutorials and how to use big screens. Also an explanation for how to use presentation mode without menu bar.
And can look at flickr for some other examples.
Try iterating some drawing sketches over and over again and see if you can get something to work.
Today apple store put out app that takes data values from iPhone.
Collisions with text is easy, its a rectangle. If something collides with a rectangle look for min x left edge, max x right edge, min y etc.
When in doubt, google trig and see what math has to say about the problem. Look on the processing site for some stuff. There may be answers there, too.
Toxic libraries has example vector interactions for complex shapes. Also has sin/cos lookup tables. Makes transitions gradual in movements. Think of roller coaster. Has wavy shape. At top & bottom going side to side, on sides going more vertically as a transition between the top and bottom. Slow down and speed up between states.
Shiffman book:
Look at chapter 5, fake physics and specifically 5.8 and try example 5.9.
Look at chapters 8 and 9.
Look at example 13.8, oscilation. chapter 13 is math stuff.
Then
Look on Ben Fry’s web site, http://benfry.com for examples from the data visualization book. Peter recommends it as the second processing book to buy.
Look for integrator class.
Basic interpolation in watercolor 1a sketch.
Build interaction into objects by building it into their class.
Fruit[] fruits =
{orange,pear,apple,pomegranate}
Fruits[1] = orange
Fruits[4] = pomegranate
for (int =0; i < fruits.length; i++)
Or try an if statement
if(count < array.length-1) {
do something;
count++; //this at the very end and the only use of count for the
//array.
}
println(array.length); //to find errors in the array counter
force += attraction*(target-value);
Cygwin – Unix(BSD)
Virtual box open source virtual linux for pc.
Curl is easy means of transferring files to web. url + file name needed to post music data.
Need unix prompt from pc to do music stuff.
JMyron libraries Dan worked with. Processing constructs – look under video capture/frame differencing.
A frame full of pixels is a really big array. Create multidimensional array with rows and columns. Will make one massive array
Good to use camera with fixed focus and fixed direction.
numPixels = video.width * video.height,;
Video with windows will need: api fall into 2 categories,
native video and
each platform
capture talks to camera and
avi mov are containers. Car how codec that are inside those containers.
H.264,MJPEG, DivX
NTSC, PAL
Interlaced
Codecs
Hardware
And making things work natively on different platforms.
Either make your own library or use things that can talk to all of them
Check out real world video compression book from peachpit to learn how to encode video.
Windows : directShow, quickTime for windows
Mcos: quickTime (Cocoa; OTKit)
For capture, (important part)
MacOS quickTime cocoa has capture support
Windows directShow, no capture for quickTime. Worse, QT Cocoa is C++ mac only software, DS C++ for windows. Java doesn’t support any of that.
OT Java = processing.video
Mac: playback, capture ,terrible
Windows: playback even more terrible
Future: unspeakably awful
Deprecated
Don’t install update install new quicktime because it will break this stuff. No support at apple to check if QT java works. Capture works ok. Playback not. Should support DV camera and maybe HD camera. Windows doesn’t work at all.
WidVDIG video digitizer doesn’t talk to windows at all.
Bottom line - basic playback ok maybe on mac windows, advanced playback is trouble. Basic sketch working with video. Ask Peter to help, join the army trying to figure out how to do it.
ffmpge – java very fast and works in real time. No library now but maybe soon.
Mac capture ok
Windows look at JMyron for directShow support.
Future ffmpeg-java for playback. Java media components for playback
Use native libraries for capture.
Should be able to fix this with libraries outside of java. Flash capture works well because somewhere there is a set of libraries adobe supports that works on all platforms and they keep fixing them when they break.
If things break its not your fault. Capture applications won’t work on windows unless you use library that supports native video capture or
Mac QT for java.
Nothing on Linux.
cross platform libraries
OTHER KINDS OF INTERACTION
Watercolor
MouseX mouseY, pmouseX, pmouseY are reserved variables in processing. Pmouse I think means previous mouse position.
Remember, you always get a periodic rate. Never get continuous data, you get a set of samples and if the difference is great enough you get gaps, stepping, aliasing. You may need to interpolate to make things seem smooth.
Hold shift press play and you get whole screen mode. Can also hide menu bar and other thing.
Can also hide cursor noCursor();
Most pixels ever mostpixelsever.com has tutorials and how to use big screens. Also an explanation for how to use presentation mode without menu bar.
And can look at flickr for some other examples.
Try iterating some drawing sketches over and over again and see if you can get something to work.
Dist function: dist();lets you measure distances without resorting to heavy math Pythagorean theorem.
Today apple store put out app that takes data values from iPhone.
Collisions with text is easy, its a rectangle. If something collides with a rectangle look for min x left edge, max x right edge, min y etc.
When in doubt, google trig and see what math has to say about the problem. Look on the processing site for some stuff. There may be answers there, too.
Toxic libraries has example vector interactions for complex shapes. Also has sin/cos lookup tables. Makes transitions gradual in movements. Think of roller coaster. Has wavy shape. At top & bottom going side to side, on sides going more vertically as a transition between the top and bottom. Slow down and speed up between states.
Shiffman book:
Look at chapter 5, fake physics and specifically 5.8 and try example 5.9.
Look at chapters 8 and 9.
Look at example 13.8, oscilation. chapter 13 is math stuff.
Location += location + “speed”
(location = location + some amount)
Then
force += attraction * (target- value);
acceleration = force/mass;
vel = (vel + acceleration) * damping;
Look on Ben Fry’s web site, http://benfry.com for examples from the data visualization book. Peter recommends it as the second processing book to buy.
Look for integrator class.
Basic interpolation in watercolor 1a sketch.
Build interaction into objects by building it into their class.
Subscribe to:
Posts (Atom)
