CHAPTER 7: Well-Rendered Miscellany (^211)
Figure 7-3. On the left is a view on the moon from Apollo 14, and an iPhone 4 image is on the right.
Depending on the specific optics and their various internal coatings, the flares can take
many different forms, but they usually end up being just of bunch of ghostly polygons of
varying sizes and hues. In the next exercise, we’ll create a simple lens flare project that
will illustrate using 2D images in a 3D environment. Because there is a lot of code for the
setup, I will only highlight the key bits here. You will need to go to http://www.apress.com to get
the full project.
Geometrically, lens flares are generally pretty simple because of their symmetry. They
exhibit two main characteristics: all lens flares require a very bright light source, and
they’ll lie along a diagonal line going through the center of the screen, as shown in
Figure 7-4.
singke
(singke)
#1