the-cube
the-cube copied to clipboard
Would it be possible to add images instead of colours?
I tried to Use a texture map like this:
// Cube.js -> line 212
if (edge.name === "R") {
var texture = new THREE.TextureLoader().load('/assets/icons/android-chrome-192x192.png');
edge.material.map = texture;
}
Based on the visual outcome, it does indeed load something onto the piece, though I believe it could be done smarter. This way will require a background image per piece.
I really like this repo, and could use it for a party coming up this autumn.. If you have some thoughts on how to achieve the image thingy, I would appreciate you sharing..
Hey, I wanted to see if you were able to achieve this ? If so, would you be able to share your code on github? @Ximore