Even this basic code, cut and pasted from the P3D tutorial, won’t run. Any ideas?
float x,y,z;
void setup() {
size(200,200,P3D);
x = width/2;
y = height/2;
z = 0;
}
void draw() {
translate(x,y,z);
rectMode(CENTER);
rect(0,0,100,100);
z++; // The rectangle moves forward as z increments.
}
Here is the error I get:
0 AppKit 0x00007fff22ccf47f -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 352
1 AppKit 0x00007fff22cba121 -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1375
2 AppKit 0x00007fff22cb9bbb -[NSWindow initWithContentRect:styleMask:backing:defer:] + 42
3 libnativewindow_macosx.jnilib 0x00000001351be3fe Java_jogamp_nativewindow_macosx_OSXUtil_CreateNSWindow0 + 398
4 ??? 0x0000000118020a88 0x0 + 4697754248
)
jafal
April 30, 2021, 4:21pm
2
try it now
float x,y,z;
void setup() {
size(800,700,P3D);
x = width/2;
y = height/2;
z = 0;
}
void draw() {
translate(x,y,z);
rectMode(CENTER);
rect(0,0,100,100);
z++; // The rectangle moves forward as z increments.
}
jafal
April 30, 2021, 4:25pm
4
chick your vga card conflagrations
th75
April 30, 2021, 5:26pm
5
float x,y,z;
void setup() {
size(200,200,P3D);
x = width/2;
y = height/2;
z = 0;
frameRate(12);
}
void draw() {
translate(x,y,z);
rectMode(CENTER);
rect(0,0,100,100);
z++; // The rectangle moves forward as z increments.
}
here it works: you need frameRate(); during setup() on big sur… ( frameRate(1200); if you don’t whant framerate limitations)
1 Like
beautiful, thanks!
it runs, but do you know why i’m getting this error code?
0 AppKit 0x00007fff22d52891 -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 352
1 AppKit 0x00007fff22d3d44a -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1296
2 AppKit 0x00007fff22d3cf33 -[NSWindow initWithContentRect:styleMask:backing:defer:] + 42
3 libnativewindow_macosx.jnilib 0x000000012991d3fe Java_jogamp_nativewindow_macosx_OSXUtil_CreateNSWindow0 + 398
4 ??? 0x000000010f820a88 0x0 + 4555147912
)
th75
April 30, 2021, 7:42pm
7
no, i don’t know and i’ve same stuff here … but sketch run as usual.
another strange one, if you import a library, i often have, “No library found for xxxx” but sketch run as usual and library works… i think this one started on catalina too
1 Like
cool, thanks for the response. as long as it works!
jafal
May 1, 2021, 12:47am
9
i am sorry i think you are using windows
No problem! I should have been more specific – and not misspelled ‘Big Sur’ in the title
Thanks for your responses.
1 Like
you may want to look at this thread.
I have encountered an issue when trying to execute sketches that function and export correctly on an older MacBook Pro when these sketches are attempted to be run on a new MacBook Pro using a new M1 processor. I have tried to use two different versions of Processing. 1) the stable 3.5.4 release (17 Jan 2021) and 2) pre-release 4.0 alpha 3 (17 Jan 2021). Both appear to have similar issues.
The sketches fail - i.e. they only open a blank window and the following is displayed in the console:
0 …
Thank you for the frameRate solution. I was going crazy!