Skip to main content
100%

Pika 3D Dice

✓ Published0🌍 Public
PPeter S
Last edited Nov 30, 2019
Created on Sep 27, 2019
Forked from Pika 3D Dice

Three.js and D3 render a cube mapped with a hand-drawn Pikachu face on a canvas texture, creating a 3D dice with a checkerboard ground plane and point-light shadowing. The cube rotates automatically via a d3.zoom transform, while the camera can be orbited, panned, and zoomed with THREE.OrbitControls. Users can also move the cube along the x and y axes with WASD keys and reset its position with the spacebar.

AI-generated description

This a a variant of the previous developed Viz Pikachu Face. Instead of having the the face on a 2D environment, the face was plotted onto a 3D box from Three.js lib. This was for learning purpose, and still some features were missing, that will be added on futures revisions.

Controls:

  • Pressed Right mouse click, rorate the camera. Note is a little glitch since the object is rotating at the same time.
  • Pressed Right mouse click, moved the camera in x and z axis.
  • Scroll to move the camera in y axis.
  • Spacebar to reset the view.

A 3D scatter plot using Three.js and D3.

Canvas technique described in Scaling HTML canvases for HiDPI screens.

MIT Licensed

Similar vizzes