I was trying to see how an image would work Box, and at first it wasn't working with any of the paths specified by the Image class. Finally I tried the image path found in the tutorials of Oracle that links to the JavaFX image on the site.
When I set all of the image maps(bump, diffuse,specular) it would throw the image into all 6 sides, but horribly choppy. When I would try to rerun it it would break and the image would not show. If I changed the image path(I would just switch from fx- to f-x, so it didn't lik to another image) ran it, changed it back to fx- and ran it again it would work once more, another run it would break again.
Image image = new Image("http://docs.oracle.com/javafx/javafx/images/javafx-documentation.png");
final PhongMaterial red = new PhongMaterial();
red.setDiffuseMap(image);
red.setSpecularMap(image);
red.setBumpMap(image);
When I set all of the image maps(bump, diffuse,specular) it would throw the image into all 6 sides, but horribly choppy. When I would try to rerun it it would break and the image would not show. If I changed the image path(I would just switch from fx- to f-x, so it didn't lik to another image) ran it, changed it back to fx- and ran it again it would work once more, another run it would break again.
Image image = new Image("http://docs.oracle.com/javafx/javafx/images/javafx-documentation.png");
final PhongMaterial red = new PhongMaterial();
red.setDiffuseMap(image);
red.setSpecularMap(image);
red.setBumpMap(image);
- is blocked by
-
JDK-8119313 PhongMaterial.setSpecularMap: a typo bug
- Closed
-
JDK-8102271 When both diffuseMap and diffuseColor are set in PhongMaterial, diffuseMap is not used
- Resolved