Quantcast
Channel: Android Mode - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 941

display .obj with materials in Android mode

$
0
0

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);
}

Viewing all articles
Browse latest Browse all 941

Trending Articles