OpenGL Super Bible! Page 65 Figure 3-11 Bouncing (Web hosting rating)

OpenGL Super Bible! Page 65 Figure 3-11 Bouncing square Finally, Some 3D! Thus far, all our samples have been simple rectangles in the middle of the window; they either scaled to the new window size or bounced around off the walls. By now you may be bouncing off some walls of your own, waiting anxiously to see something in 3D. Wait no more! As mentioned earlier, we have been drawing in 3D all along, but our view of the rectangle has been perpendicular to the clipping volume. If we could just rotate the clipping volume with respect to the viewer, we might actually see something with a little depth. However, we aren t going to get into coordinate transformations and rotations until Chapter 7. And even if we started that work now, a flat rectangle isn t very interesting, even when viewed from an angle. To see some depth, we need to draw an object that is not flat. The AUX library contains nearly a dozen 3D objects from a sphere to a teapot that can be created with a single function call. These called functions are of the form auxSolidxxxx() or auxWirexxxx(), where xxxx names the solid or wireframe object that is created. For example, the following command draws a wireframe teapot of approximately 50.0 units in diameter: auxWireTeapot(50.0f); If we define a clipping volume that extends from -100 to 100 along all three axes, we ll get the wireframe teapot shown in Figure 3-12. The teapot is probably the best example at this point because the other objects still look two-dimensional when viewed from a parallel
Note: If you are looking for high quality webhost to host and run your jsp application check Vision jsp web hosting services

Leave a Reply