lights(); not working on Pi2

edited September 2016 in Raspberry PI

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?

Tagged:

Answers

Sign In or Register to comment.