28.04.2019 Views

[JAVA][Beginning Java 8 Games Development]

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 5 ■ An Introduction to Game Design: Concepts, Multimedia, and Using Scene Builder<br />

Figure 5-3. A truecolor PNG24 image created with Autodesk 3ds Max, which you are going to compress as PNG5<br />

Interestingly, it is permissible to use less than the 256-colormaximum in an 8-bit indexed color image. This is<br />

often done to reduce further the imagery’s data footprint. For instance, an image that can attain good results using<br />

only 32 colors is actually a 5-bit image and would technically be called a PNG5, even though the format itself is<br />

generally called PNG8 for the indexed color usage level.<br />

I have set this indexed color PNG image, shown in Figure 5-4, to use 5-bit color (32 color, or PNG5) to illustrate<br />

this dithering effect clearly. As you can see in the image preview area, on the left-hand side of the figure, the dithering<br />

algorithm makes dot patterns between adjacent colors to create additional colors.<br />

Figure 5-4. Setting dithering to the diffusion algorithm and 32 colors (5 bit), with 100 percent dithering for PNG5 output<br />

112<br />

www.it-ebooks.info

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!