FAQ
Cover
\
Build
\
Source
\
Bugs
\
Reference
\
Libraries
\
Tools
The bugs database has moved
here
.
Bug 605 : printMatrix() function keeps the window from rendering
Last modified: 2007-08-28 19:24
P
roject:
processing
trash
Version:
unspecified
Co
m
ponent:
android
book
core
libraries
pde
reference
tools
web
Status:
RESOLVED
Resolution:
INVALID -
Pr
i
ority:
P2
Severity:
normal
Platform
All
O
S:
All
Windows
Mac OS
Linux
Other
Reporter:
seh4b
Assigned To:
fry
Attachment
Type
Created
Size
Actions
.pde that works
application/octet-stream
2007-07-31 16:05
2.61 KB
this is the one with createGraphics() that has issues
application/octet-stream
2007-07-31 16:06
2.85 KB
Description
: Opened: 2007-07-31 14:33
I'm running into strange problems using PGraphics createImage() funciton to
print into an off screen buffer - one thing is that anytime I use
printMatrix nothing works - another thing is that using pg.pushMatrix() or
pg.popMatrix() off screen does not always update the buffer...
any suggestions? The identical sketch works fine withouth using PGrpahics..
Additional Comment
#1 From fry 2007-07-31 15:05
how about some code?
Additional Comment
#2 From seh4b 2007-07-31 16:05
edit
]
.pde that works
Additional Comment
#3 From seh4b 2007-07-31 16:06
edit
]
this is the one with createGraphics() that has issues
Additional Comment
#4 From seh4b 2007-07-31 16:07
Here is some code - these two files are identical, except for the added
code to generate lines in a buffer and then render them on key press...
Note the sketch takes 30 seconds or so to build up lines and they are
subtle.. thats the intention, the reason for outputing to a buffer is that
I can get very large images going.
If you run the second file, uncomment the printMatrix() in both sketches
and compare the values, you will see the one outputting to a buffer just
keeps increasing, as if popMatrix stopped working at some point...
It's obscure, but I've been playing with it for 4 hours and I think I give
up... I've been able to create windows as large as 3000 on a mac, but need
a large res rendering of this if I'm going to print it at 360 dpi..
Additional Comment
#5 From fry 2007-08-28 19:24
i think all you're seeing is that printMatrix() is gonna bog things down,
especially in a recursive function like that, where branch() is getting
called hundreds of times on each trip through draw().