Software Review : three.js (Javascript Library)

Overview

three.js เป็น Javascript library ที่มีไว้เพื่อทำให้การสร้าง 2D และ 3D content บน webpage เป็นเรื่องที่ง่ายยิ่งขึ้น โดย three.js ใช้ WebGL ในการวาด 3D content (WebGL เป็น low-level system ที่ใช้ในการวาดจุด เส้น และสามเหลี่ยม) ซึ่งสิ่งที่ three.js เข้ามาช่วยจัดการคือ ฉาก, แสง, เงา, วัสดุ, การคำนวณ 3D และอื่น ๆ โดยสามารถแสดงเป็นโครงสร้างได้ดังนี้

Fundamental Features

  • Primitives
  • Screen Graph
  • Materials
  • Textures
  • Lights
  • Cameras
  • Shadows
  • Fog
  • Render Targets
  • Custom Geometry

Examples

Tutorial: