sebleedelisle / ofxLaser

An openFrameworks addon for controlling multiple lasers.
Mozilla Public License 2.0
258 stars 32 forks source link

zonewarping load error #18

Closed GvBon closed 3 years ago

GvBon commented 4 years ago

When playing with the very nice feature of zonewarping everytime a 'vector subscript out of range error' occurs. I can repeat it by making 2 divisions on x and y. Than I start editing the zones, which works very well. When I close the app and restart it the errors takes place. (See pic attached). Something to do with SrcPoints in Warper, quad.updateHomography(). (running on Win10)

vector subscript out of range error

sebleedelisle commented 3 years ago

Hey Gijs, would you mind attaching your config files please? The ones inside the data folder. Thanks!

GvBon commented 3 years ago

Hi Seb, with these setting I get problems. regards, Gijs

On 2020-12-18 22:13, Seb Lee-Delisle wrote:

Hey Gijs, would you mind attaching your config files please? The ones inside the data folder. Thanks!

-- You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub [1], or unsubscribe [2].

--

www.GijsvanBon.nl [3] www.SKRYF.nl [4]

0031-6-14675180

Links:

[1] https://github.com/sebleedelisle/ofxLaser/issues/18#issuecomment-748322128 [2] https://github.com/notifications/unsubscribe-auth/AEBZLOWPO6Z5QWBSJRU23XLSVPAXZANCNFSM4SBT73SA [3] http://www.GijsvanBon.nl [4] http://www.SKRYF.nl { "Projector1": { "1_ARMED": "0", "Colour_calibration": { "blue_0": "0", "blue_100": "1", "blue_25": "0.26977", "blue_50": "0.502551", "blue_75": "0.725765", "green_0": "0", "green_100": "1", "green_25": "0.25", "green_50": "0.5", "green_75": "0.75", "red_0": "0", "red_100": "1", "red_25": "0.25", "red_50": "0.5", "red_75": "0.75" }, "Intensity": "1", "Mute_Zones": { "Zone1": "0" }, "Projector_settings": { "Advanced": { "Optimise_shape_draw_order": "1", "Smooth_home_position": "0", "Speed_multiplier": "1.0093", "Sync_to_Target_framerate": "0", "Target_framerate_experimental": "35" }, "Blank_points_after": "8", "Blank_points_before": "5", "Colour_change_offset": "0", "Flip_X": "1", "Flip_Y": "0", "Laser_on_while_moving": "0", "Move_Speed": "15", "On_points_after": "8", "On_points_before": "5", "Output_position_offset": "5.7, -1", "Output_rotation": "0", "Points_persecond": "30000", "calPos1": "262.756, 69.9656", "calPos1-_front_leftup": "257, 26", "calPos2": "517.24, 620.062", "calPos2-_front_leftdown": "286, 739", "calPos3-_front_rightup": "387, 23", "calPos4-_front_rightdown": "398.995, 746", "calPos5-_back_leftup": "180.499, 139.37", "calPos6-_back_leftdown": "172.787, 550.657", "calPos7-_back_rightup": "527.522, 167.646", "calPos8-_back_rigth_down": "527.522, 537.805", "calibPoint": "2", "doCalib": "0" }, "Render_profiles": { "Default": { "acceleration": "0.793231", "corner_threshold": "164.186", "dot_max_points": "100", "speed": "40" }, "Fast": { "acceleration": "3.98052", "corner_threshold": "180", "dot_max_points": "100", "speed": "40" }, "High_quality": { "acceleration": "4", "corner_threshold": "20", "dot_max_points": "100", "speed": "40" } }, "Reset_DAC": "0", "Solo_Zones": { "Zone1": "0" }, "Test_Pattern": "0", "Zone1": { "Bottom_Edge": "0", "Left_Edge": "0", "Right_Edge": "0", "Top_Edge": "0" }, "Zone1warp": { "ZoneTransform": { "edit_subdivisions": "1", "left_down": "229", "perspective": "0", "right_down": "1", "x_divisions": "4", "y_divisions": "4" } } } } { "ZoneTransform": { "edit_subdivisions": "1", "perspective": "0", "x_divisions": "4", "y_divisions": "4" }, "handles": [ [ 34.0, 8.0 ], [ 203.549560546875, 7.243072509765625 ], [ 372.0597839355469, 6.490814208984375 ], [ 539.5401000976563, 5.743133544921875 ], [ 706.0, 5.0 ], [ 32.991943359375, 196.75291442871094 ], [ 202.0924072265625, 195.4192352294922 ], [ 370.15899658203125, 194.0937042236328 ], [ 537.201171875, 192.77626037597656 ], [ 703.2282104492188, 191.46681213378906 ], [ 31.98931884765625, 384.49853515625 ], [ 200.64300537109375, 382.59423828125 ], [ 368.2682800292969, 380.7015380859375 ], [ 534.87451171875, 378.82037353515625 ], [ 700.4710083007813, 376.9505920410156 ], [ 98.99200439453125, 576.2449340820313 ], [ 263.2012939453125, 565.7760620117188 ], [ 366.3875732421875, 566.322265625 ], [ 532.5601806640625, 563.88330078125 ], [ 609.7283325195313, 614.4591064453125 ], [ 30.0, 757.0 ], [ 197.7672119140625, 753.9725952148438 ], [ 364.5168151855469, 750.963623046875 ], [ 530.258056640625, 747.9727783203125 ], [ 695.0, 745.0 ] ] } { "points": [ [ -2.0, 960.0 ], [ 863.0, 5.0 ] ] } { "Laser": { "1_ARMED": "0", "Custom": { "Cset": "0.40167", "afstandEenTwee": "2.41", "blockWidth": "4", "color": "255, 255, 255, 255", "doDrone": "1", "doLense": "0", "doWrite": "0", "gforce": "9.81", "laserDistance": "500", "laserSize": "400", "numLaserLines": "4", "preHit": "0", "size": "0.01", "speed": "0.01", "startdelay": "0", "startsnelheid": "0.0816325", "valRatio": "0.469388", "valveNum": "4", "volume": "0.290352" }, "Edit_Projector": "1", "Interface": { "Laser_mask_shapes": "0", "Show_bitmap_mask": "0", "Show_path_previews": "1", "Show_preview": "1", "Show_zones": "0", "Use_bitmap_mask": "0" }, "Master_Intensity": "1", "Test_Pattern": "0", "calibPoint": "0", "valRatio": "1" } }

sebleedelisle commented 3 years ago

Should be fixed in 677f2723b0a9324bfc58d527666b5ca65623241a - let me know how you get along!

GvBon commented 3 years ago

Yes, works perfect! Thanks a bunch Seb! happy with that. Some needed happy news tonight. Amongst the world collapsing..

On 2021-01-06 18:58, Seb Lee-Delisle wrote:

Closed #18 [1].

-- You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub [2], or unsubscribe [3].

--

www.GijsvanBon.nl [4] www.SKRYF.nl [5]

0031-6-14675180

Links:

[1] https://github.com/sebleedelisle/ofxLaser/issues/18 [2] https://github.com/sebleedelisle/ofxLaser/issues/18#event-4176374234 [3] https://github.com/notifications/unsubscribe-auth/AEBZLOTD27EYGB3K2BT7AJ3SYSQDNANCNFSM4SBT73SA [4] http://www.GijsvanBon.nl [5] http://www.SKRYF.nl