May 2018
Intermediate to advanced
268 pages
6h 43m
English
These maps work with color, attaching a provided image, such as a wallpaper, to the surface of a 3D object. SelfIlluminationMap also adds an additional inside glow to the image.
For example, let's take a map of Earth and put it on a sphere:

It will look as shown in the following screenshots. Note that I've added a rotation to make the results more visible:

The material method I've used here is material.setSelfIlluminationMap(Image bumpImage). See the inline comments for more details:
// chapter12/EarthDemo.java ...
Read now
Unlock full access