Create a cube using different textures in JavaFX
问题 How can I create a cube that uses different images for each side? I would like to choose the images to use dynamically, using the user's input. The obvious solution would be to create six separate rectangles (wouldn't this be worse performance-wise?), but is there a way that utilizes the existing Box functionality (e.g. something similar to TextureCubeMap in Java3D)? So far all I've found are solutions using one image as a texture for the entire cube (example: this.) 回答1: I ended up writing a