Pro Java 9 Games Development Leveraging the JavaFX APIs

(Michael S) #1
Chapter 18 ■ 3D Gameplay DesiGn: CreatinG your Game Content usinG Gimp anD Java

Figure 18-6. Select the Steel Hoop layer and Magic Wand tool and click inside the hoop to create a selection


At this point, since the Steel Hoop layer is selected, the selection is indeed on top of the steel hoop.
However, once the Clipboard layer (which you can rename Parrot, if you want, by double-clicking the
layer name) is selected, this selection will be on top of (as well as used on) that layer and will therefore be
underneath your Steel Hoop layer.
Set the Grow Selection dialog value to 4 and click the OK button, as shown at the bottom of Figure 18-7.


To accomplish this GIMP “move,” you will select the Steel Hoop layer, shown selected in blue in
Figure 18-6, and then click the Magic Wand tool, shown (depressed) selected in the GIMP Tool Icon area.
Click the Magic Wand tool inside of the center (transparent) area of your steel hoop, which will select this
area inside of the hoop. You’ll need to expand this selection area so that the parrot image actually goes
underneath the edges of the steel hoop, or you will see a seam around the edge of the parrot image once it’s
cut out so that it is in the interior portion of the steel hoop.
To do this, after you see your selection inside of your steel hoop, as shown in Figure 18-6, you will want
to use the Select ➤ Grow menu sequence and expand the selection so that it actually looks like it is over the
top of the steel hoop, by anywhere from 1 to 9 pixels. (I usually use at least 2, to be safe; in this case, I have
used 4 pixels.)

Free download pdf