The COMPLETE Effect and HLSL Cross-Reference

By Sebastien St-Laurent
ISBN 0-9766132-1-2
Jan 2006 (896 pages)

Buy directly from Paradoxal Press at $20.75 (Save 43%)

Page 55

For this to happen, you will need to add those two components to the vertex shader output structure. They can be passed to the pixel shader using the TEXCOORD1and TEXCOORD2 semantics. Applying the modi.cations will yield the following output structure:

Page 41

...hat you have a pixel you wish to texture and illuminate with a directional light. You will need to determine the lighting contribution, fetch the texture and then combine the two together. First, to determine the contribution of a directional light, you will need to compute the dot product of the pi...

Page 42

...sively. This is because of the way functions are processed, compiled and executed by the vertex and pixel shader hardware. Shader hardware can only execute code in a linear fashion and cannot jump to other locations within the code. This means that functions are always inlined within the calling cod...

Page 211

The pixel shader 3.0 model offers a wide range of instructions. Below, in Table A-9, you will .nd a complete listing of all arithmetic shader instructions along with a quick description of their functionality and the number of instruction slots taken by the instruction.

Page 123

...ameters with the ID3DXEffectCompiler or ID3DXEffect interfaces. You can acquire a handle dynamically for example when you use the GetParameterByNamefunction. If you look at the handle de.nition above, youll notice that handles are technically string pointers. This means that in addition to dynamical...

Texture Viewer (Windows Explorer Extension)

The texture viewer displays thumbnail images in the Microsoft Windows file preview system. The following are the file formats that can be displayed: For more information on these texture file formats, see D3DXIMAGE_FILEFORMAT.

For a cube texture, the forward cube face will be displayed on the screen. For a volume texture, the first plane will be displayed. These display properties cannot be configured by the user.

Compatibility Chart

Direct3D 9Direct3D 9 EXDirect3D 1064-bit Native ModeWindows XPWindows Vista

Yes

No

No

Yes

Yes

Yes

Requirements

Minimum Operating SystemWindows 2000. The viewer will not work on Windows Millennium Edition (Windows Me).

Installation

The texture viewer is automatically installed from txview.dll when you install the DirectX SDK.

Note    Installation will not override any existing Windows shell viewer settings for any texture file formats.

User's Guide

From a folder view of your texture files, use the Windows View menu to view thumbnail images with texture file information. Use one of the following procedures.

Thumbnail View

In the View menu, select Thumbnails. Thumbnails of all supported file formats (see list above) will be displayed. If more than one mip level is available in a file's mipmap, only the top mip level will be displayed.

Figure 1.  Texture view using the Explorer menu

Details View

If necessary, first switch out of Windows classic folder view; see the note below. Select the file you want to view, and then in the View menu, select Details. A rendering of the image will be displayed in the Details pane of the Explorer bar.

Texture view using Details panel of the Explorer bar

Note    The Details view functionality will not work if you are using the Microsoft Windows classic folder view. To change your folder settings, use the following procedure.

  1. Open any folder.
  2. In the folder's Tools menu, select Folder Options...
  3. In the General tab, select the radio button labeled Show common tasks in folders.
  4. Click Apply and then OK.
To go back to the Windows classic folder view, use this same procedure, but instead select the radio button labeled Use Windows classic folders .

Figure 2.  Folder options dialog box