Summary
The small demo at the start of this chapter packed a lot into it: a variety of 3D objects with techniques used to color, texture, and animate them; an area for 2D controls, a little interactivity, and some considerations when using it on various platforms.
These are great to get started, but to really learn the nuances of 3D programming and how humans interact with virtual objects, putting together a game reveals things you may not have considered. The escape game we wrote showcased many of those aspects, such as when and how to set the Position.Z
property to work with controls at design time, how rotating an object on one axis affects the position and rotation along other axes, how to tastefully mix 2D and 3D objects for the best interactivity, how lights and colors can greatly enhance visual appeal, or when to disable HitTest
to allow a click event to pass through to a parent control.
When working with 3D objects on mobile devices, it's important to remember there...