簡單地說,電腦圖學的主要研究內容就是研究如何在電腦中表示圖形、以及利用電腦進行圖形的計算、處理和顯示的相關原理與演算法。然而圖學領域研究的分支有許多種。
本篇我們將介紹電腦圖學中的一些基本應該具備的知識。
Basic Knowledge
Translate 平移
平移在圖學中是一個很基本的變換,也就是移動一個物件。P是當前的位置,而d是想移動的距離,
最終的位置就是P+d。
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
寫成矩陣型式就如下圖表示:
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
之後談到MVP矩陣時會在更詳細的去講矩陣的意義。
Rotation 旋轉
旋轉也是基本變換之一,簡單的想就是在空間中選轉一個物件。但在旋轉之前,要先決定物體怎麼旋轉,也就是選轉軸,旋轉角度,旋轉中心。然而在旋轉變換中有不同的算法,如: 四元數,尤拉角等。
之後會再詳談。在這裡只需要了解到最基本的旋轉就是我們高中熟悉的旋轉矩陣。
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
在更細一點看,其實就是各個分量的旋轉。
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
以矩陣形式如下圖表示
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Scale 縮放
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Shearing
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Reflect 鏡射
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →