{ "patcher" : { "fileversion" : 1, "appversion" : { "major" : 6, "minor" : 0, "revision" : 8 } , "rect" : [ 447.0, 94.0, 828.0, 558.0 ], "bglocked" : 0, "openinpresentation" : 0, "default_fontsize" : 11.0, "default_fontface" : 0, "default_fontname" : "Courier", "gridonopen" : 0, "gridsize" : [ 10.0, 10.0 ], "gridsnaponopen" : 0, "statusbarvisible" : 2, "toolbarvisible" : 1, "boxanimatetime" : 200, "imprint" : 0, "enablehscroll" : 1, "enablevscroll" : 1, "devicewidth" : 0.0, "description" : "", "digest" : "", "tags" : "", "boxes" : [ { "box" : { "fontname" : "Courier", "fontsize" : 11.0, "frgb" : 0.0, "id" : "obj-10", "linecount" : 5, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 681.0, 221.0, 114.0, 61.0 ], "text" : "jit.gl.node construct hierarchical renderings groups" } } , { "box" : { "bgcolor" : [ 1.0, 0.760784, 0.364706, 1.0 ], "fontface" : 1, "fontname" : "Arial", "fontsize" : 14.0, "frgb" : 0.0, "id" : "obj-21", "linecount" : 3, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 186.5, 468.0, 477.5, 54.0 ], "text" : "My question :\nIs there a way to get the right sphere's coordinates for jit.gl.sketch using the mouse ?" } } , { "box" : { "bgcolor" : [ 0.865363, 1.0, 0.0, 1.0 ], "fontface" : 1, "fontname" : "Arial", "fontsize" : 14.0, "frgb" : 0.0, "id" : "obj-20", "linecount" : 4, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 271.0, 385.0, 339.0, 70.0 ], "text" : "4.\nplace mouse cursor on the sphere again.\nnow the sphere's coordinates are still OK for jit.gl.render, but they are wrong for jit.gl.sketch" } } , { "box" : { "bgcolor" : [ 0.865363, 1.0, 0.0, 1.0 ], "fontface" : 1, "fontname" : "Arial", "fontsize" : 14.0, "frgb" : 0.0, "id" : "obj-19", "linecount" : 3, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 470.5, 267.0, 206.0, 54.0 ], "text" : "3.\nmove a corner by clicking on the message below :" } } , { "box" : { "bgcolor" : [ 0.865363, 1.0, 0.0, 1.0 ], "fontface" : 1, "fontname" : "Arial", "fontsize" : 14.0, "frgb" : 0.0, "id" : "obj-13", "linecount" : 5, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 212.0, 232.0, 206.0, 86.0 ], "text" : "2.\nplace mouse cursor on the sphere :\nsphere's coordinates are OK\n(0.5 0.5 0.) " } } , { "box" : { "bgcolor" : [ 0.865363, 1.0, 0.0, 1.0 ], "fontname" : "Courier", "fontsize" : 14.0, "id" : "obj-11", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 470.5, 327.0, 171.0, 18.0 ], "text" : "upper_right 0.7 0.2" } } , { "box" : { "bgcolor" : [ 0.866667, 1.0, 0.0, 0.0 ], "fontface" : 1, "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-1", "linecount" : 3, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 599.0, 145.0, 183.0, 47.0 ], "text" : "the sphere is 'encapsulated' into cornerpin thanks to jit.gl.node" } } , { "box" : { "bgcolor" : [ 0.865363, 1.0, 0.0, 1.0 ], "fontface" : 1, "fontname" : "Arial", "fontsize" : 14.0, "frgb" : 0.0, "id" : "obj-30", "linecount" : 3, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 459.0, 20.0, 151.0, 54.0 ], "text" : "1.\na green sphere is drawn at 0.5 0.5 0." } } , { "box" : { "fontname" : "Courier", "fontsize" : 11.0, "id" : "obj-29", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], "patcher" : { "fileversion" : 1, "appversion" : { "major" : 6, "minor" : 0, "revision" : 8 } , "rect" : [ 0.0, 0.0, 640.0, 480.0 ], "bglocked" : 0, "openinpresentation" : 0, "default_fontsize" : 11.0, "default_fontface" : 0, "default_fontname" : "Courier", "gridonopen" : 0, "gridsize" : [ 10.0, 10.0 ], "gridsnaponopen" : 0, "statusbarvisible" : 2, "toolbarvisible" : 1, "boxanimatetime" : 200, "imprint" : 0, "enablehscroll" : 1, "enablevscroll" : 1, "devicewidth" : 0.0, "description" : "", "digest" : "", "tags" : "", "boxes" : [ { "box" : { "fontname" : "Courier", "fontsize" : 11.0, "id" : "obj-2", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 2, "outlettype" : [ "", "" ], "patching_rect" : [ 50.0, 100.0, 83.0, 17.0 ], "text" : "route mouse" } } , { "box" : { "fontname" : "Courier", "fontsize" : 11.0, "id" : "obj-11", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 2, "outlettype" : [ "", "" ], "patching_rect" : [ 141.0, 127.0, 77.0, 17.0 ], "text" : "zl slice 2" } } , { "box" : { "fontname" : "Courier", "fontsize" : 11.0, "id" : "obj-1", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 2, "outlettype" : [ "", "" ], "patching_rect" : [ 141.0, 100.0, 110.0, 17.0 ], "text" : "route mouseidle" } } , { "box" : { "comment" : "", "id" : "obj-27", "maxclass" : "inlet", "numinlets" : 0, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 90.5, 40.0, 25.0, 25.0 ] } } , { "box" : { "comment" : "", "id" : "obj-28", "maxclass" : "outlet", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 141.0, 204.0, 25.0, 25.0 ] } } ], "lines" : [ { "patchline" : { "destination" : [ "obj-11", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-1", 0 ] } } , { "patchline" : { "destination" : [ "obj-28", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-11", 0 ] } } , { "patchline" : { "destination" : [ "obj-11", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-2", 0 ] } } , { "patchline" : { "destination" : [ "obj-1", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-27", 0 ] } } , { "patchline" : { "destination" : [ "obj-2", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-27", 0 ] } } ] } , "patching_rect" : [ 138.0, 136.0, 57.0, 17.0 ], "saved_object_attributes" : { "default_fontface" : 0, "default_fontname" : "Courier", "default_fontsize" : 11.0, "description" : "", "digest" : "", "fontface" : 0, "fontname" : "Courier", "fontsize" : 11.0, "globalpatchername" : "", "tags" : "" } , "text" : "p mouse" } } , { "box" : { "fontname" : "Courier", "fontsize" : 11.0, "id" : "obj-26", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "int", "bang" ], "patching_rect" : [ 12.0, 52.0, 47.0, 17.0 ], "text" : "t 1 b" } } , { "box" : { "fontname" : "Courier", "fontsize" : 11.0, "id" : "obj-24", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "bang" ], "patching_rect" : [ 12.0, 20.0, 63.0, 17.0 ], "text" : "loadbang" } } , { "box" : { "fontname" : "Courier", "fontsize" : 11.0, "id" : "obj-23", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 448.0, 85.0, 77.0, 15.0 ], "text" : "0.5 0.5 0." } } , { "box" : { "fontname" : "Courier", "fontsize" : 11.0, "id" : "obj-16", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 448.0, 123.0, 367.0, 15.0 ], "text" : "reset, color 0. 1. 0. 1., moveto $1 $2 $3, sphere 0.05" } } , { "box" : { "fontname" : "Courier", "fontsize" : 11.0, "id" : "obj-18", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 2, "outlettype" : [ "", "" ], "patching_rect" : [ 24.0, 232.0, 136.0, 17.0 ], "text" : "route screentoworld" } } , { "box" : { "fontname" : "Courier", "fontsize" : 11.0, "id" : "obj-17", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 24.0, 267.0, 181.0, 15.0 ], "text" : "0.633333 0.991667 0." } } , { "box" : { "fontname" : "Courier", "fontsize" : 11.0, "id" : "obj-15", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 138.0, 165.0, 149.0, 17.0 ], "text" : "prepend screentoworld" } } , { "box" : { "color" : [ 0.627245, 0.766602, 1.0, 1.0 ], "fontname" : "Courier", "fontsize" : 11.0, "id" : "obj-14", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 3, "outlettype" : [ "jit_gl_texture", "", "" ], "patching_rect" : [ 448.0, 193.0, 347.0, 17.0 ], "text" : "jit.gl.node test1 @name sketchy @capture 1 @ortho 2" } } , { "box" : { "fontname" : "Courier", "fontsize" : 11.0, "id" : "obj-8", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "bang", "erase" ], "patching_rect" : [ 12.0, 148.0, 74.0, 17.0 ], "text" : "t b erase" } } , { "box" : { "id" : "obj-7", "maxclass" : "toggle", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 12.0, 87.0, 20.0, 20.0 ] } } , { "box" : { "fontname" : "Courier", "fontsize" : 11.0, "id" : "obj-9", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "bang" ], "patching_rect" : [ 12.0, 123.0, 73.0, 17.0 ], "text" : "qmetro 33" } } , { "box" : { "fontname" : "Courier", "fontsize" : 11.0, "id" : "obj-6", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "bang", "" ], "patching_rect" : [ 60.0, 96.0, 255.0, 17.0 ], "text" : "jit.window test1 @idlemouse 1 @grow 0" } } , { "box" : { "fontname" : "Courier", "fontsize" : 11.0, "id" : "obj-5", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "bang", "" ], "patching_rect" : [ 12.0, 198.0, 321.0, 17.0 ], "text" : "jit.gl.render test1 @ortho 2 @color 0. 0. 0. 1." } } , { "box" : { "color" : [ 0.627245, 0.766602, 1.0, 1.0 ], "fontname" : "Courier", "fontsize" : 11.0, "id" : "obj-4", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "", "" ], "patching_rect" : [ 448.0, 152.0, 149.0, 17.0 ], "text" : "jit.gl.sketch sketchy" } } , { "box" : { "color" : [ 0.627245, 0.766602, 1.0, 1.0 ], "fontname" : "Courier", "fontsize" : 11.0, "id" : "obj-3", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "", "" ], "patching_rect" : [ 448.0, 358.0, 334.0, 17.0 ], "text" : "jit.gl.cornerpin test1 @layer 1 @corner_radius 12" } } ], "lines" : [ { "patchline" : { "destination" : [ "obj-3", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-11", 0 ] } } , { "patchline" : { "destination" : [ "obj-3", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-14", 0 ] } } , { "patchline" : { "destination" : [ "obj-5", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 147.5, 189.5, 21.5, 189.5 ], "source" : [ "obj-15", 0 ] } } , { "patchline" : { "destination" : [ "obj-4", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-16", 0 ] } } , { "patchline" : { "destination" : [ "obj-17", 1 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 33.5, 257.5, 195.5, 257.5 ], "source" : [ "obj-18", 0 ] } } , { "patchline" : { "destination" : [ "obj-16", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-23", 0 ] } } , { "patchline" : { "destination" : [ "obj-26", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-24", 0 ] } } , { "patchline" : { "destination" : [ "obj-23", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 49.5, 73.5, 457.5, 73.5 ], "source" : [ "obj-26", 1 ] } } , { "patchline" : { "destination" : [ "obj-7", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 21.5, 71.0, 21.5, 71.0 ], "source" : [ "obj-26", 0 ] } } , { "patchline" : { "destination" : [ "obj-15", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-29", 0 ] } } , { "patchline" : { "destination" : [ "obj-18", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 323.5, 223.0, 33.5, 223.0 ], "source" : [ "obj-5", 1 ] } } , { "patchline" : { "destination" : [ "obj-29", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 305.5, 124.0, 147.5, 124.0 ], "source" : [ "obj-6", 1 ] } } , { "patchline" : { "destination" : [ "obj-9", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-7", 0 ] } } , { "patchline" : { "destination" : [ "obj-5", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 76.5, 181.0, 21.5, 181.0 ], "source" : [ "obj-8", 1 ] } } , { "patchline" : { "destination" : [ "obj-5", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-8", 0 ] } } , { "patchline" : { "destination" : [ "obj-8", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-9", 0 ] } } ], "dependency_cache" : [ ] } }