Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to add PSM (Prespective shadow map) to my engine but I have problems with that. I think the problem is somewhere in my math code so I want debug Nvidia PracticalPSM sample and compare the math result in the sample and in my engine so maybe I could find the bug

When I want to compile the sample with VS2005 I get some linker error with DXUT functions maybe it is due to that the static lib DXUT.lib that included is compiled with VS2003 and dose not work probably with VS2005 then I added DXUT source codes from SDK 9.5 to the solution and the sample compiles this time.

When I hit F5 to run the sample it complains about nv_nvb.dll but only release version of nv_nvb.dll is included in the sample and I copied that to debug folder when the program starts it crashes in NVBscene9.cpp line 283.

I don't know why it crashes here.

you can download the sample code from here

share|improve this question
could you post say, lines 275-283? – melak47 May 28 '12 at 21:44

I have the same problem.
To fix the DXUT linking errors, for all the functions in DXUT.h that were listed in the error logged, I replaced in their prototype const WCHAR* or LPSTR by const unsigned short*, because this is the type that I found in the DXUT.lib library when running Microsoft dumpbin.exe on it.

However after this stage, I am like you stuck at the nv_nvb.dll is missing problem.
It seems that that this is a library used to load .nvb files, which I guess is an effect or model file created by NVidia.

If you have 3ds Max installed on your PC, maybe you can try to add the NVidia plug-in described on this page, it might contain the .dll (I don't have 3ds Max so I could not give it a try).

Good luck !

Alternately, if you run a 32 bits version of Windows you might be able to install the 9.52 version of NVidia SDK (I couldn't because I work on a 64 bits machine).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.