• Isadora
  • Get it
  • Forum
  • Help
  • ADD-ONS
  • Newsletter
  • Impressum
  • Dsgvo
  • Impressum
Forum

Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags

    Processing & JavaScript

    How To... ?
    10
    25
    5966
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Bill Cottman
      Bill Cottman last edited by

      Will Processing sketches run in the Isadora JavaScript actor? Thanks for your comments.

      http://www.BillCottman.com : Isadora3.0.8f09 with MBP OS X 10.11.6 in Minneapolis, MN

      1 Reply Last reply Reply Quote 0
      • DusX
        DusX Tech Staff last edited by

        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.asp
        The javascript actor gives you access to all the standard language features.  processing.js would require a browser to render the output.

        Troikatronix Technical Support

        • New Support Ticket Link: https://support.troikatronix.com/support/tickets/new
        • Isadora Add-ons: https://troikatronix.com/add-ons/
        • My Add-ons: https://troikatronix.com/add-ons/?u=dusx

        Running: Win 10 64bit, i7-8750H, M.2 PCIe SSD's, 16gb DDR4-2666, nVidia GTX 1070 | located in Ontario Canada.

        1 Reply Last reply Reply Quote 0
        • Bill Cottman
          Bill Cottman last edited by

          Thank you. Therefore I should stop learning Processing and start learning JavaScript if my ultimate goal is to use the code in Isadora. Correct??

          http://www.BillCottman.com : Isadora3.0.8f09 with MBP OS X 10.11.6 in Minneapolis, MN

          1 Reply Last reply Reply Quote 0
          • Armando
            Armando Beta Gold last edited by

            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

            Armando Menicacci
            www.armandomenicacci.net
            www.studiosit.ca

            Macbook pro 16 inches 2022 64 GB RAM, M1 MAX. OS 13 Ventura

            1 Reply Last reply Reply Quote 0
            • Bill Cottman
              Bill Cottman last edited by

              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!

              http://www.BillCottman.com : Isadora3.0.8f09 with MBP OS X 10.11.6 in Minneapolis, MN

              1 Reply Last reply Reply Quote 0
              • N
                nick last edited by

                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).

                MacBook Pro 11.5.2

                1 Reply Last reply Reply Quote 0
                • Bill Cottman
                  Bill Cottman last edited by

                  Thanks Nick. I have tinkered with Processing + Syphon Server and Isadora Syphon actors.

                  http://www.BillCottman.com : Isadora3.0.8f09 with MBP OS X 10.11.6 in Minneapolis, MN

                  1 Reply Last reply Reply Quote 0
                  • primaldivine
                    primaldivine last edited by

                    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.

                    Pro-User Latest Beta - MacBook Pro i7 2.66GHz SSD
                    www.jamiegriffiths.com Arctic Canada
                    www.chickweedarts.com

                    1 Reply Last reply Reply Quote 0
                    • rainbow
                      rainbow last edited by

                      @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
                      1 Reply Last reply Reply Quote 0
                      • Bill Cottman
                        Bill Cottman last edited by

                        @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.

                        http://www.BillCottman.com : Isadora3.0.8f09 with MBP OS X 10.11.6 in Minneapolis, MN

                        1 Reply Last reply Reply Quote 0
                        • Skulpture
                          Skulpture Izzy Guru last edited by

                          "several emergence theory algorithms" sounds complicated @vanderzee

                          There will be no harm in learning processing that's for sure. 

                          Graham Thorne | www.grahamthorne.co.uk
                          RIG 1: Windows 11, AMD 7 Ryzen, RTX3070, 16gig RAM. 2 x M.2 SSD. HD. Lenovo Legion 5 gaming laptop.
                          RIG 2: Windows 11, Intel i19 12th Gen. RTX3070ti, 16gig RAM (ddr5), 1x M.2 SSD. UHD DELL G15 Gaming laptop.
                          RIG 3: Apple rMBP i7, 8gig RAM 256 SSD, HD, OS X 10.12.12

                          1 Reply Last reply Reply Quote 0
                          • rainbow
                            rainbow last edited by

                            QC and Max work great for all installations.

                            1 Reply Last reply Reply Quote 0
                            • Skulpture
                              Skulpture Izzy Guru last edited by

                              I wouldn't say all instillations, not for QC anyway. QC can be buggy and a bit experimental. Max is better in my opinion.

                              Graham Thorne | www.grahamthorne.co.uk
                              RIG 1: Windows 11, AMD 7 Ryzen, RTX3070, 16gig RAM. 2 x M.2 SSD. HD. Lenovo Legion 5 gaming laptop.
                              RIG 2: Windows 11, Intel i19 12th Gen. RTX3070ti, 16gig RAM (ddr5), 1x M.2 SSD. UHD DELL G15 Gaming laptop.
                              RIG 3: Apple rMBP i7, 8gig RAM 256 SSD, HD, OS X 10.12.12

                              1 Reply Last reply Reply Quote 0
                              • Bill Cottman
                                Bill Cottman last edited by

                                @Skulpture: will trade 1+x beers for a Data Array Actor tutorial. X = ?

                                http://www.BillCottman.com : Isadora3.0.8f09 with MBP OS X 10.11.6 in Minneapolis, MN

                                1 Reply Last reply Reply Quote 0
                                • DusX
                                  DusX Tech Staff last edited by

                                  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.

                                  Troikatronix Technical Support

                                  • New Support Ticket Link: https://support.troikatronix.com/support/tickets/new
                                  • Isadora Add-ons: https://troikatronix.com/add-ons/
                                  • My Add-ons: https://troikatronix.com/add-ons/?u=dusx

                                  Running: Win 10 64bit, i7-8750H, M.2 PCIe SSD's, 16gb DDR4-2666, nVidia GTX 1070 | located in Ontario Canada.

                                  1 Reply Last reply Reply Quote 0
                                  • rainbow
                                    rainbow last edited by

                                    @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. :)

                                    1 Reply Last reply Reply Quote 0
                                    • crystalhorizon
                                      crystalhorizon Beta Platinum last edited by

                                      Data array tutorial sounds great

                                      Alexander Nantschev | http://www.crystalhorizon.at | located in Vienna Austria

                                      1 Reply Last reply Reply Quote 0
                                      • Skulpture
                                        Skulpture Izzy Guru last edited by

                                        @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.

                                        Graham Thorne | www.grahamthorne.co.uk
                                        RIG 1: Windows 11, AMD 7 Ryzen, RTX3070, 16gig RAM. 2 x M.2 SSD. HD. Lenovo Legion 5 gaming laptop.
                                        RIG 2: Windows 11, Intel i19 12th Gen. RTX3070ti, 16gig RAM (ddr5), 1x M.2 SSD. UHD DELL G15 Gaming laptop.
                                        RIG 3: Apple rMBP i7, 8gig RAM 256 SSD, HD, OS X 10.12.12

                                        1 Reply Last reply Reply Quote 0
                                        • DusX
                                          DusX Tech Staff last edited by

                                          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.

                                          Troikatronix Technical Support

                                          • New Support Ticket Link: https://support.troikatronix.com/support/tickets/new
                                          • Isadora Add-ons: https://troikatronix.com/add-ons/
                                          • My Add-ons: https://troikatronix.com/add-ons/?u=dusx

                                          Running: Win 10 64bit, i7-8750H, M.2 PCIe SSD's, 16gb DDR4-2666, nVidia GTX 1070 | located in Ontario Canada.

                                          1 Reply Last reply Reply Quote 0
                                          • Bill Cottman
                                            Bill Cottman last edited by

                                            @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?

                                            http://www.BillCottman.com : Isadora3.0.8f09 with MBP OS X 10.11.6 in Minneapolis, MN

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post