Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

get vertex from an obj file.

$
0
0

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!! :)


Viewing all articles
Browse latest Browse all 2896

Trending Articles