Platform SDK: DirectX

EnvMap Sample

[Visual Basic]

This topic pertains only to application development in C and C++. DirectX for Visual Basic does not include support for the Direct3DX utility library.

[C++]

Description

The EnvMap sample demonstrates cubic environment mapping.

Path

Source: (SDK root)\Samples\Multimedia\D3dx\Src\EnvMap

Executable: (SDK root)\Samples\Multimedia\D3dx\Bin\EnvMap.exe

User's Guide

No user input is required.

Programming Notes

This sample demonstrates how to create reflective effects by displaying a reflective sphere inside a cube. A cube map is a special texture surface created by rendering a scene in six orthogonal directions. It is used for traditional environment-mapping effects.

This sample uses the Direct3DX utility library helper classes.