the-cube icon indicating copy to clipboard operation
the-cube copied to clipboard

Would it be possible to add images instead of colours?

Open Ximore opened this issue 4 years ago • 1 comments

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;
}

Screenshot 2020-07-16 at 19 36 53

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

Ximore avatar Jul 16 '20 17:07 Ximore

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

workingprototype avatar Nov 08 '23 11:11 workingprototype