{"id":18,"date":"2009-02-24T03:20:37","date_gmt":"2009-02-24T02:20:37","guid":{"rendered":"http:\/\/www.stud.uni-karlsruhe.de\/~uxa8\/cube\/?page_id=18"},"modified":"2015-06-12T23:39:37","modified_gmt":"2015-06-12T23:39:37","slug":"software","status":"publish","type":"page","link":"http:\/\/visualcube.org\/1e3\/?page_id=18","title":{"rendered":"Software"},"content":{"rendered":"<p>Basically, there are two steps to get you going:<\/p>\n<ol>\n<li>Download <a href=\"http:\/\/processing.org\/download\">PROCESSING 3.0a9 or later<\/a> and extract it anywhere you want.<\/li>\n<li>Download <a href=\"https:\/\/github.com\/qvt\/vc\/releases\/download\/v2.0.0\/visualcube1e3-library-2.0.0.zip\">the VisualCube library 2.0.0<\/a> and extract it into ~\/Documents\/Processing.<\/li>\n<li>You may further download some of the additional collections of sketches\u00a0listed below into ~\/Documents\/Processing.<\/li>\n<\/ol>\n<h3>VISUALCUBE1e3 LIBRARY FOR PROCESSING<\/h3>\n<p>Platform-neutral library for PROCESSING.<\/p>\n<p><a href=\"https:\/\/github.com\/qvt\/vc\/releases\/download\/v2.0.0\/visualcube1e3-library-2.0.0.zip\">VisualCube1e3 Library v2.0.0\u00a0(Mac, Windows, Linux) (en)<\/a>\u00a0for Processing 3.x.<\/p>\n<p><del><a href=\"https:\/\/github.com\/qvt\/vc\/releases\/tag\/v1.1.1\/visualcube1e3-library-1.1.1.zip\">VisualCube1e3 Library v1.1.1 (Mac, Windows, Linux) (en)<\/a><\/del>\u00a0for Processing 1.x, deprecated.<\/p>\n<h3>INSTALLATION INSTRUCTIONS<\/h3>\n<p>You first need the PROCESSING Development Environment. Pure PROCESSING distributions are available at <a href=\"http:\/\/processing.org\/download\">processing.org\/download<\/a>. Library v2.0.0 is compatible with PROCESSING v3.x, and has been tested with v3.0a9. For library v1.1.1,\u00a0you must\u00a0get an older PROCESSING v1.x from\u00a0<a href=\"https:\/\/web.archive.org\/web\/20091221094841\/http:\/\/www.processing.org\/download\">the web archive<\/a>.\u00a0Either way, you have to add the\u00a0following libraries to your installation:<\/p>\n<ul>\n<li><strong>VisualCube1e3 Library<\/strong><br \/>\nThe actual library for accessing the VisualCube hardware and a 3D simulation window which also works without device. Some\u00a0exemplary sketches are integrated to showcase what can be done with a\u00a0few lines\u00a0of code.<\/li>\n<li><del><strong>Sonia Sound Library v2.6<\/strong><\/del><strong>\u00a0outdated, though not required for most visuals to work<\/strong><br \/>\nTogether with <a href=\"http:\/\/cycling74.com\/downloads\/soundflower\">SoundflowerBed<\/a>, Sonia <del datetime=\"2015-06-04T09:53:55+00:00\">enables<\/del>\u00a0enabled Mac users to virtually redirect line-out signals to line-in. Other libraries like Minim do not use OSX&#8217;s Core Audio, and therefore are limited to the line-in jack offered by your macbook (mic input). Cf. <a href=\"http:\/\/processing.org\/discourse\/yabb2\/YaBB.pl?num=1189352183\/10\">http:\/\/processing.org\/discourse\/yabb2\/YaBB.pl?num=1189352183\/10<\/a> and <a href=\"http:\/\/www.sojamo.de\/blog\/2007\/10\/15\/sound-routing\/\">http:\/\/www.sojamo.de\/blog\/2007\/10\/15\/sound-routing\/<\/a>.<\/li>\n<\/ul>\n<p>Since Processing 2.x, you just have to extract the library zip file into your PROCESSING\u00a0sketches folder ~\/Documents\/Processing and (re)start the IDE.\u00a0Detailed installation instructions are <a href=\"https:\/\/github.com\/processing\/processing\/wiki\/How-to-Install-a-Contributed-Library\">here<\/a>.<\/p>\n<p>Under\u00a0Processing 1.x, the given libraries\u00a0must be added into\u00a0the processing application folder. For installing the old library v1.1.1 into PROCESSING 1.x, we further recommend using a small <a href=\"http:\/\/lubuntu.net\">Linux<\/a> in a <a href=\"https:\/\/www.virtualbox.org\">VirtualBox<\/a>. You also\u00a0need to install a legacy Java 6 VM (<a href=\"https:\/\/support.apple.com\/kb\/DL1572?locale=en_US\">Java 6 for Mac<\/a>, <a href=\"http:\/\/www.oracle.com\/technetwork\/java\/javase\/downloads\/java-archive-downloads-javase6-419409.html#jre-6u45-oth-JPR\">Java 6 SE RTE for Linux and Windows<\/a>).<\/p>\n<h3>PREINSTALLED PROCESSING IDEs<\/h3>\n<p>Beginning with PROCESSING 2.x, the library is installed into the user&#8217;s private sketches folder. Thus, it doesn&#8217;t make much sense to offer a combination of IDE and library.<\/p>\n<p><a href=\"wp-content\/uploads\/processing-1.0.5-win.zip\"><del>Processing v1.0.5 + VisualCube1e3 Library v1.1.1 (Windows+Java) (en)<\/del><\/a>, deprecated<br \/>\n<a href=\"wp-content\/uploads\/processing-1.0.5-mac.zip\"><del>Processing v1.0.5 + VisualCube1e3 Library v1.1.1 (Mac) (en)<\/del><\/a>, deprecated<br \/>\n<del><a href=\"wp-content\/uploads\/processing-1.0.5-lin.tgz\">Processing v1.0.5 + VisualCube1e3 Library v1.1.1 (Linux) (en)<\/a><\/del>, deprecated<\/p>\n<h3 style=\"font-size: 1.17em;\">EXAMPLE SKETCHES FOR PROCESSING<\/h3>\n<p>Several attendees of GPN created visual effects and mini games for the cube.<\/p>\n<p><a href=\"https:\/\/github.com\/qvt\/vc\/releases\/download\/v2.0.0\/visualcube1e3-gpn13-effects.zip\">GPN 13 Effects Collection<\/a><\/p>\n<p>This collection of effects contains:<\/p>\n<ul>\n<li>MetaBawls<\/li>\n<li>Plasma<\/li>\n<li>ShadeBob for Kinect<\/li>\n<li>Tetris3D<\/li>\n<\/ul>\n<p><a href=\"https:\/\/github.com\/qvt\/vc\/releases\/download\/v2.0.0\/visualcube1e3-hfgxmas2009-effects.zip\">HfG Xmas 2009\u00a0Effects Collection<\/a><\/p>\n<p>The collection of effects includes:<\/p>\n<ul>\n<li>_Effects2_\u00a0\u00a0(main sketch\u00a0for random effect switching)<\/li>\n<li>StarOfBethlehem<\/li>\n<li>TreeHunt<\/li>\n<li>Waeldchen<\/li>\n<li>xmastree<\/li>\n<\/ul>\n<p><a href=\"https:\/\/github.com\/qvt\/vc\/releases\/download\/v2.0.0\/visualcube1e3-gpn8-games.zip\">GPN8 Games Collection<\/a><br \/>\n<a href=\"https:\/\/github.com\/qvt\/vc\/releases\/download\/v2.0.0\/visualcube1e3-gpn8-effects.zip\">GPN8 Effects Collection<\/a><\/p>\n<p>The collection of games includes:<\/p>\n<ul>\n<li>Connect5<\/li>\n<li>DiamondBlast<\/li>\n<li>Pong3D<\/li>\n<li>SpaceInvaders<\/li>\n<\/ul>\n<p>The collection of effects contains (besides example effects and some from previous events):<\/p>\n<ul>\n<li>GPN8Effects (main sketch\u00a0for random effect switching)<\/li>\n<li>Fire (sadly enough, this got lost in the woods&#8230;)<\/li>\n<li>Icon<\/li>\n<li>LonelyWorm<\/li>\n<li>Matrix<\/li>\n<li>Punkte<\/li>\n<li>RGB_roxxx<\/li>\n<li>Starbirth<\/li>\n<li>ThreePoints<\/li>\n<\/ul>\n<p>The VisualCube library brings along a set of examples which can be opened under the PROCESSING IDE via File &gt; Examples &gt; Contributed Libraries &gt; visualcube1e3. The selection includes effects contributed by GPN attendees and HfG workshop seminarists as well as our own examples:<\/p>\n<ul>\n<li>Beats (requires the Minim library)<\/li>\n<li>Benchmark (for\u00a0testing the device)<\/li>\n<li>Checkerboard<\/li>\n<li>ColorCraze<\/li>\n<li>Coordinates<\/li>\n<li>Fan<\/li>\n<li>Flash<\/li>\n<li>GameOfLife<\/li>\n<li>HAL9001<\/li>\n<li>Icon<\/li>\n<li>LonelyWorm<\/li>\n<li>MagicMoodLamp<\/li>\n<li>Metaballs<\/li>\n<li>Mixballs (a Metaballs derivate)<\/li>\n<li>Pulsating<\/li>\n<li>Shadebob<\/li>\n<li>Snoozing<\/li>\n<li>SoundTowers (deprecated, requires the Sonia library)<\/li>\n<li>Spiral<\/li>\n<li>Sprites<\/li>\n<li>WickedWorms<\/li>\n<li>XRayMirrorBall<\/li>\n<\/ul>\n<p><strong>Important:<\/strong> With the latest library v2 and\u00a0PROCESSING 2.x\/3.x, you need\u00a0to adjust the setup method this way, if not already done:<\/p>\n<pre>void setup() {\r\n  size(800, 800, P3D);    \/\/ open 3D canvas\r\n  cube.open(\"10.0.0.1\");  \/\/ say hello to the cube\r\n  cube.clear();           \/\/ clear the display\r\n  cube.simulate();        \/\/ start the simulator\r\n}<\/pre>\n<p>Compare this to prologue code for the old library v1:<\/p>\n<pre>void setup() {\r\n  cube.open(\"192.168.2.173\");  \/\/ say hello to the cube\r\n  cube.clear();                \/\/ clear the display\r\n  cube.simulate(800, 800);     \/\/ show simulator canvas\r\n}<\/pre>\n<p>Note the new IP address and, more importantly, the call to size() must now appear as the first line in setup(). Else, the OpenGL context for the canvas is created in a different thread context.<\/p>\n<p>Please respect copyrights by the authors as stated in the comments of each sketch.<\/p>\n<h3>WORKING WITH THE SOURCES<\/h3>\n<p>If you want to build the library from the latest sources, contribute bugfixes or new sketches, check out the cube&#8217;s\u00a0Github project:<\/p>\n<p><a href=\"https:\/\/github.com\/qvt\/vc\/\">VisualCube1e3\u00a0Github Project with Library Sources and all the Sketches<\/a>.<\/p>\n<p>Here you can download the Eclipse project\u00a0containing [the library&#8217;s source code and all the sketches](https:\/\/github.com\/qvt\/vc\/archive\/v2.0.0.zip) available. Experienced\u00a0Java programmers\u00a0may\u00a0prefer to write, edit and debug Processing sketches directly under the Eclipse IDE instead of the PROCESSING\u00a0IDE. If you are one of them, you can also checkout the whole Git repository into your Eclipse IDE. There are only minor differences between a Processing sketch and full Java.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Basically, there are two steps to get you going: Download PROCESSING 3.0a9 or later and extract it anywhere you want. Download the VisualCube library 2.0.0 and extract it into ~\/Documents\/Processing. You may further download some of the additional collections of sketches\u00a0listed below into ~\/Documents\/Processing. VISUALCUBE1e3 LIBRARY FOR PROCESSING Platform-neutral library for PROCESSING. VisualCube1e3 Library v2.0.0\u00a0(Mac, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":7,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":{"footnotes":""},"class_list":["post-18","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"http:\/\/visualcube.org\/1e3\/index.php?rest_route=\/wp\/v2\/pages\/18","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/visualcube.org\/1e3\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/visualcube.org\/1e3\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/visualcube.org\/1e3\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/visualcube.org\/1e3\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=18"}],"version-history":[{"count":47,"href":"http:\/\/visualcube.org\/1e3\/index.php?rest_route=\/wp\/v2\/pages\/18\/revisions"}],"predecessor-version":[{"id":223,"href":"http:\/\/visualcube.org\/1e3\/index.php?rest_route=\/wp\/v2\/pages\/18\/revisions\/223"}],"up":[{"embeddable":true,"href":"http:\/\/visualcube.org\/1e3\/index.php?rest_route=\/wp\/v2\/pages\/7"}],"wp:attachment":[{"href":"http:\/\/visualcube.org\/1e3\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=18"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}