[SOLVED] Error During Hydrax Creation


23-06-2010 22:18:00

Hello all !
I'm a french user of Ogre and i wan't to add Hydrax to my project. I have a small problem during the execution.

[Hydrax] Hydrax created.
[Hydrax] HydraxDemo.hdx loaded.
[Hydrax] Config file version doesn't correspond with Hydrax version.
[Hydrax] Creating module...
[Hydrax] Creating ProjectedGridVertex module.
[Hydrax] ProjectedGridVertex created.
[Hydrax] Module created.
[Hydrax] Initializating RTT Manager...
[Hydrax] RTT manager initialized.
[Hydrax] Registring device restored listener...
[Hydrax] Device restored listener registred.
[Hydrax] Creating materials...
[Hydrax] Creating water material...
terminate called after throwing an instance of 'Ogre::InvalidParametersException'
what(): OGRE EXCEPTION(2:InvalidParametersException): Named constants have not been initialised, perhaps a compile error. in GpuProgramParameters::_findNamedConstantDefinition at /build/buildd/ogre-1.7.0/OgreMain/src/OgreGpuProgramParams.cpp (line 1423)

I'm using Ogre3D 1.7.0, Hydrax 0.5.2 and i work on Ubuntu 9.10 64bits.
I've seen another post who deals with a similar error : http://www.ogre3d.org/addonforums/viewtopic.php?f=20&t=12759
But i'm using Hydrax 0.5.2, not 0.5.1.

Someone have an idea ?



23-06-2010 22:25:13

[Hydrax] HydraxDemo.hdx loaded.
[Hydrax] Config file version doesn't correspond with Hydrax version.

Look at this ;)

Just change the .hdx version value to your Hydrax version. (And the Shader mode value to GLSL)
The thing is that Hydrax enables HLSL shader mode by default, and you're not loading the .hdx file due to the version value conflict, so your shader mode is still HLSL and not GLSL(or GC).

P.D.: Hydrax 0.5.2 is a non-oficial version due to I haven't revised it, so dunno if SanguinarioJoe has change the Hydrax version values (In Prerequisites.h) to 0.5.2 or is still with 0.5.1.



23-06-2010 22:30:28

Yeah thanx a lot Xa =D

All work perfectly 8)