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
rors
January 31, 2023, 5:55am
4
I am seeing this exact same behavior. Posted it to GitHub here:
opened 05:50AM - 31 Jan 23 UTC
Running Processing 3.5.4 on MacOS 13.1 Ventura, Intel. Most sketches seem to run… fine, but when trying to run in ```P3D``` mode, the sketch window does open and no errors are displayed in the console. I do see the circular Processing icon in the launchpad however and need to force quit it to close it.
```python
def setup():
size(800,800,P3D)
def draw():
background(255)
```
Java Control Panel seems to indicate that I'm running Java 1.8.0_361 (```/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java```).
Adding these lines to the top of the script does not modify the behavior in any discernible way:
```python
from java.lang import System
System.setProperty("jogl.disable.openglcore", "false")
```
Thanks.
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)