2010年7月30日 星期五

CURVES_Monster


用Processing試做3D物件
使用Sin, Cos所形成的線去做Surface
主要運用
beginShape();
vertex();
bezierVertex();
endShape();
 功能去製作面
先試做簡單的單元原件如上圖

Using Processing to draw 3D objects.
Simply using Sin, Cos to get the surface.
We use the function of
beginShape();
vertex();
bezierVertex();
endShape();
to draw the Surfaces.
The picture above is the basic element.

然後利用此原件改變其參數
或Sin, Cos之順序
並加以旋轉
所得之圖形
Then we change the parameters or
the proceedure of the Sin, Cos
and rotated the element by
X or Y or Z Axis,
or both, or all of the Axis
to get the Object


rotate X

rotate Y


rotate Y

rotate whatever
再用pushMatrix(); popMatrix();
去改變旋轉軸心得到圖形

Then using the pushMatrix();, popMatrix();
to change the Axis of the rotation to get the graphic.





沒有留言:

張貼留言