In the last chapter, we saw how to create glowing objects with self illumination. In this chapter, we will see about bump mapping in JavaFX.
Bump Maps
According to Wikipedia, Bump mapping is a computer graphics technique for simulating bumps and wrinkles on the surface of an object. Surfaces are not always super smooth. They mostly have some form of deformations. Bump mapping allows to add this extra detail to the surface.
JavaFX PhongMaterial provides option to set bump maps using the method.
public final void setBumpMap(Image value)
Let’s have a look at example code snippet.
PhongMaterial material = new PhongMaterial(); material.setDiffuseMap(new Image(getClass().getResourceAsStream("wood.jpg"))); //Set bump map material.setBumpMap(new Image(getClass().getResourceAsStream("bumpMap.jpg"))); Box box = new Box(100, 20, 50); box.setMaterial(material); return box;
… [Trackback]
[…] There you will find 9843 more Info on that Topic: genuinecoder.com/javafx-3d-bump-maps-wrinkles/ […]
… [Trackback]
[…] Find More Info here to that Topic: genuinecoder.com/javafx-3d-bump-maps-wrinkles/ […]
… [Trackback]
[…] Read More Info here to that Topic: genuinecoder.com/javafx-3d-bump-maps-wrinkles/ […]
… [Trackback]
[…] Find More Information here to that Topic: genuinecoder.com/javafx-3d-bump-maps-wrinkles/ […]
… [Trackback]
[…] Find More on on that Topic: genuinecoder.com/javafx-3d-bump-maps-wrinkles/ […]
… [Trackback]
[…] Info on that Topic: genuinecoder.com/javafx-3d-bump-maps-wrinkles/ […]
… [Trackback]
[…] Info to that Topic: genuinecoder.com/javafx-3d-bump-maps-wrinkles/ […]
… [Trackback]
[…] Read More Info here on that Topic: genuinecoder.com/javafx-3d-bump-maps-wrinkles/ […]
… [Trackback]
[…] Read More Info here on that Topic: genuinecoder.com/javafx-3d-bump-maps-wrinkles/ […]
… [Trackback]
[…] Find More here to that Topic: genuinecoder.com/javafx-3d-bump-maps-wrinkles/ […]
… [Trackback]
[…] Read More on to that Topic: genuinecoder.com/javafx-3d-bump-maps-wrinkles/ […]
… [Trackback]
[…] Information on that Topic: genuinecoder.com/javafx-3d-bump-maps-wrinkles/ […]
… [Trackback]
[…] Read More Info here on that Topic: genuinecoder.com/javafx-3d-bump-maps-wrinkles/ […]
… [Trackback]
[…] Find More Info here to that Topic: genuinecoder.com/javafx-3d-bump-maps-wrinkles/ […]
… [Trackback]
[…] Here you will find 94018 additional Info to that Topic: genuinecoder.com/javafx-3d-bump-maps-wrinkles/ […]
… [Trackback]
[…] There you can find 62861 additional Info to that Topic: genuinecoder.com/javafx-3d-bump-maps-wrinkles/ […]
… [Trackback]
[…] Find More on that Topic: genuinecoder.com/javafx-3d-bump-maps-wrinkles/ […]
… [Trackback]
[…] Info on that Topic: genuinecoder.com/javafx-3d-bump-maps-wrinkles/ […]
… [Trackback]
[…] There you will find 61453 additional Information to that Topic: genuinecoder.com/javafx-3d-bump-maps-wrinkles/ […]
… [Trackback]
[…] Find More here to that Topic: genuinecoder.com/javafx-3d-bump-maps-wrinkles/ […]
… [Trackback]
[…] Find More on that Topic: genuinecoder.com/javafx-3d-bump-maps-wrinkles/ […]
… [Trackback]
[…] Here you will find 62994 additional Information on that Topic: genuinecoder.com/javafx-3d-bump-maps-wrinkles/ […]
… [Trackback]
[…] Read More to that Topic: genuinecoder.com/javafx-3d-bump-maps-wrinkles/ […]
… [Trackback]
[…] Read More on on that Topic: genuinecoder.com/javafx-3d-bump-maps-wrinkles/ […]
… [Trackback]
[…] Find More on on that Topic: genuinecoder.com/javafx-3d-bump-maps-wrinkles/ […]