Skip to main content
Public

Share visualization

Loading preview…

Pika 3D Dice

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Pika 3D Dice

0
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.

Comments

Sign in to join the discussion.

MIT Licensed