P3D not working on Big Siur

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

)

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.
}

its run normal …

chick your vga card conflagrations

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

)

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!

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 :slight_smile:

Thanks for your responses.

1 Like

you may want to look at this thread.

Thank you for the frameRate solution. I was going crazy!