[Please do not mail me a copy of your followup]
>> Can you be more specific by what you mean by "flicker"?
>At certain angles the light intensity seems to be random each frame.
So you're saying if the viewing angle isn't changing, you're just
redrawing the same scene over and over with no changes, then the
lighting intensity varies? This sounds like a bug in your code
>> Can you reproduce it in any other samples?
>In the SDK samples?
Yes; the SDK samples do lighting all over the place. If they don't
exhibit the problem, that points the finger back at your code having a
bug. If they also exhibit the problem, that points the finger at
something besides your code -- perhaps your driver.
>> My rt_Lighting sample should let you recreate exactly what you are
>> doing in your code.
>It does not compile:
>app.cpp(283) : error C2039: 'D3DXTessellateNPatches' : is not a member of
>app.cpp(283) : error C2065: 'D3DXTessellateNPatches' : undeclared identifier
>d3dapp.cpp(848) : error C2065: 'D3DPMISCCAPS_NULLREFERENCE' : undeclared
>Is it for 8.1?
On the download web page it says:
"Note: This sample was created with the DX8.1 SDK AppWizard."
To make it work with 8.0 should only take a few modifications, but I
haven't tried it myself as I have 8.1. You can take out the N-patch
tesselation, that's just to get the vertex density of the teapot a
little higher than the stock result of D3DXCreateTeapot. You might
have to tweak any calls to optimizing the mesh as well; 8.1 added an
additional argument, I think.
Ask me about my upcoming book on Direct3D from Addison-Wesley!
Direct3D Book http://www.xmission.com/~legalize/book/
izfree: Open source tools for Windows Installer