DirectX SDK |
This topic pertains only to application development in C++. See Direct3D Immediate Mode Visual Basic Samples.
The Filter sample demonstrates the texture-filtering techniques that Direct3D supports. Direct3D texture-filtering techniques enable applications to achieve greater realism in the appearance of rendered primitives. For more information, see Texture Filtering.
Source: (SDK root)\Samples\Multimedia\D3dim\Src\Filter
Executable: (SDK root)\Samples\Multimedia\D3dim\Bin\Filter.exe
When the sample begins, it displays two rectangular primitives with textures on them.
In addition to the usual commands listed in the About dialog box when you press F1, this sample has a main menu.
The File menu contains choices for pausing and resuming the sample, changing the Direct3D device, and exiting. You can also pause and resume the sample by pressing the ENTER key.
The Left Pane menu controls the texture-filtering methods that the sample uses for magnification and reduction of the 3-D primitive on the left side of the screen. It also has options for edge antialiasing and anisotropic texture filtering. You might have to enable the software reference rasterizer to view the effects of these options. To enable the reference rasterizer, run (SDK root)\Samples\Multimedia\D3dim\Bin\Enablerefrast.reg.
The Right Pane menu allows you to set the filtering methods that the sample uses to perform magnification and reduction when it renders the primitive on the right side of the screen.
This sample demonstrates nearest-point sampling, linear filtering, and anisotropic texture filtering. It shows how to enable and disable anisotropy. In addition, this sample shows how to enable edge antialiasing.