hello guys...i've a question. you can access the vertex of an obj file ?
i try with this...but it doesn't work.
import peasy.*;
PShape shp;
PeasyCam cam;
void setup() {
size(1000, 1000, P3D);
shp=loadShape("face.obj");
println(shp.getVertexCount());
cam = new PeasyCam(this, 100);
cam.setMinimumDistance(50);
cam.setMaximumDistance(500);
}
void draw() {
lights();
directionalLight(255, 150, 200, -1, 0, 0);
background(0);
shape(shp);
}
the result of println(shp.getVertexCount()) is 0. thank you!! :)