problem during executing Hydrax

corrado

12-02-2009 14:53:28

Dear All
Using Hydrax, (with VS 2008), when I create Hydrax, I get the following error:

OGRE EXCEPTION(2:InvalidParametersException): Named constants have not been initialised, perhaps a compile error. in GpuProgramParameters::_findNamedConstantDefinition at f:\codingextra\ogre\shoggoth_vc9\ogre\ogremain\src\ogregpuprogram.cpp (line 1087)

Debugging the code I found the error is raised in this line:
FP_Parameters->setNamedAutoConstant("uEyePosition", Ogre::GpuProgramParameters::ACT_CAMERA_POSITION_OBJECT_SPACE);


I try to use CG, GLSL, HLSL but nothing change
Have you any suggestions?

Thanks in advance,
Corrado.

Xavyiy

12-02-2009 14:55:56

Use HLSL or CG mode with DirectX render system. It should work. (For OpenGL render system, use the latest CG version from Nvidia and Hydrax CG mode).

Xavi

corrado

12-02-2009 17:00:03

Hello,
I've already try to change it but I've got the same message :-(

Xavyiy

12-02-2009 18:45:42

Does the precompiled demo work for you? If it doesn't then your graphic cards mustn't support SM 2.

Xavi

corrado

13-02-2009 10:28:51

No, the precompiled demo doesn't work. I tried it on thre different pc, with Nvidia 256 mb, and I got the same error.

Xavyiy

13-02-2009 11:24:09

If the precompiled demo doesn't work the only reason is: Your graphic card doesn't support SM 2.0, you haven't latest drivers(Anyway must work with any recent version).