Toyemann
03-24-2002, 02:28 PM
Anyone knows how to create a Cubic Environment Mapping?
I've been looking all over, but can't find any good sample code.
I've tried the SDK sample, but somehow it won't let me create the CubeTexture. And even the regular Texture fails when I apply the D3DUSAGE_RENDERTARGET parameter. They both return an error saying "D3DERR_NOTAVAILABLE", meaning "The queried technique is not supported by this device". But, the C++ sample works fine. I don't understand.
If anybody here knows how to create a reflective texture, please help me. Thanks. :confused:
I've been looking all over, but can't find any good sample code.
I've tried the SDK sample, but somehow it won't let me create the CubeTexture. And even the regular Texture fails when I apply the D3DUSAGE_RENDERTARGET parameter. They both return an error saying "D3DERR_NOTAVAILABLE", meaning "The queried technique is not supported by this device". But, the C++ sample works fine. I don't understand.
If anybody here knows how to create a reflective texture, please help me. Thanks. :confused: