【发布时间】:2016-08-14 09:02:11
【问题描述】:
我正在尝试围绕 Maya 中的轴旋转来自 Maya 的 OBJ。它适用于球体,但适用于我自己的对象 - 它遵循轨道。也许我不明白形状(参数)。
PShape s;
float theta = 0;
void setup() {
size(500, 500, P3D);
shapeMode(CENTER);
s = loadShape("obj2.obj");
}
void draw() {
background(32);
lights();
float z = 0;
pushMatrix();
translate(0,height*1/4);
rotateY(theta);
theta += .01;
scale(4.0);
box(100);
//shape(s, 0,0);
popMatrix();
}
这里是对象:https://drive.google.com/open?id=0B3ddDpsAjuqPYUR6RHd0OFBfVU0
【问题讨论】:
标签: processing