Processing & JavaScript
-
Will Processing sketches run in the Isadora JavaScript actor? Thanks for your comments.
-
No,
The javascript actor does not have access to the DOM (the browsers Document Object Model), this is where all visuals like webGL, html rendering occur.Processing.js requires a DOM (supplied by a modern browser)On this page, you can see that Javascript if broken in to sections: http://www.w3schools.com/js/js_window.aspThe javascript actor gives you access to all the standard language features. processing.js would require a browser to render the output. -
Thank you. Therefore I should stop learning Processing and start learning JavaScript if my ultimate goal is to use the code in Isadora. Correct??
-
No Vanderzee,
it is 2 very different things. Processing is to producer graphics (especially generative graphics). Javascript in Isadora is more for calculations, more complex text comparisons that one offered by the text comparator and the text parses options as far as I understand -
Thanks. I'm beginning to sort some things out. I played with Quartz Composer for several hours and created a bouncing sphere and got it into Izzy as a QC "user actor" with inputs for x,y,z lighting position and sphere size! I think that will take me a very long time to do with Processing but I still need competence in Processing to code the algorithms in installation I'm creating. Excited!
-
Its totally possible to run a Processing sketch outside of Isadora and have it communicate through OSC. Means the startup may be slightly more complicated (which can be an issue if it is left to be run by others).
-
Thanks Nick. I have tinkered with Processing + Syphon Server and Isadora Syphon actors.
-
I have written a patch in Processing that communicates with Isadora over OSC in both directions. It also outputs the Processing video stream over Syphon, so that I can pick it up in Isadora and carry on playing with it there. The Processing patch still needs some work, and to use it, you would need some medium level of understanding of Processing language (a form of java) and how to install libraries etc. When its ready I will share it... but not quite yet... I am using it in an upcoming gallery project and a research project, but will release it after I get through all that.
-
@vanderzee we have solved Processing communication with Isadora over OSC, PHP, Syphon a year ago, remember? I think this was not your question now.
My result java (Processing) gives me poor performance, I use openGL QC patches instead very powerful.greetings rainbow -
@rainbow: Yes I have followed the Isadora, Processing, Syphon thread on the forum. I understand how to do that.
Currently, I'm trying to decide between Isadora, Processing and Quartz Composer which is the best solution for a project I'm developing. Perhaps a combination of all three will be my solution. The project requires alphanumeric inputs from the participant, data storage and execution of several emergence theory algorithms and the creation & projection of data visualizations. I've been frustrated with Izzy's Data Array Actor and my inability to get repeatable results. Several forum members have given me ideas for using this actor, but I've not mastered it yet.Thanks. -
"several emergence theory algorithms" sounds complicated @vanderzee
There will be no harm in learning processing that's for sure. -
QC and Max work great for all installations.
-
I wouldn't say all instillations, not for QC anyway. QC can be buggy and a bit experimental. Max is better in my opinion.
-
@Skulpture: will trade 1+x beers for a Data Array Actor tutorial. X = ?
-
I have been planning a Data Array tutorial/walk thru...
Its currently on my short list of tutorials to write.I'm holding back because I am experimenting with using Javascript to automate the read/write of lists of data a little.. How do you imagine using the Actor? The more I understand peoples needs the better I can approach it. -
@DusX, I am curious how you automate read/write/erase function for data array actor, I know how to use the data array actor, very tricky task, I used for one installation years ago, I developed a different tool outside of Isadora to read/write data via OSC works great. :)
-
Data array tutorial sounds great
-
@vanderzee I will always help you out when I can. Regardless of beers ;)
But I actually haven't used the actor that much. I tested it out a bit and did that short tutorial on my blog but the type of stuff you are doing sounds pretty complex (to me anyway).I am sure you will find a solution. -
For Javascript automation,
I am hoping to be able to define a 2d array in Javascript and automate the setting saving of this data. I want to be able to write full rows (or defined ranges) of data in one go, as well as, read ranges of data easily. -
@Skulpture: Thanks.
@DusX: I am interested in seeing the code for this Array. Do you expect it to run in the Izzy Javascript actor? Do you expect it to run in Processing?