August 2007
Intermediate to advanced
864 pages
25h 52m
English
The Viewport3D class allows you
to add simple 3D models your user interface. The scene is built up with
shapes defined by mesh geometries. These might be imported from a 3D
modeling program, or generated at runtime from data. The appearance of
the shapes is described by materials—combinations of 2D brushes and
various lighting models. Because you can use any 2D brush, you can paint
3D surfaces with bitmaps, drawings, videos, or even a visual copy of a
user interface. Finally, hit testing services enable you to find out
with which part of a 3D model the user is interacting.