P3D failing in Python Mode on Mac

I have been unable to get the P3D renderer to work as expected while trying to run the Directional example (Examples/Lights/Directional) in Python Mode on my Mac (12.6).

The example does work in Java Mode on my Mac, and it also works in both Java Mode and Python Mode on a friend’s Windows machine.

It does not work on my Mac in Python Mode though after having tried Processing versions 4.1.2, 4.1.1, and 3.5.4.

I’ve trimmed the examples down to these two code samples:

Java Mode:

void setup() {
  size(500, 500, P3D);
}

void draw() {
  background(0);  
}

Python Mode:

def setup():
    size(500, 500, P3D)
    
def draw():
    background(0)

The Java code correctly brings up a window of the correct size and background color.

The Python code does not display anything. I’ve tried specifying frameRate(), but still nothing is displayed. There is nothing printed to the console.

This is an Intel Mac with AMD Radeon Pro 5600M 8 GB and Intel UHD Graphics 630 1536 M listed under Graphics.

2 Likes

Welcome @jonsantos

Use Processing 3.5.4 for Python Mode.

Does it help (with the 3D issue) if you add these lines to the very top of your script?

from java.lang import System
System.setProperty("jogl.disable.openglcore", "false")
1 Like

I am seeing this exact same behavior. Posted it to GitHub here:

Anyone have any idea what could be wrong?

Thanks.

Unfortunately, I don’t see any difference in behavior adding those lines to the very top of the script:

from java.lang import System
System.setProperty("jogl.disable.openglcore", "false")
    
def setup():
    size(500, 500, P3D)
    
def draw():
    background(0)