Closed nocksock closed 11 years ago
Try putting your constants inside your class, better still change the code to be a "bare" sketch (delete line ~four and the last end) 'cos that's what I'm making default for next release (Jruby-1.7.2, processing-2.0). Actually I just tried such a modified sketch with the development version, and may'be including constants is not such a good idea. However I get a new issue segfault stroke path too long, some triangles wont get drawn (processing-2.0 beta version) so perhaps your sketch is a bit ambitious for the watch mode. I've only really used "watch" mode for very simple sketches, so I expect there are some limitations....
Ambitious? :) It was meant to be simple - a simple test to use opengl in ruby-processing. Also I noticed that it wont start if I use the app that's generated by rp5 app 3dtest.rb
.
Whats wrong with run?
run
takes a few more seconds to start - I was hoping that I could fasten my workflow using rp5 watch
not having to switch the console and type !!
.
Yeah it would be nice, but in practice I don't think ruby-processing is up to it (apart from simple sketches). Interestingly fjennet is working on a live coding for regular processing. Regarding exported app not working I think that might have been reported before could be a path thing, I'm a 100% linux user, and working with the development version so it is not easy for me to check. If you just want to experiment by changing variable values you should try the control panel (it is very easy to setup).
Running
rp5 watch 3dtest.rb
starts the sketch but when reloading it does not start again and I get warnings for constants.I'm just starting out with processing-ruby, so might've done something wrong.
The sketch is fairly simple: