display .obj with materials in Android mode

uipuip
edited October 2016 in Android Mode

Hi,

I´m trying to display and .obj geometry with materials (.mtl) in Android mode. In Java mode it works, but in Android mode it seems like the .mtl file is not being read and my geometry shows up all gray.

i have both .obj and .mtl in the data folder of the sketch.

PShape s;
void setup() {
  size(720, 1280, P3D);
  s =loadShape("myObject.obj");
}

void draw() {
  background(230);
  lights();
  scale(40);
  shape(s, 10, 10);
}
Tagged:
Sign In or Register to comment.