Texture Sample
Texture demonstrates usage of ITexture
interface. The application allows to change textures for different surfaces of
an object interactively..
Running Texture Sample
By default the application displays model (Models\Samples\Texture.mdg) of a
3DS box with two embedded textures. The first texture, which was assigned on
modeling stage my 3D Debugger, is a picture Data\Textures\Uluru.bmp from the
installation folder. It is assigned to the front surface of the box. Note that
the same technique can be used to display textual information on a surface
patch. All side surface patches are using the same texture loaded from file
Data\Textures\Wood\wood001.bmp.
Object Group loads a texture bitmap file and assigns it to all surfaces in
the object. To display the texture "Enable" check box has to be turned on. To
disable blending the texture with underlying color of the surface, turn on the "Texture Only" check box. The texture can be unloaded by using the
"Load/Unload" button.
Side Surface group allows assigning texture to an individual surface patch in
the object. If enabled, the texture will override texture loaded for the
object. "Use for all" button will make the texture to be shared among all side
patch strips in the object (excluding front and back surfaces).
Vertical Surfaces group manages textures assigned to the Front and Back
surfaces.
Texture application loads by default Cube.mdg model. The user can load and save any
DInsight model using File menu.
See also: Sample List
|