tiefrot revisited

A quick update of tiefRot after dis­cov­er­ing the won­der­ful hint(ENABLE_OPENGL_4X_SMOOTH). Arr, trea­sures lie hid­den in many a source code.
The applet and code can be found here. Click here for a vari­a­tion. Press space­bar to save the image to the user gallery. Btw, all the seg­ments in the piece have the same sur­face area.

A word of cau­tion, I’ve been hav­ing some prob­lems with the browser freez­ing when quickly reload­ing or switch­ing between applets, espe­cially if using OpenGL. My hunch is that the image buffer doesn’t get garbage col­lected but I’m not tech­ni­cal enough to do any­thing about it. So if you encounter the same thing, let me know…For now, it’s prob­a­bly eas­ier to down­load the code and play around with it in Pro­cess­ing, ver­sion 135 BETA. Because of secu­rity risks, I’m not releas­ing the “frame­Poster” code, the class respon­si­ble for sav­ing the images to the user gallery. No worry, this resource got me started (and finished).

Update: writ­ing the above got my think­ing mus­cle work­ing. I didn’t have the prob­lem before. So what changed? Dif­fer­ent browser and Java ver­sions turned out to be a red her­ring. The only other change was that I started to reor­ga­nize my applets reusing core Pro­cess­ing and OpenGL .jar archives in a sin­gle folder. Surely, this shouldn’t make any dif­fer­ence. Still, when I put every applet in a sep­a­rate folder includ­ing a copy of each archive, the prob­lem goes away. (Yay!). When switch­ing between applets the mem­ory used by the browser is now sta­ble instead of increas­ing continuously.

tiefrot1
tiefrot2

Leave a Reply