This is the list of projects I’ve done when learning Computer Graphics with Professor Ken Perlin.
- Final Project: Go
- Wave
- FLAME IN THE DARKNESS
- Bump Mapping
- Lights and Spheres
- Stellated Octahedron
- Donut
- Collision Free
- Pendulum ride
- Waterdrop
- Texture Mapping on Earth
Final Project: Go
In this project, I have implemented a vr board game where the player is at the center of a cube and can put pieces on each of the six surfaces by staring at the board. To play it, the player must at least have a smartphone that supports webvr and a pair of vr glasses.
The VR feature is deprecated in latest Chrome… so this current version is not playable. But you may visit it at https://graphics.anpu.live/final/go.html anyway.
The major work I have done is:
- Create the board using
LineSegments
provided by three.js library. - Create the milkway background using
CubeTextureLoader
provided by three.js library. The milkway images are obtained from here. - Create the sun using Lensflare.js library. The pictures I used comply with the license.
- Initialize the board by putting all the pieces down and setting them invisible.
- Use the technique of raycasting to determine which piece is being stared at, and set it visible permanently if the player looks at it more than 100 frames. The
raycaster
is provided by three.js.
The potential development includes:
- Build a server where two players can play against each other.
- Support controllers of vr headsets like oculus/vive.
- Support normal version on desktop.