2020年6月20日 星期六

week18gundam

PShape gundam;
void setup(){
  size(500,500,P3D);
  gundam = loadShape("Gundam.obj");
}
void draw(){
  background(128);清背景,才不會有殘影
  translate(250,400,0);
  scale(10,-10,10);放大10倍,但y變負的
  rotateY(radians(frameCount));先對y軸旋轉
  shape(gundam);
}

沒有留言:

張貼留言