Hi ben,
before anything, great commenting and documenting of the PGraphics3 code!!!
and after that, I had a small question about resizing the applet. It says in the code that the projection matrix goes back to default.
Quote: /**
* Calls perspective() with Processing's standard coordinate projection.
* <P>
* Projection functions:
* <UL>
* <LI>frustrum()
* <LI>ortho()
* <LI>perspective()
* </UL>
* Each of these three functions completely replaces the projection
* matrix with a new one. They can be called inside setup(), and their
* effects will be felt inside draw(). At the top of draw(), the projection
* matrix is not reset. Therefore the last projection function to be
* called always dominates. On resize, the default projection is always
* established, which has perspective.
* <P>
* This behavior is pretty much familiar from OpenGL.
* <P>
*/
(these questions aren't based on examples but on thoughts after looking at the code and doc)
-why we put it back to default projection?
-could we put back the last projection matrix with some scaling of axes and updating of aspect ratio, in order to get a resized version of what we were seeing?
-is there a way handle the resize event (resizeEvent() or something like that) to apply some wanted changes only at that moment (instead of applying them on each draw() dependning on the width and height)?
thanx a lot!!