Backface Culling and 3D Lighting

Apress eBooks · 2006

Wow! That was a lot of work for just three examples! But I think the results are well worth it. You now have the tools to make some pretty stunning 3D movies. And it goes without saying that there are a lot of variations you can throw in here. For instance, in the last example, the light is stationary and the object moves. Try moving the light around instead. (It’s just a matter of altering its x, y, and/or z positions.) In fact, as a bonus, you can check out ch17_04.fla, where I have the light controlled by the mouse. You might want to try to get the light orbiting around a stationary object. That about wraps up our main discussion of 3D. In the next chapter, you’ll be looking at matrix math, which is often used as an alternative to some of the scaling and rotation methods you’ve been using so far, and thus is something you’ll often see in 3D programming.

Read the paper · More papers on PaperTik