On Tue, Apr 29, 2014 at 3:06 PM, Brian Schott <[email protected]>wrote:
> Was I correct that your warning was meant to dissuade me from any practical > way of sending multiple (fake) messages directly between j and javascript? > Yes and no. Yes, you can do that. But if you are going to do that, the first step is going to have to be setting up your page to always have a pending request against the server. That has all sorts of implications, and is worth doing as a separate project. > @gman said "There's lots of ways to make it work but it would require a > MASSIVE RE-WRITE of the code or else it would require something that > records the gl calls and plays them back later." That sounds very daunting > to me. > > So, it is not very doable to me. > There's other ways of doing that. All you really need is the data, you can "play back the gl calls" by running the same code against that data that you originally ran. This will eventually bog down (when you get a lot of data - megabytes), but for the work you propose I do not see any problems with it. And once you have that there also are more efficient ways of doing this: You can have multiple webgl programs in the browser, and you can use the result of one program as data for another program (as an image). So another approach will be that you can have a (not displayed) result which captures your ongoing changes and then you can decorate that with your turtles for display purposes. Any approach is going to involve some work, of course. Thanks, -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
