# Problem with P3D on Mac OS 11.2.1

**URL:** https://discourse.processing.org/t/problem-with-p3d-on-mac-os-11-2-1/28248
**Category:** Processing
**Created:** [March 4, 2021, 9:00am UTC](https://discourse.processing.org/t/problem-with-p3d-on-mac-os-11-2-1/28248 "2021-03-04T09:00:44Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![paulstgeorge](https://avatars.discourse-cdn.com/v4/letter/p/53a042/32.png) [@paulstgeorge](https://discourse.processing.org/u/paulstgeorge)
#### Post date: [March 4, 2021, 9:00am UTC](https://discourse.processing.org/t/problem-with-p3d-on-mac-os-11-2-1/28248/1 "2021-03-04T09:00:44Z")

</div>

If I run this:

```auto
void setup() {
  size(100, 100, P3D);
}

```

I get an error:

```auto

	0 AppKit 0x00007fff22e8147f -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 352
	1 AppKit 0x00007fff22e6c121 -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1375
	2 AppKit 0x00007fff22e6bbbb -[NSWindow initWithContentRect:styleMask:backing:defer:] + 42
	3 libnativewindow_macosx.jnilib 0x0000000133b3d3fe Java_jogamp_nativewindow_macosx_OSXUtil_CreateNSWindow0 + 398
	4 ??? 0x0000000119632a88 0x0 + 4720896648
)

```

I think this question has been answered before but I cannot find an answer. I assume I have to do something clever with Java but I do not want to start replacing \*.jars without fully understanding what I am doing.

---

<div class="post-metadata">

### Author: ![Aro](https://avatars.discourse-cdn.com/v4/letter/a/b3f665/32.png) [@Aro](https://discourse.processing.org/u/Aro)
#### Post date: [March 4, 2021, 2:40pm UTC](https://discourse.processing.org/t/problem-with-p3d-on-mac-os-11-2-1/28248/2 "2021-03-04T14:40:50Z")

</div>

Did you try FX3D instead ?

---

<div class="post-metadata">

### Author: ![paulstgeorge](https://avatars.discourse-cdn.com/v4/letter/p/53a042/32.png) [@paulstgeorge](https://discourse.processing.org/u/paulstgeorge)
#### Post date: [March 4, 2021, 4:57pm UTC](https://discourse.processing.org/t/problem-with-p3d-on-mac-os-11-2-1/28248/3 "2021-03-04T16:57:50Z")

</div>

Hi, No I did not try to launch P3D from inside a Java application. Is that what you mean? There would be no point as the rest of the sketch is in Processing. I have only shared the one line of code that is giving the problem.

---

<div class="post-metadata">

### Author: ![Aro](https://avatars.discourse-cdn.com/v4/letter/a/b3f665/32.png) [@Aro](https://discourse.processing.org/u/Aro)
#### Post date: [March 4, 2021, 5:37pm UTC](https://discourse.processing.org/t/problem-with-p3d-on-mac-os-11-2-1/28248/4 "2021-03-04T17:37:15Z")

</div>

No I meant tried something like `size(100, 100, FX3D);`

---

<div class="post-metadata">

### Author: ![paulstgeorge](https://avatars.discourse-cdn.com/v4/letter/p/53a042/32.png) [@paulstgeorge](https://discourse.processing.org/u/paulstgeorge)
#### Post date: [March 4, 2021, 5:56pm UTC](https://discourse.processing.org/t/problem-with-p3d-on-mac-os-11-2-1/28248/5 "2021-03-04T17:56:21Z")

</div>

Ah, now I have tried:

```auto
void setup() {
  size(100, 100, FX3D);
}

```

“The variable “FX3D” does not exist”. Do I need to import a Library to use FX3D?

---

<div class="post-metadata">

### Author: ![Aro](https://avatars.discourse-cdn.com/v4/letter/a/b3f665/32.png) [@Aro](https://discourse.processing.org/u/Aro)
#### Post date: [March 4, 2021, 6:26pm UTC](https://discourse.processing.org/t/problem-with-p3d-on-mac-os-11-2-1/28248/6 "2021-03-04T18:26:21Z")

</div>

Ah my bad, there doesn’t seem to be any FX3D implementation in Processing yet. However you could try adding `frameRate();` while using `size(100, 100, P3D);`. I remember this solving my issues with it (Also, it is mentioned [here](https://github.com/processing/processing/issues/6121)). Tell me how it goes

---

<div class="post-metadata">

### Author: ![paulstgeorge](https://avatars.discourse-cdn.com/v4/letter/p/53a042/32.png) [@paulstgeorge](https://discourse.processing.org/u/paulstgeorge)
#### Post date: [March 4, 2021, 7:18pm UTC](https://discourse.processing.org/t/problem-with-p3d-on-mac-os-11-2-1/28248/7 "2021-03-04T19:18:51Z")

</div>

Thanks! Yes, this works:

```auto
void setup() {
  frameRate(60);
  size(100, 100, P3D);
}

```

I still get the same error report but the sketch works. We can limp along like that until Processing 4.

---

<div class="post-metadata">

### Author: ![jafal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jafal/32/19112_2.png) [@jafal](https://discourse.processing.org/u/jafal)
#### Post date: [March 4, 2021, 9:55pm UTC](https://discourse.processing.org/t/problem-with-p3d-on-mac-os-11-2-1/28248/8 "2021-03-04T21:55:36Z")

</div>

chick if your vga card support 3d or not

---

<div class="post-metadata">

### Author: ![paulstgeorge](https://avatars.discourse-cdn.com/v4/letter/p/53a042/32.png) [@paulstgeorge](https://discourse.processing.org/u/paulstgeorge)
#### Post date: [March 5, 2021, 5:30am UTC](https://discourse.processing.org/t/problem-with-p3d-on-mac-os-11-2-1/28248/9 "2021-03-05T05:30:52Z")

</div>

Yup  
AMD Radeon Pro 5300M 4 GB  
[https://www.amd.com/en/graphics/radeon-apple-5000m-series](https://www.amd.com/en/graphics/radeon-apple-5000m-series)

---

<div class="post-metadata">

### Author: ![jafal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jafal/32/19112_2.png) [@jafal](https://discourse.processing.org/u/jafal)
#### Post date: [March 5, 2021, 6:18am UTC](https://discourse.processing.org/t/problem-with-p3d-on-mac-os-11-2-1/28248/10 "2021-03-05T06:18:22Z")

</div>

chick the driver then
