getting started with Hydrax ( newbie inside :x )

Fruz

28-04-2010 10:57:22

Hi
I am a beginner with Ogre and Hydrax.
I have to find a way to improve the quality of a very simple ocean. So I looked for something that looked great and found Hydrax !
I am first trying to make a simple application with Hydrax to understand how it works, to be able to use it for the ocean I have to change after !
I downloaded the demo and sources of the v0.5.1 ( I'm working with a linux Debian and I can't launch de Demo.exe, even with wine, but anyway I'm trying to int├ęgrate Hydrax in a simple application yet ).
So I began to take pieces of the main.cpp source code, and I have yet errors that I don't succeed to resolve :(.

Isays that the config file is not good for this Hydrax version but this is the file from the Demo :x, and I don't know if this is the source of the errors following but It would be great if someone could help me solving this :s.

Hydrax logs :
Creating resource group General
Creating resource group Internal
Creating resource group Autodetect
SceneManagerFactory for type 'DefaultSceneManager' registered.
Registering ResourceManager for type Material
Registering ResourceManager for type Mesh
Registering ResourceManager for type Skeleton
MovableObjectFactory for type 'ParticleSystem' registered.
OverlayElementFactory for type Panel registered.
OverlayElementFactory for type BorderPanel registered.
OverlayElementFactory for type TextArea registered.
Registering ResourceManager for type Font
ArchiveFactory for archive type FileSystem registered.
ArchiveFactory for archive type Zip registered.
FreeImage version: 3.10.0
This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
Supported formats: bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,gif,hdr,g3,sgi,exr,j2k,j2c,jp2
DDS codec registering
Registering ResourceManager for type HighLevelGpuProgram
Registering ResourceManager for type Compositor
MovableObjectFactory for type 'Entity' registered.
MovableObjectFactory for type 'Light' registered.
MovableObjectFactory for type 'BillboardSet' registered.
MovableObjectFactory for type 'ManualObject' registered.
MovableObjectFactory for type 'BillboardChain' registered.
MovableObjectFactory for type 'RibbonTrail' registered.
Loading library /usr/lib/OGRE/RenderSystem_GL.so
Installing plugin: GL RenderSystem
OpenGL Rendering Subsystem created.
Plugin successfully installed
Loading library /usr/lib/OGRE/Plugin_ParticleFX.so
Installing plugin: ParticleFX
Particle Emitter Type 'Point' registered
Particle Emitter Type 'Box' registered
Particle Emitter Type 'Ellipsoid' registered
Particle Emitter Type 'Cylinder' registered
Particle Emitter Type 'Ring' registered
Particle Emitter Type 'HollowEllipsoid' registered
Particle Affector Type 'LinearForce' registered
Particle Affector Type 'ColourFader' registered
Particle Affector Type 'ColourFader2' registered
Particle Affector Type 'ColourImage' registered
Particle Affector Type 'ColourInterpolator' registered
Particle Affector Type 'Scaler' registered
Particle Affector Type 'Rotator' registered
Particle Affector Type 'DirectionRandomiser' registered
Particle Affector Type 'DeflectorPlane' registered
Plugin successfully installed
Loading library /usr/lib/OGRE/Plugin_BSPSceneManager.so
Installing plugin: BSP Scene Manager
Plugin successfully installed
Loading library /usr/lib/OGRE/Plugin_OctreeSceneManager.so
Installing plugin: Octree & Terrain Scene Manager
Plugin successfully installed
Loading library /usr/lib/OGRE/Plugin_CgProgramManager.so
Installing plugin: Cg Program Manager
Plugin successfully installed
*-*-* OGRE Initialising
*-*-* Version 1.4.9 (Eihort)
Creating resource group Bootstrap
Added resource location '../../ogrenew/Samples/Media/packs/OgreCore.zip' of type 'Zip' to resource group 'Bootstrap'
Added resource location '../../ogrenew/Samples/Media' of type 'FileSystem' to resource group 'General'
Added resource location '../../ogrenew/Samples/Media/fonts' of type 'FileSystem' to resource group 'General'
Added resource location '../../ogrenew/Samples/Media/materials/programs' of type 'FileSystem' to resource group 'General'
Added resource location '../../ogrenew/Samples/Media/materials/scripts' of type 'FileSystem' to resource group 'General'
Added resource location '../../ogrenew/Samples/Media/materials/textures' of type 'FileSystem' to resource group 'General'
Added resource location '../../ogrenew/Samples/Media/models' of type 'FileSystem' to resource group 'General'
Added resource location '../../ogrenew/Samples/Media/overlays' of type 'FileSystem' to resource group 'General'
Added resource location '../../ogrenew/Samples/Media/particle' of type 'FileSystem' to resource group 'General'
Added resource location '../../ogrenew/Samples/Media/gui' of type 'FileSystem' to resource group 'General'
Added resource location '../../ogrenew/Samples/Media/DeferredShadingMedia' of type 'FileSystem' to resource group 'General'
Added resource location '../../ogrenew/Samples/Media/packs/cubemap.zip' of type 'Zip' to resource group 'General'
Added resource location '../../ogrenew/Samples/Media/packs/cubemapsJS.zip' of type 'Zip' to resource group 'General'
Added resource location '../../ogrenew/Samples/Media/packs/dragon.zip' of type 'Zip' to resource group 'General'
Added resource location '../../ogrenew/Samples/Media/packs/fresneldemo.zip' of type 'Zip' to resource group 'General'
Added resource location '../../ogrenew/Samples/Media/packs/ogretestmap.zip' of type 'Zip' to resource group 'General'
Added resource location '../../ogrenew/Samples/Media/packs/skybox.zip' of type 'Zip' to resource group 'General'
Creating resource group Hydrax
Added resource location './media/Hydrax' of type 'FileSystem' to resource group 'Hydrax'
CPU Identifier & Features
-------------------------
* CPU ID: AuthenticAMD: AMD Athlon(tm) 64 X2 Dual Core Processor 3800+
* SSE: yes
* SSE2: yes
* SSE3: yes
* MMX: yes
* MMXEXT: yes
* 3DNOW: yes
* 3DNOWEXT: yes
* CMOV: yes
* TSC: yes
* FPU: yes
* PRO: yes
* HT: no
-------------------------
******************************
*** Starting GLX Subsystem ***
******************************
GLRenderSystem::createRenderWindow "OGRE Render Window", 1024x768 windowed miscParams: FSAA=0 title=OGRE Render Window
GLXWindow::create
Parsing miscParams
GLXWindow::create -- Best visual is 36
GL_VERSION = 2.1.2 NVIDIA 195.36.15
GL_VENDOR = NVIDIA Corporation
GL_RENDERER = GeForce 7300 LE/PCI/SSE2/3DNOW!
GL_EXTENSIONS = GL_ARB_color_buffer_float GL_ARB_copy_buffer GL_ARB_depth_clamp GL_ARB_depth_texture GL_ARB_draw_buffers GL_ARB_fragment_program GL_ARB_fragment_program_shadow GL_ARB_fragment_shader GL_ARB_framebuffer_object GL_ARB_half_float_pixel GL_ARB_half_float_vertex GL_ARB_imaging GL_ARB_map_buffer_range GL_ARB_multisample GL_ARB_multitexture GL_ARB_occlusion_query GL_ARB_pixel_buffer_object GL_ARB_point_parameters GL_ARB_point_sprite GL_ARB_provoking_vertex GL_ARB_shader_objects GL_ARB_shading_language_100 GL_ARB_shadow GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_crossbar GL_ARB_texture_env_dot3 GL_ARB_texture_float GL_ARB_texture_mirrored_repeat GL_ARB_texture_non_power_of_two GL_ARB_texture_rectangle GL_ARB_transpose_matrix GL_ARB_vertex_array_bgra GL_ARB_vertex_array_object GL_ARB_vertex_buffer_object GL_ARB_vertex_program GL_ARB_vertex_shader GL_ARB_window_pos GL_ATI_draw_buffers GL_ATI_texture_float GL_ATI_texture_mirror_once GL_S3_s3tc GL_EXT_texture_env_add GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_equation_separate GL_EXT_blend_func_separate GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_compiled_vertex_array GL_EXT_Cg_shader GL_EXT_depth_bounds_test GL_EXT_direct_state_access GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample GL_EXT_framebuffer_object GL_EXT_gpu_program_parameters GL_EXT_multi_draw_arrays GL_EXT_packed_depth_stencil GL_EXT_packed_pixels GL_EXT_pixel_buffer_object GL_EXT_point_parameters GL_EXT_provoking_vertex GL_EXT_rescale_normal GL_EXT_secondary_color GL_EXT_separate_shader_objects GL_EXT_separate_specular_color GL_EXT_shadow_funcs GL_EXT_stencil_two_side GL_EXT_stencil_wrap GL_EXT_texture3D GL_EXT_texture_compression_s3tc GL_EXT_texture_cube_map GL_EXT_texture_edge_clamp GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod GL_EXT_texture_lod_bias GL_EXT_texture_mirror_clamp GL_EXT_texture_object GL_EXT_texture_sRGB GL_EXT_texture_swizzle GL_EXT_timer_query GL_EXT_vertex_array GL_EXT_vertex_array_bgra GL_IBM_rasterpos_clip GL_IBM_texture_mirrored_repeat GL_KTX_buffer_region GL_NV_blend_square GL_NV_copy_depth_to_color GL_NV_depth_clamp GL_NV_fence GL_NV_float_buffer GL_NV_fog_distance GL_NV_fragment_program GL_NV_fragment_program_option GL_NV_fragment_program2 GL_NV_framebuffer_multisample_coverage GL_NV_half_float GL_NV_light_max_exponent GL_NV_multisample_filter_hint GL_NV_occlusion_query GL_NV_packed_depth_stencil GL_NV_pixel_data_range GL_NV_point_sprite GL_NV_primitive_restart GL_NV_register_combiners GL_NV_register_combiners2 GL_NV_texgen_reflection GL_NV_texture_barrier GL_NV_texture_compression_vtc GL_NV_texture_env_combine4 GL_NV_texture_expand_normal GL_NV_texture_rectangle GL_NV_texture_shader GL_NV_texture_shader2 GL_NV_texture_shader3 GL_NV_vertex_array_range GL_NV_vertex_array_range2 GL_NV_vertex_program GL_NV_vertex_program1_1 GL_NV_vertex_program2 GL_NV_vertex_program2_option GL_NV_vertex_program3 GL_NVX_conditional_render GL_SGIS_generate_mipmap GL_SGIS_texture_lod GL_SGIX_depth_texture GL_SGIX_shadow GL_SUN_slice_accum
***************************
*** GL Renderer Started ***
***************************
Registering ResourceManager for type GpuProgram
GLSL support detected
GL: Using GL_EXT_framebuffer_object for rendering to textures (best)
FBO PF_UNKNOWN depth/stencil support: D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_R5G6B5 depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_B5G6R5 depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_R8G8B8 depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_B8G8R8 depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_A8R8G8B8 depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_B8G8R8A8 depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_A2R10G10B10 depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_A2B10G10R10 depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_FLOAT16_RGB depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_FLOAT16_RGBA depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_FLOAT32_RGB depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_FLOAT32_RGBA depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_X8R8G8B8 depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_X8B8G8R8 depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_SHORT_RGBA depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_R3G3B2 depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_SHORT_RGB depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
[GL] : Valid FBO targets PF_UNKNOWN PF_R5G6B5 PF_B5G6R5 PF_R8G8B8 PF_B8G8R8 PF_A8R8G8B8 PF_B8G8R8A8 PF_A2R10G10B10 PF_A2B10G10R10 PF_FLOAT16_RGB PF_FLOAT16_RGBA PF_FLOAT32_RGB PF_FLOAT32_RGBA PF_X8R8G8B8 PF_X8B8G8R8 PF_SHORT_RGBA PF_R3G3B2 PF_SHORT_RGB
RenderSystem capabilities
-------------------------
* Hardware generation of mipmaps: yes
* Texture blending: yes
* Anisotropic texture filtering: yes
* Dot product texture operation: yes
* Cube mapping: yes
* Hardware stencil buffer: yes
- Stencil depth: 8
- Two sided stencil support: yes
- Wrap stencil values: yes
* Hardware vertex / index buffers: yes
* Vertex programs: yes
- Max vertex program version: vp40
* Fragment programs: yes
- Max fragment program version: fp40
* Texture Compression: yes
- DXT: yes
- VTC: yes
* Scissor Rectangle: yes
* Hardware Occlusion Query: yes
* User clip planes: yes
* VET_UBYTE4 vertex element type: yes
* Infinite far plane projection: yes
* Hardware render-to-texture: yes
* Floating point textures: yes
* Non-power-of-two textures: yes
* Volume textures: yes
* Multiple Render Targets: 4
* Point Sprites: yes
* Extended point parameters: yes
* Max Point Size: 63.375
* Vertex texture fetch: yes
- Max vertex textures: 4
- Vertex textures shared: yes
Registering ResourceManager for type Texture
ResourceBackgroundQueue - threading disabled
Particle Renderer Type 'billboard' registered
SceneManagerFactory for type 'BspSceneManager' registered.
Registering ResourceManager for type BspLevel
SceneManagerFactory for type 'OctreeSceneManager' registered.
SceneManagerFactory for type 'TerrainSceneManager' registered.
Parsing scripts for resource group Autodetect
Finished parsing scripts for resource group Autodetect
Parsing scripts for resource group Bootstrap
Parsing script OgreCore.material
Parsing script OgreProfiler.material
Parsing script Ogre.fontdef
Parsing script OgreDebugPanel.overlay
Texture: New_Ogre_Border_Center.png: Loading 1 faces(PF_A8R8G8B8,256x128x1) with 5 generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
Texture: New_Ogre_Border.png: Loading 1 faces(PF_A8R8G8B8,256x256x1) with 5 generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
Texture: New_Ogre_Border_Break.png: Loading 1 faces(PF_A8R8G8B8,32x32x1) with 5 generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
Font BlueHighwayusing texture size 512x512
Info: Freetype returned null for character 127 in font BlueHighway
Info: Freetype returned null for character 128 in font BlueHighway
Info: Freetype returned null for character 129 in font BlueHighway
Info: Freetype returned null for character 130 in font BlueHighway
Info: Freetype returned null for character 131 in font BlueHighway
Info: Freetype returned null for character 132 in font BlueHighway
Info: Freetype returned null for character 133 in font BlueHighway
Info: Freetype returned null for character 134 in font BlueHighway
Info: Freetype returned null for character 135 in font BlueHighway
Info: Freetype returned null for character 136 in font BlueHighway
Info: Freetype returned null for character 137 in font BlueHighway
Info: Freetype returned null for character 138 in font BlueHighway
Info: Freetype returned null for character 139 in font BlueHighway
Info: Freetype returned null for character 140 in font BlueHighway
Info: Freetype returned null for character 141 in font BlueHighway
Info: Freetype returned null for character 142 in font BlueHighway
Info: Freetype returned null for character 143 in font BlueHighway
Info: Freetype returned null for character 144 in font BlueHighway
Info: Freetype returned null for character 145 in font BlueHighway
Info: Freetype returned null for character 146 in font BlueHighway
Info: Freetype returned null for character 147 in font BlueHighway
Info: Freetype returned null for character 148 in font BlueHighway
Info: Freetype returned null for character 149 in font BlueHighway
Info: Freetype returned null for character 150 in font BlueHighway
Info: Freetype returned null for character 151 in font BlueHighway
Info: Freetype returned null for character 152 in font BlueHighway
Info: Freetype returned null for character 153 in font BlueHighway
Info: Freetype returned null for character 154 in font BlueHighway
Info: Freetype returned null for character 155 in font BlueHighway
Info: Freetype returned null for character 156 in font BlueHighway
Info: Freetype returned null for character 157 in font BlueHighway
Info: Freetype returned null for character 158 in font BlueHighway
Info: Freetype returned null for character 159 in font BlueHighway
Info: Freetype returned null for character 160 in font BlueHighway
Texture: BlueHighwayTexture: Loading 1 faces(PF_BYTE_LA,512x512x1) with 0 generated mipmaps from Image. Internal format is PF_BYTE_LA,512x512x1.
Texture: ogretext.png: Loading 1 faces(PF_A8R8G8B8,256x128x1) with 5 generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
Parsing script OgreLoadingPanel.overlay
Finished parsing scripts for resource group Bootstrap
Parsing scripts for resource group General
Parsing script StdQuad_vp.program
Parsing script Examples.program
GLSL compiling: Ogre/BasicVertexPrograms/AmbientOneTextureGLSL
GLSL compiled : Ogre/BasicVertexPrograms/AmbientOneTextureGLSL
GLSL compiling: Ogre/HardwareSkinningTwoWeightsGLSL
GLSL compiled : Ogre/HardwareSkinningTwoWeightsGLSL
Parsing script deferred_post_debug.hlsl.program
Parsing script deferred_post_onepass.glsl.program
GLSL compiling: DeferredShading/post/glsl/vs
GLSL compiled : DeferredShading/post/glsl/vs
GLSL compiling: DeferredShading/post/glsl/SinglePass_ps
GLSL compiled : DeferredShading/post/glsl/SinglePass_ps
Parsing script deferred_post_multipass.glsl.program
GLSL compiling: DeferredShading/post/glsl/Ambient_ps
GLSL compiled : DeferredShading/post/glsl/Ambient_ps
GLSL compiling: DeferredShading/post/glsl/GlobalLight_ps
GLSL compiled : DeferredShading/post/glsl/GlobalLight_ps
Parsing script deferred.glsl.program
GLSL compiling: DeferredShading/material/glsl/ps
GLSL compiled : DeferredShading/material/glsl/ps
GLSL compiling: DeferredShading/material/glsl/notex_ps
GLSL compiled : DeferredShading/material/glsl/notex_ps
GLSL compiling: DeferredShading/material/glsl/nm_ps
GLSL compiled : DeferredShading/material/glsl/nm_ps
GLSL compiling: DeferredShading/material/glsl/nm_notex_ps
GLSL compiled : DeferredShading/material/glsl/nm_notex_ps
Parsing script deferred_post_onepass.hlsl.program
Parsing script deferred_post_minilight.glsl.program
GLSL compiling: DeferredShading/post/glsl/LightMaterial_vs
GLSL compiled : DeferredShading/post/glsl/LightMaterial_vs
GLSL compiling: DeferredShading/post/glsl/LightMaterial_ps
GLSL compiled : DeferredShading/post/glsl/LightMaterial_ps
Parsing script deferred_post_minilight.hlsl.program
Parsing script deferred.hlsl.program
Parsing script deferred_post_debug.glsl.program
GLSL compiling: DeferredShading/post/glsl/ShowNormal_ps
GLSL compiled : DeferredShading/post/glsl/ShowNormal_ps
GLSL compiling: DeferredShading/post/glsl/ShowDS_ps
GLSL compiled : DeferredShading/post/glsl/ShowDS_ps
GLSL compiling: DeferredShading/post/glsl/ShowColour_ps
GLSL compiled : DeferredShading/post/glsl/ShowColour_ps
Parsing script deferred_post_multipass.hlsl.program
Parsing script HeatVision.material
Parsing script Examples-Advanced.material
Parsing script BlackAndWhite.material
Parsing script Invert.material
Parsing script DepthShadowmap.material
GLSL compiling: Ogre/DepthShadowmap/CasterVP_GLSL
GLSL compiled : Ogre/DepthShadowmap/CasterVP_GLSL
GLSL compiling: Ogre/DepthShadowmap/ReceiverVP_GLSL
GLSL compiled : Ogre/DepthShadowmap/ReceiverVP_GLSL
GLSL compiling: Ogre/DepthShadowmap/ReceiverFP_GLSL
GLSL compiled : Ogre/DepthShadowmap/ReceiverFP_GLSL
GLSL compiling: Ogre/DepthShadowmap/ReceiverFPPCF_GLSL
GLSL compiled : Ogre/DepthShadowmap/ReceiverFPPCF_GLSL
GLSL compiling: Ogre/DepthShadowmap/NormalMapReceiverVP_GLSL
GLSL compiled : Ogre/DepthShadowmap/NormalMapReceiverVP_GLSL
GLSL compiling: Ogre/DepthShadowmap/NormalMapReceiverFP_GLSL
GLSL compiled : Ogre/DepthShadowmap/NormalMapReceiverFP_GLSL
GLSL compiling: Ogre/DepthShadowmap/NormalMapReceiverFPPCF_GLSL
GLSL compiled : Ogre/DepthShadowmap/NormalMapReceiverFPPCF_GLSL
GLSL compiling: Ogre/DepthShadowmap/CasterFP_GLSL
GLSL compiled : Ogre/DepthShadowmap/CasterFP_GLSL
Parsing script hdr.material
GLSL compiling: Ogre/Compositor/HDR/downscale2x2LuminenceGLSL_fp
GLSL compiled : Ogre/Compositor/HDR/downscale2x2LuminenceGLSL_fp
GLSL compiling: Ogre/Compositor/StdQuad_GLSL_vp
GLSL compiled : Ogre/Compositor/StdQuad_GLSL_vp
GLSL compiling: Ogre/Compositor/HDR/downscale3x3GLSL_fp
GLSL compiled : Ogre/Compositor/HDR/downscale3x3GLSL_fp
GLSL compiling: Ogre/Compositor/HDR/utils_fp
GLSL compiled : Ogre/Compositor/HDR/utils_fp
GLSL compiling: Ogre/Compositor/HDR/downscale3x3brightpassGLSL_fp
GLSL compiled : Ogre/Compositor/HDR/downscale3x3brightpassGLSL_fp
GLSL compiling: Ogre/Compositor/HDR/bloomGLSL_fp
GLSL compiled : Ogre/Compositor/HDR/bloomGLSL_fp
GLSL compiling: Ogre/Compositor/HDR/utils_fp
GLSL compiled : Ogre/Compositor/HDR/utils_fp
GLSL compiling: Ogre/Compositor/HDR/finaltonemappingGLSL_fp
GLSL compiled : Ogre/Compositor/HDR/finaltonemappingGLSL_fp
Parsing script Glass.material
Parsing script Embossed.material
Parsing script OldTV.material
Parsing script Example-Water.material
Parsing script Hurt.material
Parsing script VarianceShadowmap.material
Parsing script Bloom.material
GLSL compiling: Blur_ps_glsl
GLSL compiled : Blur_ps_glsl
GLSL compiling: Blur0_vs_glsl
GLSL compiled : Blur0_vs_glsl
GLSL compiling: Blur1_vs_glsl
GLSL compiled : Blur1_vs_glsl
Parsing script smoke.material
Parsing script Ogre.material
Parsing script instancing.material
GLSL compiling: InstancingGLSL
GLSL compiled : InstancingGLSL
GLSL compiling: InstancingShadowCasterGLSL
GLSL compiled : InstancingShadowCasterGLSL
GLSL compiling: CrowdGLSL
GLSL compiled : CrowdGLSL
GLSL compiling: CrowdShadowCasterGLSL
GLSL compiled : CrowdShadowCasterGLSL
Parsing script Posterize.material
Parsing script Example-DynTex.material
Parsing script SharpenEdges.material
Parsing script Example.material
GLSL compiling: Ogre/HardwareSkinningTwoWeightsShadowCasterGLSL
GLSL compiled : Ogre/HardwareSkinningTwoWeightsShadowCasterGLSL
Parsing script facial.material
Parsing script OffsetMapping.material
GLSL compiling: Examples/OffsetMappingIntegratedShadowsFPglsl
GLSL compiled : Examples/OffsetMappingIntegratedShadowsFPglsl
GLSL compiling: Examples/OffsetMappingIntegratedShadowsVPglsl
GLSL compiled : Examples/OffsetMappingIntegratedShadowsVPglsl
Parsing script Tiling.material
Parsing script RZR-002.material
Parsing script MotionBlur.material
Parsing script OldMovie.material
Parsing script Ocean.material
GLSL compiling: GLSL/OceanVS
GLSL compiled : GLSL/OceanVS
GLSL compiling: GLSL/OceanFS
GLSL compiled : GLSL/OceanFS
GLSL compiling: GLSL/Ocean2VS
GLSL compiled : GLSL/Ocean2VS
GLSL compiling: GLSL/Ocean2FS
GLSL compiled : GLSL/Ocean2FS
Parsing script Laplace.material
Parsing script DOF.material
Parsing script deferred_post_debug.material
Parsing script deferreddemo.material
Error at line 22 of deferreddemo.material: parent material: DeferredShading/Material/TexturedPhong not found for new material:Test13/Ground
Error at line 47 of deferreddemo.material: parent material: DeferredShading/Material/TexturedNormalMapped not found for new material:Test13/RockWall
Error at line 81 of deferreddemo.material: parent material: DeferredShading/Material/UntexturedNormalMapped not found for new material:Test13/DeferredAthena
Error in material Test13/DeferredAthena at line 91 of deferreddemo.material: Invalid fragment_program_ref entry - fragment program has not been defined.
Error in material Test13/DeferredAthena at line 105 of deferreddemo.material: Invalid fragment_program_ref entry - fragment program has not been defined.
Error at line 114 of deferreddemo.material: parent material: DeferredShading/Material/TexturedPhong not found for new material:Test13/DeferredOgre/Skin
Error at line 141 of deferreddemo.material: parent material: DeferredShading/Material/UntexturedPhong not found for new material:Test13/DeferredOgre/EarRing
Error in material Test13/DeferredOgre/EarRing at line 147 of deferreddemo.material: Invalid fragment_program_ref entry - fragment program has not been defined.
Error in material Test13/DeferredOgre/EarRing at line 158 of deferreddemo.material: Invalid fragment_program_ref entry - fragment program has not been defined.
Error at line 166 of deferreddemo.material: parent material: DeferredShading/Material/TexturedPhong not found for new material:Test13/DeferredOgre/Tusks
Error in material Test13/DeferredOgre/Tusks at line 172 of deferreddemo.material: Invalid fragment_program_ref entry - fragment program has not been defined.
Error in material Test13/DeferredOgre/Tusks at line 186 of deferreddemo.material: Invalid fragment_program_ref entry - fragment program has not been defined.
Error at line 197 of deferreddemo.material: parent material: DeferredShading/Material/TexturedPhong not found for new material:Test13/DeferredOgre/Eyes
Error in material Test13/DeferredOgre/Eyes at line 203 of deferreddemo.material: Invalid fragment_program_ref entry - fragment program has not been defined.
Error in material Test13/DeferredOgre/Eyes at line 217 of deferreddemo.material: Invalid fragment_program_ref entry - fragment program has not been defined.
Parsing script deferred_post_minilight.material
Parsing script deferred_post_onepass.material
Parsing script deferred.material
GLSL compiling: DeferredShading/material/glsl/vs
GLSL compiled : DeferredShading/material/glsl/vs
GLSL compiling: DeferredShading/material/glsl/nm_vs
GLSL compiled : DeferredShading/material/glsl/nm_vs
Parsing script deferred_post_multipass.material
Parsing script RomanBath.material
Parsing script Examples.compositor
Parsing script sample.fontdef
Parsing script smoke.particle
Parsing script Example-Water.particle
Parsing script emitted_emitter.particle
Parsing script Example.particle
Parsing script Example-CubeMapping.overlay
Parsing script Example-Water.overlay
Parsing script Compositor.overlay
Parsing script Example-DynTex.overlay
Parsing script Shadows.overlay
Parsing script DP3.overlay
Finished parsing scripts for resource group General
Parsing scripts for resource group Hydrax
Finished parsing scripts for resource group Hydrax
Parsing scripts for resource group Internal
Finished parsing scripts for resource group Internal
Creating viewport on target 'OGRE Render Window', rendering from camera 'CameraPrincipale', relative dimensions L: 0.00 T: 0.00 W: 1.00 H: 1.00 ZOrder: 0
*** Initializing OIS ***
[Hydrax] Hydrax created.
isVisible = true
[Hydrax] Hydrax.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...
Creating viewport on target 'rtt/HydraxReflectionMap/161795744', rendering from camera 'CameraPrincipale', relative dimensions L: 0.00 T: 0.00 W: 1.00 H: 1.00 ZOrder: 0
Creating viewport on target 'rtt/HydraxRefractionMap/161834496', rendering from camera 'CameraPrincipale', relative dimensions L: 0.00 T: 0.00 W: 1.00 H: 1.00 ZOrder: 0
[Hydrax] RTT manager initialized.
[Hydrax] Registring device restored listener...
[Hydrax] Device restored listener registred.
[Hydrax] Creating materials...
[Hydrax] Creating water material...
Exception : OGRE EXCEPTION(2:InvalidParametersException): Named constants have not been initialised, perhaps a compile error. in GpuProgramParameters::_findNamedConstantDefinition at OgreGpuProgram.cpp (line 873)



main.cpp
1 #include "appliHydrax.h"
2 #include "Ogre.h"
3
4 int main(int argc, char *argv[]){
5 try{
6 appliHydrax monAppli;
7 monAppli.creerMer();
8 monAppli.stop();
9 } catch (Ogre::Exception &e){
10 std::cout << "Exception : " << e.what() << std::endl;
11 }
12 return 0;
13 }



appliHydrax.cpp
#include "appliHydrax.h"
#include "Ogre.h"
#include "appliListener.h"
#include <iostream>
#include "Hydrax.h"
#include "./Hydrax-v0.5.1/Hydrax/src/Hydrax/Modules/ProjectedGrid/ProjectedGrid.h"
using namespace std;
using namespace Ogre;
//using namespace Hydrax;

appliHydrax::appliHydrax(){
if(!init()) return;
pRoot->startRendering();
cout << "constructeur" << endl;
}

void appliHydrax::creerMer(){
pHydrax = new Hydrax::Hydrax(pSceneManager, pCamera, pViewport);
cout.setf(ios_base::boolalpha);
cout << "isVisible = " << pHydrax->isVisible() << endl;

pHydrax->setSunPosition(Vector3(1000,10000,1000));
pHydrax->setSunColor(Vector3(0.9,0.7,0.7));

Hydrax::Module::ProjectedGrid *pModule = new Hydrax::Module::ProjectedGrid(// Hydrax parent pointer
pHydrax,
new Hydrax::Noise::Perlin(/*Generic one*/),
Ogre::Plane(Ogre::Vector3(0,1,0), Ogre::Vector3(0,0,0)),
Hydrax::MaterialManager::NM_VERTEX,
Hydrax::Module::ProjectedGrid::Options(/*264 /*Generic one*/));
pHydrax->setModule(static_cast<Hydrax::Module::Module*>(pModule));
pHydrax->loadCfg("Hydrax.hdx");

pHydrax->create();

cout << "bu" << endl;
}

void appliHydrax::stop(){
if(pFrameListener) delete pFrameListener;
if(pRoot) delete pRoot;
}

bool appliHydrax::init(){
pRoot = new Root("plugins.cfg","ogre.cfg","Ogre.log");
//----------------------------------- init ressources ---------------------------------------------
// Load resource paths from config file
ConfigFile cf;
cf.load("resources.cfg");
// Go through all sections & settings in the file
ConfigFile::SectionIterator seci = cf.getSectionIterator();
String secName, typeName, archName;
while (seci.hasMoreElements()){
secName = seci.peekNextKey();
ConfigFile::SettingsMultiMap *settings = seci.getNext();
ConfigFile::SettingsMultiMap::iterator i;
for (i = settings->begin(); i != settings->end(); ++i){
typeName = i->first;
archName = i->second;

#if OGRE_PLATFORM == OGRE_PLATFORM_APPLE
// OS X does not set the working directory relative to the app,
// In order to make things portable on OS X we need to provide
// the loading with it's own bundle path location
ResourceGroupManager::getSingleton().addResourceLocation(
String(macBundlePath() + "/" + archName), typeName, secName);
#else
ResourceGroupManager::getSingleton().addResourceLocation(
archName, typeName, secName);
#endif
}
}

//-------------------------------------------------------------------------------------------------
// Show the configuration dialog and initialise the system
// You can skip this and use root.restoreConfig() to load configuration
// settings if you were sure there are valid ones saved in ogre.cfg
if(pRoot->showConfigDialog()){
// If returned true, user clicked OK so initialise
// Here we choose to let the system create a default rendering window by passing 'true'
pRenderWindow = pRoot->initialise(true);
}
else{ return false; }
//------------------------------------------------------------------------------------------------

pSceneManager = pRoot->createSceneManager(ST_GENERIC, "ExampleSMInstance");
pCamera = pSceneManager->createCamera("CameraPrincipale");
TextureManager::getSingleton().setDefaultNumMipmaps(5);

ResourceGroupManager::getSingleton().initialiseAllResourceGroups();
creerMer();
cout << "buIci" << endl;

pViewport = pRenderWindow->addViewport(pCamera);
pViewport->setBackgroundColour(ColourValue(1,0.7,0.7));
pCamera->setAspectRatio(Real(pViewport->getActualWidth()) / Real(pViewport->getActualHeight()));
pCamera->setPosition( Vector3(100,100,500));
pCamera->lookAt( Vector3(10,0,0));
pCamera->setNearClipDistance(15);
SceneNode *pNoeudCamera = pSceneManager->createSceneNode();
pNoeudCamera->attachObject(pCamera);


pFrameListener = new appliListener(pHydrax, pRenderWindow, pCamera->getParentSceneNode(), pSceneManager, true, true);
pRoot->addFrameListener(pFrameListener);
// Show the frame stats overlay
pFrameListener->showDebugOverlay(true);

return true;
}


config file ( Hydrax.hdx )
#Hydrax cfg file.

#Hydrax version field
HydraxVersion=0.5.1

#Main options field
<vector3>Position=-5000x100x-5000
<float>PlanesError=10.5
#Shader mode: 0=HLSL, 1=CG, 2=GLSL
<int>ShaderMode=1
<float>FullReflectionDistance=1e+011
<float>GlobalTransparency=0
<float>NormalDistortion=0.075
<vector3>WaterColor=0.139765x0.359464x0.425373

#Components field
Components=Sun|Foam|Depth|Smooth|Caustics|Underwater|UnderwaterReflections|UnderwaterGodRays

#Sun parameters
<vector3>SunPosition=0x10000x0
<float>SunStrength=1.75
<float>SunArea=150
<vector3>SunColor=1x0.9x0.6

#Foam parameters
<float>FoamMaxDistance=7.5e+007
<float>FoamScale=0.0075
<float>FoamStart=0
<float>FoamTransparency=1

#Depth parameters
<float>DepthLimit=90

#Smooth transitions parameters
<float>SmoothPower=5

#Caustics parameters
<float>CausticsScale=135
<float>CausticsPower=10.5
<float>CausticsEnd=0.8

#God rays parameters
<vector3>GodRaysExposure=0.76x2.46x2.29
<float>GodRaysIntensity=0.015
<float>GodRaysSpeed=5
<int>GodRaysNumberOfRays=100
<float>GodRaysRaysSize=0.03
<bool>GodRaysIntersections=false

#Rtt quality field(0x0 = Auto)
<size>Rtt_Quality_Reflection=0x0
<size>Rtt_Quality_Refraction=0x0
<size>Rtt_Quality_Depth=0x0
<size>Rtt_Quality_URDepth=0x0
<size>Rtt_Quality_GPUNormalMap=0x0

#Module options
Module=ProjectedGridVertex

<float>PG_ChoopyStrength=3.75
<bool>PG_ChoppyWaves=true
<int>PG_Complexity=264
<float>PG_Elevation=50
<bool>PG_ForceRecalculateGeometry=false
<bool>PG_Smooth=false
<float>PG_Strength=35

#Noise options
Noise=Perlin

<int>Perlin_Octaves=8
<float>Perlin_Scale=0.085
<float>Perlin_Falloff=0.49
<float>Perlin_Animspeed=1.4
<float>Perlin_Timemulti=1.27
<float>Perlin_GPU_Strength=2
<vector3>Perlin_GPU_LODParameters=0.5x50x150000


I don't know if the way the directory are build is very important, so I created something like the demo :

.
|-- Hydrax-v0.5.1
| |-- Hydrax
| | |-- bin
| | | |-- debug
| | | `-- release
| | |-- include
| | |-- lib
| | |-- media
| | | `-- Hydrax
| | |-- obj
| | `-- src
| | `-- Hydrax
| | |-- Modules
| | | |-- ProjectedGrid
| | | |-- RadialGrid
| | | `-- SimpleGrid
| | `-- Noise
| | |-- FFT
| | `-- Perlin
| `-- doxygen
| |-- html
| `-- latex
|-- media
| |-- Hydrax
| |-- materials
| | |-- programs
| | |-- scripts
| | `-- textures
| |-- models
| `-- packs
`-- ois
|-- LinuxCB
|-- Mac
| |-- SDL
| |-- XCode-1.5
| | `-- oisStatic.xcode
| `-- XCode-2.2
| `-- OIS.xcodeproj
|-- Win32
| |-- CommandLine
| |-- DemoFFTest
| `-- SDL
| `-- SdlDemo
|-- demos
|-- includes
| |-- SDL
| |-- linux
| |-- mac
| `-- win32
|-- lib
`-- src
|-- SDL
|-- extras
| `-- LIRC
|-- linux
|-- mac
`-- win32
`-- extras
`-- WiiMote



I thank you for taking a moment trying to help me :)

PS : As u may have noticed I am not English, so please forgive my English mistakes :p

EDIT : it seems that the answer is : the Graphic card doesn't support Pixel Shader wich are used with Hydrax v0.5.1 :X
I'm trying with the v0.3 so !