We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I'm having a problem with the lights() command in processing 3.2.1 ARMh6 running on an original rasberry pi.
I have a very simple sketch that load a 3d .obj object as a Pshape, rotates and translates it to the correct position and then renders it. This works perfectly on a windows processing 3.2.1 install (64bit), but unfortunately on my RPi the object renders flat regardless of any light specification (lights() ambienLight(), spotLight() etc).
I don't have the full sketch here at the moment, but it looks something like:
Pshape model;
void setup() {
fullScreen(P3D);
model = loadShape(filename);
model.rotateX(radians(180));
model.translate(100,-100,120);
model.fillShape(255,255,255);
}
void draw() {
lights();
smooth();
shape(model, 0, 0);
}
Is this a known issue or do I need to submit a bug report?
Answers
It's a know limitation at this point, see https://github.com/processing/processing/wiki/Raspberry-Pi#graphics
I don't think that's quite right issue.
That article says that the openGL implementation limits P3D on the RPi to just 2 lights. But the call to lights() (if I understand correctly) puts in exactly two lights - one directional and one ambient, so it should be fine. I'm getting no lights at all.
I'm not getting any out of memory error or offset problems.
@nickschurch
I wrote that text. It's a known issue, unfortunately.
Ahhh, OK, I see. Well that sucks a bit. Does it dot he same for the Pi2, Pi3 & PiZero?
Yes, it's something related to the GLES2 graphics driver. I hope to revisit this issue at some point, but we had the flat look from right when we got 3D working.