Skip to content

Would it be possible to add images instead of colours? #2

@Ximore

Description

@Ximore

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions