Hydrax 0.5.1 Cthugha + Linux

Teknoman117

29-05-2010 08:23:33

I made the modifications to the hydrax source code to compile it with Ogre 1.7.x. However I have ran into another issue since I run on Linux. Does anyone know how to get it working? It loads and then I get this error message:

An exception has occured: OGRE EXCEPTION(2:InvalidParametersException): Named constants have not been initialised, perhaps a compile error. in GpuProgramParameters::_findNamedConstantDefinition at /home/robotdude/Downloads/ogre/OgreMain/src/OgreGpuProgramParams.cpp (line 1423)DefaultWorkQueue('Root') shutting down on thread 0xbd92d0.

I read something about the shaders but since I'm new to all of this, I really wouldn't know how to fix them. Can anyone help me?

Here is the whole Ogre log:

00:46:56: Creating resource group General
00:46:56: Creating resource group Internal
00:46:56: Creating resource group Autodetect
00:46:56: SceneManagerFactory for type 'DefaultSceneManager' registered.
00:46:56: Registering ResourceManager for type Material
00:46:56: Registering ResourceManager for type Mesh
00:46:56: Registering ResourceManager for type Skeleton
00:46:56: MovableObjectFactory for type 'ParticleSystem' registered.
00:46:56: OverlayElementFactory for type Panel registered.
00:46:56: OverlayElementFactory for type BorderPanel registered.
00:46:56: OverlayElementFactory for type TextArea registered.
00:46:56: Registering ResourceManager for type Font
00:46:56: ArchiveFactory for archive type FileSystem registered.
00:46:56: ArchiveFactory for archive type Zip registered.
00:46:56: DDS codec registering
00:46:56: FreeImage version: 3.10.0
00:46:56: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
00:46:56: 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
00:46:56: Registering ResourceManager for type HighLevelGpuProgram
00:46:56: Registering ResourceManager for type Compositor
00:46:56: MovableObjectFactory for type 'Entity' registered.
00:46:56: MovableObjectFactory for type 'Light' registered.
00:46:56: MovableObjectFactory for type 'BillboardSet' registered.
00:46:56: MovableObjectFactory for type 'ManualObject' registered.
00:46:56: MovableObjectFactory for type 'BillboardChain' registered.
00:46:56: MovableObjectFactory for type 'RibbonTrail' registered.
00:46:56: Loading library /usr/lib/OGRE/RenderSystem_GL
00:46:56: Installing plugin: GL RenderSystem
00:46:56: OpenGL Rendering Subsystem created.
00:46:56: Plugin successfully installed
00:46:56: Loading library /usr/lib/OGRE/Plugin_CgProgramManager
00:46:56: Installing plugin: Cg Program Manager
00:46:56: Plugin successfully installed
00:46:56: Loading library /usr/lib/OGRE/Plugin_OctreeSceneManager
00:46:56: Installing plugin: Octree & Terrain Scene Manager
00:46:56: Plugin successfully installed
00:46:56: *-*-* OGRE Initialising
00:46:56: *-*-* Version 1.7.0 (Cthugha)
00:46:56: Creating resource group Bootstrap
00:46:56: Added resource location '../../media/packs/OgreCore.zip' of type 'Zip' to resource group 'Bootstrap'
00:46:56: Added resource location '../../media' of type 'FileSystem' to resource group 'General'
00:46:56: Added resource location '../../media/materials/programs' of type 'FileSystem' to resource group 'General'
00:46:56: Added resource location '../../media/materials/scripts' of type 'FileSystem' to resource group 'General'
00:46:56: Added resource location '../../media/materials/textures' of type 'FileSystem' to resource group 'General'
00:46:56: Added resource location '../../media/models' of type 'FileSystem' to resource group 'General'
00:46:56: Added resource location '../../media/packs/SkyBoxes.zip' of type 'Zip' to resource group 'General'
00:46:56: Creating resource group Hydrax
00:46:56: Added resource location '../../media/Hydrax' of type 'FileSystem' to resource group 'Hydrax'
00:46:56: OGRE EXCEPTION(6:FileNotFoundException): 'ogre.cfg' file not found! in ConfigFile::load at /home/robotdude/Downloads/ogre/OgreMain/src/OgreConfigFile.cpp (line 83)
00:47:00: CPU Identifier & Features
00:47:00: -------------------------
00:47:00: * CPU ID: AuthenticAMD: AMD Athlon(tm) Dual Core Processor 4050e
00:47:00: * SSE: yes
00:47:00: * SSE2: yes
00:47:00: * SSE3: yes
00:47:00: * MMX: yes
00:47:00: * MMXEXT: yes
00:47:00: * 3DNOW: yes
00:47:00: * 3DNOWEXT: yes
00:47:00: * CMOV: yes
00:47:00: * TSC: yes
00:47:00: * FPU: yes
00:47:00: * PRO: yes
00:47:00: * HT: no
00:47:00: -------------------------
00:47:00: ******************************
*** Starting GLX Subsystem ***
******************************
00:47:00: GLRenderSystem::_createRenderWindow "OGRE Render Window", 1920x1080 fullscreen miscParams: FSAA=0 displayFrequency=60 MHz gamma=No vsync=No
00:47:00: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource GLX_icon.png in resource group General or any other group. in ResourceGroupManager::openResource at /home/robotdude/Downloads/ogre/OgreMain/src/OgreResourceGroupManager.cpp (line 753)
00:47:01: GLXWindow::create used FBConfigID = 39
00:47:01: GL_VERSION = 3.2.9756 Compatibility Profile Context
00:47:01: GL_VENDOR = ATI Technologies Inc.
00:47:01: GL_RENDERER = ATI Radeon HD 5700 Series
00:47:01: GL_EXTENSIONS = GL_AMDX_name_gen_delete GL_AMDX_random_access_target GL_AMDX_vertex_shader_tessellator GL_AMD_conservative_depth GL_AMD_draw_buffers_blend GL_AMD_performance_monitor GL_AMD_seamless_cubemap_per_texture GL_AMD_shader_stencil_export GL_AMD_texture_cube_map_array GL_AMD_texture_texture4 GL_AMD_vertex_shader_tessellator GL_ARB_color_buffer_float GL_ARB_copy_buffer GL_ARB_depth_buffer_float GL_ARB_depth_clamp GL_ARB_depth_texture GL_ARB_draw_buffers GL_ARB_draw_buffers_blend GL_ARB_draw_elements_base_vertex GL_ARB_draw_instanced GL_ARB_fragment_coord_conventions GL_ARB_fragment_program GL_ARB_fragment_program_shadow GL_ARB_fragment_shader GL_ARB_framebuffer_object GL_ARB_framebuffer_sRGB GL_ARB_geometry_shader4 GL_ARB_half_float_pixel GL_ARB_half_float_vertex GL_ARB_imaging GL_ARB_instanced_arrays 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_sample_shading GL_ARB_seamless_cube_map GL_ARB_shader_objects GL_ARB_shader_texture_lod GL_ARB_shading_language_100 GL_ARB_shadow GL_ARB_shadow_ambient GL_ARB_sync GL_ARB_texture_border_clamp GL_ARB_texture_buffer_object GL_ARB_texture_compression GL_ARB_texture_compression_rgtc GL_ARB_texture_cube_map GL_ARB_texture_cube_map_array 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_gather GL_ARB_texture_mirrored_repeat GL_ARB_texture_multisample GL_ARB_texture_non_power_of_two GL_ARB_texture_query_lod GL_ARB_texture_rectangle GL_ARB_texture_rg GL_ARB_texture_snorm GL_ARB_transpose_matrix GL_ARB_uniform_buffer_object 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_envmap_bumpmap GL_ATI_fragment_shader GL_ATI_meminfo GL_ATI_separate_stencil GL_ATI_texture_compression_3dc GL_ATI_texture_env_combine3 GL_ATI_texture_float GL_ATI_texture_mirror_once GL_EXT_abgr GL_EXT_bgra GL_EXT_bindable_uniform 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_copy_buffer GL_EXT_copy_texture GL_EXT_draw_buffers2 GL_EXT_draw_instanced GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample GL_EXT_framebuffer_object GL_EXT_framebuffer_sRGB GL_EXT_geometry_shader4 GL_EXT_gpu_program_parameters GL_EXT_gpu_shader4 GL_EXT_histogram GL_EXT_multi_draw_arrays GL_EXT_packed_depth_stencil GL_EXT_packed_float 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_specular_color GL_EXT_shader_atomic_counters GL_EXT_shader_subroutine GL_EXT_shadow_funcs GL_EXT_stencil_wrap GL_EXT_subtexture GL_EXT_texgen_reflection GL_EXT_texture3D GL_EXT_texture_array GL_EXT_texture_buffer_object GL_EXT_texture_buffer_object_rgb32 GL_EXT_texture_compression_bptc GL_EXT_texture_compression_latc GL_EXT_texture_compression_rgtc GL_EXT_texture_compression_s3tc GL_EXT_texture_cube_map GL_EXT_texture_edge_clamp GL_EXT_texture_env_add GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_EXT_texture_filter_anisotropic GL_EXT_texture_integer GL_EXT_texture_lod GL_EXT_texture_lod_bias GL_EXT_texture_mirror_clamp GL_EXT_texture_object GL_EXT_texture_rectangle GL_EXT_texture_sRGB GL_EXT_texture_shared_exponent GL_EXT_texture_snorm GL_EXT_texture_swizzle GL_EXT_timer_query GL_EXT_transform_feedback GL_EXT_vertex_array GL_EXT_vertex_array_bgra GL_IBM_texture_mirrored_repeat GL_KTX_buffer_region GL_NV_blend_square GL_NV_conditional_render GL_NV_copy_depth_to_color GL_NV_explicit_multisample GL_NV_primitive_restart GL_NV_texgen_reflection GL_SGIS_generate_mipmap GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod GL_SUN_multi_draw_arrays GL_WIN_swap_hint WGL_EXT_swap_control
00:47:01: Supported GLX extensions: GLX_ARB_create_context GLX_ARB_create_context_profile GLX_ARB_get_proc_address GLX_ARB_multisample GLX_EXT_import_context GLX_EXT_visual_info GLX_EXT_visual_rating GLX_MESA_swap_control GLX_NV_swap_group GLX_OML_swap_method GLX_SGI_make_current_read GLX_SGI_swap_control GLX_SGI_video_sync GLX_SGIS_multisample GLX_SGIX_fbconfig GLX_SGIX_pbuffer GLX_SGIX_swap_barrier GLX_SGIX_swap_group GLX_SGIX_visual_select_group GLX_EXT_texture_from_pixmap
00:47:01: ***************************
00:47:01: *** GL Renderer Started ***
00:47:01: ***************************
00:47:01: Registering ResourceManager for type GpuProgram
00:47:01: GLSL support detected
00:47:01: GL: Using GL_EXT_framebuffer_object for rendering to textures (best)
00:47:01: FBO PF_UNKNOWN depth/stencil support: D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
00:47:01: FBO PF_L8 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
00:47:01: FBO PF_L16 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
00:47:01: FBO PF_A8 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
00:47:01: FBO PF_A4L4 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
00:47:01: FBO PF_BYTE_LA depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
00:47:01: FBO PF_R5G6B5 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
00:47:01: FBO PF_B5G6R5 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
00:47:01: FBO PF_A4R4G4B4 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
00:47:01: FBO PF_A1R5G5B5 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
00:47:01: FBO PF_R8G8B8 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
00:47:01: FBO PF_B8G8R8 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
00:47:01: FBO PF_A8R8G8B8 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
00:47:01: FBO PF_B8G8R8A8 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
00:47:01: FBO PF_A2R10G10B10 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
00:47:01: FBO PF_A2B10G10R10 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
00:47:01: FBO PF_FLOAT16_RGB depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
00:47:01: FBO PF_FLOAT16_RGBA depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
00:47:01: FBO PF_FLOAT32_RGB depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
00:47:01: FBO PF_FLOAT32_RGBA depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
00:47:01: FBO PF_X8R8G8B8 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
00:47:01: FBO PF_X8B8G8R8 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
00:47:01: FBO PF_SHORT_RGBA depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
00:47:01: FBO PF_R3G3B2 depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
00:47:01: FBO PF_FLOAT16_R depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
00:47:01: FBO PF_FLOAT32_R depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
00:47:01: FBO PF_SHORT_GR depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
00:47:01: FBO PF_FLOAT16_GR depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
00:47:01: FBO PF_FLOAT32_GR depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
00:47:01: FBO PF_SHORT_RGB depth/stencil support: D0S0 D0S1 D0S4 D0S8 D0S16 D16S0 D24S0 D32S0 Packed-D24S8
00:47:01: [GL] : Valid FBO targets PF_UNKNOWN PF_L8 PF_L16 PF_A8 PF_A4L4 PF_BYTE_LA PF_R5G6B5 PF_B5G6R5 PF_A4R4G4B4 PF_A1R5G5B5 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_FLOAT16_R PF_FLOAT32_R PF_SHORT_GR PF_FLOAT16_GR PF_FLOAT32_GR PF_SHORT_RGB
00:47:01: RenderSystem capabilities
00:47:01: -------------------------
00:47:01: RenderSystem Name: OpenGL Rendering Subsystem
00:47:01: GPU Vendor: ati
00:47:01: Device Name: ATI Radeon HD 5700 Series
00:47:01: Driver Version: 3.2.9756.0
00:47:01: * Fixed function pipeline: yes
00:47:01: * Hardware generation of mipmaps: no
00:47:01: * Texture blending: yes
00:47:01: * Anisotropic texture filtering: yes
00:47:01: * Dot product texture operation: yes
00:47:01: * Cube mapping: yes
00:47:01: * Hardware stencil buffer: yes
00:47:01: - Stencil depth: 8
00:47:01: - Two sided stencil support: yes
00:47:01: - Wrap stencil values: yes
00:47:01: * Hardware vertex / index buffers: yes
00:47:01: * Vertex programs: yes
00:47:01: * Number of floating-point constants for vertex programs: 512
00:47:01: * Number of integer constants for vertex programs: 0
00:47:01: * Number of boolean constants for vertex programs: 0
00:47:01: * Fragment programs: yes
00:47:01: * Number of floating-point constants for fragment programs: 512
00:47:01: * Number of integer constants for fragment programs: 0
00:47:01: * Number of boolean constants for fragment programs: 0
00:47:01: * Geometry programs: yes
00:47:01: * Number of floating-point constants for geometry programs: 512
00:47:01: * Number of integer constants for geometry programs: 0
00:47:01: * Number of boolean constants for geometry programs: 0
00:47:01: * Supported Shader Profiles: arbfp1 arbvp1 glsl gp4gp gpu_gp nvgp4 ps_1_1 ps_1_2 ps_1_3 ps_1_4
00:47:01: * Texture Compression: yes
00:47:01: - DXT: yes
00:47:01: - VTC: no
00:47:01: - PVRTC: no
00:47:01: * Scissor Rectangle: yes
00:47:01: * Hardware Occlusion Query: yes
00:47:01: * User clip planes: yes
00:47:01: * VET_UBYTE4 vertex element type: yes
00:47:01: * Infinite far plane projection: yes
00:47:01: * Hardware render-to-texture: yes
00:47:01: * Floating point textures: yes
00:47:01: * Non-power-of-two textures: yes
00:47:01: * Volume textures: yes
00:47:01: * Multiple Render Targets: 8
00:47:01: - With different bit depths: yes
00:47:01: * Point Sprites: yes
00:47:01: * Extended point parameters: yes
00:47:01: * Max Point Size: 8192
00:47:01: * Vertex texture fetch: yes
00:47:01: * Number of world matrices: 0
00:47:01: * Number of texture units: 16
00:47:01: * Stencil buffer depth: 8
00:47:01: * Number of vertex blend matrices: 0
00:47:01: - Max vertex textures: 16
00:47:01: - Vertex textures shared: yes
00:47:01: * Render to Vertex Buffer : no
00:47:01: * GL 1.5 without VBO workaround: no
00:47:01: * Frame Buffer objects: yes
00:47:01: * Frame Buffer objects (ARB extension): no
00:47:01: * Frame Buffer objects (ATI extension): no
00:47:01: * PBuffer support: no
00:47:01: * GL 1.5 without HW-occlusion workaround: no
00:47:01: Registering ResourceManager for type Texture
00:47:01: DefaultWorkQueue('Root') initialising on thread 0xbd92d0.
00:47:01: DefaultWorkQueue('Root')::WorkerFunc - thread 0x1061050 starting.
00:47:01: DefaultWorkQueue('Root')::WorkerFunc - thread 0x1074690 starting.
00:47:01: Particle Renderer Type 'billboard' registered
00:47:01: SceneManagerFactory for type 'OctreeSceneManager' registered.
00:47:01: SceneManagerFactory for type 'TerrainSceneManager' registered.
00:47:01: TerrainSceneManager: Registered a new PageSource for type Heightmap
00:47:01: Parsing scripts for resource group Autodetect
00:47:01: Finished parsing scripts for resource group Autodetect
00:47:01: Parsing scripts for resource group Bootstrap
00:47:01: Parsing script OgreCore.material
00:47:01: Parsing script OgreProfiler.material
00:47:01: Parsing script Ogre.fontdef
00:47:01: Parsing script OgreDebugPanel.overlay
00:47:01: Texture: New_Ogre_Border_Center.png: Loading 1 faces(PF_A8R8G8B8,256x128x1) with 5 generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
00:47:01: Texture: New_Ogre_Border.png: Loading 1 faces(PF_A8R8G8B8,256x256x1) with 5 generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
00:47:01: Texture: New_Ogre_Border_Break.png: Loading 1 faces(PF_A8R8G8B8,32x32x1) with 5 generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
00:47:01: Font BlueHighwayusing texture size 512x512
00:47:01: Info: Freetype returned null for character 127 in font BlueHighway
00:47:01: Info: Freetype returned null for character 128 in font BlueHighway
00:47:01: Info: Freetype returned null for character 129 in font BlueHighway
00:47:01: Info: Freetype returned null for character 130 in font BlueHighway
00:47:01: Info: Freetype returned null for character 131 in font BlueHighway
00:47:01: Info: Freetype returned null for character 132 in font BlueHighway
00:47:01: Info: Freetype returned null for character 133 in font BlueHighway
00:47:01: Info: Freetype returned null for character 134 in font BlueHighway
00:47:01: Info: Freetype returned null for character 135 in font BlueHighway
00:47:01: Info: Freetype returned null for character 136 in font BlueHighway
00:47:01: Info: Freetype returned null for character 137 in font BlueHighway
00:47:01: Info: Freetype returned null for character 138 in font BlueHighway
00:47:01: Info: Freetype returned null for character 139 in font BlueHighway
00:47:01: Info: Freetype returned null for character 140 in font BlueHighway
00:47:01: Info: Freetype returned null for character 141 in font BlueHighway
00:47:01: Info: Freetype returned null for character 142 in font BlueHighway
00:47:01: Info: Freetype returned null for character 143 in font BlueHighway
00:47:01: Info: Freetype returned null for character 144 in font BlueHighway
00:47:01: Info: Freetype returned null for character 145 in font BlueHighway
00:47:01: Info: Freetype returned null for character 146 in font BlueHighway
00:47:01: Info: Freetype returned null for character 147 in font BlueHighway
00:47:01: Info: Freetype returned null for character 148 in font BlueHighway
00:47:01: Info: Freetype returned null for character 149 in font BlueHighway
00:47:01: Info: Freetype returned null for character 150 in font BlueHighway
00:47:01: Info: Freetype returned null for character 151 in font BlueHighway
00:47:01: Info: Freetype returned null for character 152 in font BlueHighway
00:47:01: Info: Freetype returned null for character 153 in font BlueHighway
00:47:01: Info: Freetype returned null for character 154 in font BlueHighway
00:47:01: Info: Freetype returned null for character 155 in font BlueHighway
00:47:01: Info: Freetype returned null for character 156 in font BlueHighway
00:47:01: Info: Freetype returned null for character 157 in font BlueHighway
00:47:01: Info: Freetype returned null for character 158 in font BlueHighway
00:47:01: Info: Freetype returned null for character 159 in font BlueHighway
00:47:01: Info: Freetype returned null for character 160 in font BlueHighway
00:47:01: Texture: BlueHighwayTexture: Loading 1 faces(PF_BYTE_LA,512x512x1) with 0 generated mipmaps from Image. Internal format is PF_BYTE_LA,512x512x1.
00:47:01: Texture: ogretext.png: Loading 1 faces(PF_A8R8G8B8,256x128x1) with 5 generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
00:47:01: Parsing script OgreLoadingPanel.overlay
00:47:01: Finished parsing scripts for resource group Bootstrap
00:47:01: Parsing scripts for resource group General
00:47:01: Parsing script Palm.material
00:47:01: Parsing script SkyBox.material
00:47:01: Parsing script Island.material
00:47:01: Finished parsing scripts for resource group General
00:47:01: Parsing scripts for resource group Hydrax
00:47:01: Finished parsing scripts for resource group Hydrax
00:47:01: Parsing scripts for resource group Internal
00:47:01: Finished parsing scripts for resource group Internal
00:47:01: Texture: ct_fr.png: Loading 1 faces(PF_R8G8B8,512x512x1) with 5 generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
00:47:01: Texture: ct_bk.png: Loading 1 faces(PF_R8G8B8,512x512x1) with 5 generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
00:47:01: Texture: ct_lf.png: Loading 1 faces(PF_R8G8B8,512x512x1) with 5 generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
00:47:01: Texture: ct_rt.png: Loading 1 faces(PF_R8G8B8,512x512x1) with 5 generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
00:47:01: Texture: ct_up.png: Loading 1 faces(PF_R8G8B8,512x512x1) with 5 generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
00:47:01: Texture: ct_dn.png: Loading 1 faces(PF_R8G8B8,512x512x1) with 5 generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
00:47:01: [Hydrax] Hydrax created.
00:47:01: [Hydrax] HydraxDemo.hdx loaded.
00:47:01: OGRE EXCEPTION(2:InvalidParametersException): Named constants have not been initialised, perhaps a compile error. in GpuProgramParameters::_findNamedConstantDefinition at /home/robotdude/Downloads/ogre/OgreMain/src/OgreGpuProgramParams.cpp (line 1423)
00:47:01: DefaultWorkQueue('Root') shutting down on thread 0xbd92d0.
00:47:01: DefaultWorkQueue('Root')::WorkerFunc - thread 0x1061050 stopped.
00:47:01: DefaultWorkQueue('Root')::WorkerFunc - thread 0x1074690 stopped.
00:47:01: *-*-* OGRE Shutdown
00:47:01: Unregistering ResourceManager for type Compositor
00:47:01: Unregistering ResourceManager for type Font
00:47:01: Unregistering ResourceManager for type Skeleton
00:47:01: Unregistering ResourceManager for type Mesh
00:47:01: Unregistering ResourceManager for type HighLevelGpuProgram
00:47:01: Uninstalling plugin: Octree & Terrain Scene Manager
00:47:01: Plugin successfully uninstalled
00:47:01: Unloading library /usr/lib/OGRE/Plugin_OctreeSceneManager
00:47:01: Uninstalling plugin: Cg Program Manager
00:47:01: Plugin successfully uninstalled
00:47:01: Unloading library /usr/lib/OGRE/Plugin_CgProgramManager
00:47:01: Uninstalling plugin: GL RenderSystem
00:47:01: Unregistering ResourceManager for type GpuProgram
00:47:01: ******************************
*** Stopping GLX Subsystem ***
******************************
00:47:01: Unregistering ResourceManager for type Texture
00:47:01: Plugin successfully uninstalled
00:47:01: Unloading library /usr/lib/OGRE/RenderSystem_GL
00:47:01: Unregistering ResourceManager for type Material

SFCBias

29-05-2010 16:54:31

I've had the same problem (Running LinuxMint 9) I it went away when I used the loadCfg() function however it began to do crazy things when rendering, maybe itll be better for you

Teknoman117

29-05-2010 17:04:19

Well I've discovered a solution. Not to use 0.5.1 at all. I noticed in another post, (I forgot to look around before posting the other message) that mentioned a version 0.5.2 that works with Linux. It still experimental but I get better performance that the 0.3 version and better looks. The post's link is http://www.ogre3d.org/addonforums/viewtopic.php?f=20&t=12668. If you use Ogre 1.7+ you will need to make the changes to the source that are posted in another thread on the main page.

SFCBias

29-05-2010 17:28:24

Yes thats the one ive been using is it working for you?

Teknoman117

29-05-2010 19:05:31

Yes it has been working wonderfully. I also am using Caelum for atmospheric stuff and here is a screenshot of the two demos mixed.

[attachment=0]screenshot.jpg[/attachment]

SFCBias

30-05-2010 03:23:19

would you mind posting the code you used because im having an awful lot of trouble getting this to work on my pc....if its not hydrax, then im sure it has something to do with another aspect of my code. whether it be something with the camera or the sceneManager...I've looked over and over at the samples but no luck so if you could post your code it would be very much appreciated :)

Teknoman117

30-05-2010 06:27:37

Well I'll start with saying that the Hydrax package will not work with Ogre 1.7 without some modifications. There are other posts describing how to do this. My two code pieces are these.

CaelumDemoCommon.h (pulled from the Caelum demo package)

#include "Caelum.h"

#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <direct.h>
#endif
#if OGRE_PLATFORM == OGRE_PLATFORM_LINUX
#include <unistd.h>
#endif

using namespace Caelum;

/** Report an exception as a message box or a stderr message.
*/
inline void reportException (const char* msg) {
#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
MessageBoxA(NULL, msg, "An exception has occured!", MB_OK | MB_ICONERROR | MB_TASKMODAL);
#else
std::cerr << "An exception has occured: " << msg << std::endl;
#endif
}

/** Change diretory to the exe's path; based on argv0
*/
inline void chdirExePath (char* argv0) {
std::string exePath (argv0);
std::string::size_type last_pos = exePath.find_last_of ("\\/");
if (last_pos != std::string::npos) {
std::string exeDir = exePath.substr (0, last_pos);
std::cerr << "Chdir to " << exeDir << std::endl;
chdir (exeDir.c_str ());
}
}


HydroCaelumDemo.cpp (the main file)

#include <Ogre.h>
#include <ExampleApplication.h>

// Hydrax
#include "Hydrax/Hydrax.h"
#include "Hydrax/Noise/Perlin/Perlin.h"
#include "Hydrax/Modules/ProjectedGrid/ProjectedGrid.h"

//Caelum
#include "CaelumDemoCommon.h"

Hydrax::Hydrax *mHydrax = 0;

// ----------------------------------------------------------------------------
// Define the application object
// This is derived from ExampleApplication which is the class OGRE provides to
// make it easier to set up OGRE without rewriting the same code all the time.
// You can override extra methods of ExampleApplication if you want to further
// specialise the setup routine, otherwise the only mandatory override is the
// 'createScene' method which is where you set up your own personal scene.
// ----------------------------------------------------------------------------

class ExampleHydraxDemoListener : public ExampleFrameListener
{
public:
SceneManager *mSceneMgr;
Caelum::CaelumSystem *mCaelumSystem;
Ogre::SceneManager *mScene;
float mSpeedFactor;
bool mPaused;
float mTimeTillNextUpdate;
Real h, s, b;
ExampleHydraxDemoListener(RenderWindow* win, Camera* cam, SceneManager *sm) : ExampleFrameListener(win,cam), mSceneMgr(sm)
{
mPaused = false;

// Pick components to create in the demo.
// You can comment any of those and it should still work
// Trying to disable one of these can be useful in finding problems.
Caelum::CaelumSystem::CaelumComponent componentMask;
componentMask = static_cast<Caelum::CaelumSystem::CaelumComponent> (
Caelum::CaelumSystem::CAELUM_COMPONENT_SUN |
Caelum::CaelumSystem::CAELUM_COMPONENT_MOON |
Caelum::CaelumSystem::CAELUM_COMPONENT_SKY_DOME |
//Caelum::CaelumSystem::CAELUM_COMPONENT_IMAGE_STARFIELD |
Caelum::CaelumSystem::CAELUM_COMPONENT_POINT_STARFIELD |
Caelum::CaelumSystem::CAELUM_COMPONENT_CLOUDS |
0);
componentMask = CaelumSystem::CAELUM_COMPONENTS_DEFAULT;

// Initialise CaelumSystem.
mCaelumSystem = new Caelum::CaelumSystem (Root::getSingletonPtr(), mSceneMgr, componentMask);

// Set time acceleration.
mCaelumSystem->getUniversalClock ()->setTimeScale (512);

// Register caelum as a listener.
mWindow->addListener (mCaelumSystem);
Root::getSingletonPtr()->addFrameListener (mCaelumSystem);

UpdateSpeedFactor(mCaelumSystem->getUniversalClock ()->getTimeScale ());
mTimeTillNextUpdate = 0;
h = s = b = 0.0f;
}

~ExampleHydraxDemoListener() {
if (mCaelumSystem) {
mCaelumSystem->shutdown (false);
mCaelumSystem = 0;
}
}

bool frameStarted(const FrameEvent &e)
{
// Check camera height
Ogre::RaySceneQuery *raySceneQuery = mSceneMgr->createRayQuery(Ogre::Ray(mCamera->getPosition() + Ogre::Vector3(0,1000000,0),Vector3::NEGATIVE_UNIT_Y));
Ogre::RaySceneQueryResult& qryResult = raySceneQuery->execute();
Ogre::RaySceneQueryResult::iterator i = qryResult.begin();
if (i != qryResult.end() && i->worldFragment)
{
if (mCamera->getPosition().y < i->worldFragment->singleIntersection.y + 30)
{
mCamera->setPosition(mCamera->getPosition().x, i->worldFragment->singleIntersection.y + 30, mCamera->getPosition().z);
}
}

delete raySceneQuery;
Vector3 sunpos = mCaelumSystem->getSun()->getSceneNode()->_getDerivedPosition();
mHydrax->setSunPosition( sunpos );
Ogre::ColourValue colval = mCaelumSystem->getSun()->getBodyColour();
mHydrax->setSunColor(Vector3(colval.r,colval.g,colval.b));
Real height = sunpos.y + 50000.0f;
if(height > 0) {
Ogre::Vector3 color = mHydrax->getWaterColor();
Ogre::ColourValue col( color.x, color.y, color.z, 1.0f );
col.getHSB(&h,&s,&b);
b = height / 230000.0f;
if(b > 0.55f) b = 0.55f;
if(b < 0.02f) b = 0.02f;
col.setHSB(h,s,b);
mHydrax->setWaterColor(Vector3(col.r,col.g,col.b));
}
// Update Hydrax
mHydrax->update(e.timeSinceLastFrame);
// Check for skyboxes switch
mKeyboard->capture();
return true;
}

void UpdateSpeedFactor(double factor)
{
mSpeedFactor = factor;
mCaelumSystem->getUniversalClock ()->setTimeScale (mPaused ? 0 : mSpeedFactor);
}

bool frameEnded(const FrameEvent& evt)
{
if (!ExampleFrameListener::frameEnded(evt)) {
return false;
}

// Stop key repeat for these keys.
mTimeTillNextUpdate -= evt.timeSinceLastFrame;
if (mTimeTillNextUpdate <= 0) {
if (mKeyboard->isKeyDown (OIS::KC_SPACE)) {
mTimeTillNextUpdate = 1;
mPaused = !mPaused;
UpdateSpeedFactor(mSpeedFactor);
}
if (mKeyboard->isKeyDown (OIS::KC_X)) {
mTimeTillNextUpdate = 0.25;
UpdateSpeedFactor(mSpeedFactor / 2);
}
if (mKeyboard->isKeyDown (OIS::KC_C)) {
mTimeTillNextUpdate = 0.25;
UpdateSpeedFactor(mSpeedFactor * 2);
}
if (mKeyboard->isKeyDown (OIS::KC_Z)) {
mTimeTillNextUpdate = 1;
UpdateSpeedFactor(mSpeedFactor * -1);
}
}

return true;
}
};

/** Just to locate palmiers with a pseudo-random algoritm
*/
float seed_ = 801;
float rnd_(const float& min, const float& max)
{
seed_ += Ogre::Math::PI*2.8574f + seed_*(0.3424f - 0.12434f + 0.452345f);
if (seed_ > 10000000000) seed_ -= 10000000000;
return ((max-min)*Ogre::Math::Abs(Ogre::Math::Sin(Ogre::Radian(seed_))) + min);
}

void createPalms(Ogre::SceneManager *mSceneMgr)
{
const int NumberOfPalms = 48;

Ogre::SceneNode* mPalmsSceneNode = mSceneMgr->getRootSceneNode()->createChildSceneNode();

for (int k = 0; k < NumberOfPalms; k++)
{
Ogre::Vector3 RandomPos = Ogre::Vector3(rnd_(500,2500),
0,
rnd_(500,2500));

Ogre::RaySceneQuery * raySceneQuery = mSceneMgr->
createRayQuery(Ogre::Ray(RandomPos + Ogre::Vector3(0,1000000,0),
Ogre::Vector3::NEGATIVE_UNIT_Y));

Ogre::RaySceneQueryResult& qryResult = raySceneQuery->execute();
Ogre::RaySceneQueryResult::iterator i = qryResult.begin();

if (i != qryResult.end() && i->worldFragment)
{
if (i->worldFragment->singleIntersection.y>105 || i->worldFragment->singleIntersection.y<20)
{
k--;
continue;
}

RandomPos.y = i->worldFragment->singleIntersection.y;
}
else
{
k--;
continue;
}

Ogre::Entity *mPalmEnt = mSceneMgr->createEntity("Palm"+Ogre::StringConverter::toString(k), "Palm.mesh");
Ogre::SceneNode *mPalmSN = mPalmsSceneNode->createChildSceneNode();

mPalmSN->rotate(Ogre::Vector3(-1,0,rnd_(-0.3,0.3)), Ogre::Degree(90));
mPalmSN->attachObject(mPalmEnt);
Ogre::Real Scale = rnd_(50,75);
mPalmSN->scale(Scale,Scale,Scale);
mPalmSN->setPosition(RandomPos);
}
}

class SampleApp : public ExampleApplication
{
public:
// Basic constructor
SampleApp()
{}

protected:
void chooseSceneManager()
{
// Create the SceneManager, in this case a generic one
mSceneMgr = mRoot->createSceneManager("TerrainSceneManager");
}

// Just override the mandatory create scene method
void createScene(void)
{
// Set some camera params
mCamera->setFarClipDistance(99999*6);
mCamera->setPosition(312.902,206.419,1524.02);
mCamera->setOrientation(Ogre::Quaternion(0.998, -0.0121, -0.0608, -0.00074));

// Hydrax initialization code ---------------------------------------------
// ------------------------------------------------------------------------

// Create Hydrax object
mHydrax = new Hydrax::Hydrax(mSceneMgr, mCamera, mWindow->getViewport(0));

// Create our projected grid module
Hydrax::Module::ProjectedGrid *mModule
= new Hydrax::Module::ProjectedGrid(// Hydrax parent pointer
mHydrax,
// Noise module
new Hydrax::Noise::Perlin(/*Generic one*/),
// Base plane
Ogre::Plane(Ogre::Vector3(0,1,0), Ogre::Vector3(0,0,0)),
// Normal mode
Hydrax::MaterialManager::NM_VERTEX,
// Projected grid options
Hydrax::Module::ProjectedGrid::Options(/*264 /*Generic one*/));

// Set our module
mHydrax->setModule(static_cast<Hydrax::Module::Module*>(mModule));

// Load all parameters from config file
// Remarks: The config file must be in Hydrax resource group.
// All parameters can be set/updated directly by code(Like previous versions),
// but due to the high number of customizable parameters, since 0.4 version, Hydrax allows save/load config files.
mHydrax->loadCfg("HydraxDemo.hdx");

// Create water
mHydrax->create();

// Hydrax initialization code end -----------------------------------------
// ------------------------------------------------------------------------

// Load island

mSceneMgr->setWorldGeometry("Island.cfg");
mHydrax->getMaterialManager()->addDepthTechnique(
static_cast<Ogre::MaterialPtr>(Ogre::MaterialManager::getSingleton().getByName("Island"))
->createTechnique());
// Create palmiers
createPalms(mSceneMgr);
}

virtual void createFrameListener(void)
{
mFrameListener= new ExampleHydraxDemoListener(mWindow, mCamera, mSceneMgr);
mFrameListener->showDebugOverlay(true);
mRoot->addFrameListener(mFrameListener);
}
};

// ----------------------------------------------------------------------------
// Main function, just boots the application object
// ----------------------------------------------------------------------------

void testAlmostEqual (LongReal x, LongReal y, LongReal d) {
assert (d > 0);
LongReal dif = x - y;
if (dif < 0) {
dif = -dif;
}

std::stringstream stream;
stream.precision (15);
stream.setf(std::ios::fixed);
stream << "Difference is " << dif << ", allowed is " << d;

// Ogre log not created yet. Don't rely on it.
//Ogre::LogManager::getSingleton ().logMessage (stream.str ());
std::cout << stream.str() << std::endl;
assert (dif < d);
}

void checkJulianDay (double jd,
int year, int month, int day,
int hour, int minute, Caelum::LongReal second)
{
int cyear, cmonth, cday, chour, cminute;
LongReal calcJd;
int calcIjd;
LongReal csecond;

// Round-trip integer julian day.
calcIjd = Caelum::Astronomy::getJulianDayFromGregorianDate (year, month, day);
Caelum::Astronomy::getGregorianDateFromJulianDay (calcIjd, cyear, cmonth, cday);
assert (cyear == year);
assert (cmonth == month);
assert (cday == day);

// Check floating-point julian day.
calcJd = Caelum::Astronomy::getJulianDayFromGregorianDateTime
(year, month, day, hour, minute, second);
assert (Ogre::Math::RealEqual (jd, calcJd));

Caelum::Astronomy::getGregorianDateTimeFromJulianDay (calcJd,
cyear, cmonth, cday, chour, cminute, csecond);
assert (cyear == year);
assert (cmonth == month);
assert (cday == day);
assert (chour == hour);
assert (cminute == minute);
// We can lose a lot of precision.
testAlmostEqual (csecond, second, 0.1);
}

void checkSunPosition (
LongReal jday,
LongReal longitude, LongReal latitude,
LongReal azimuth, LongReal altitude)
{
LongReal cazimuth, caltitude;
Caelum::Astronomy::getHorizontalSunPosition (
jday, longitude, latitude, cazimuth, caltitude);
// Allow for large errors.
testAlmostEqual (cazimuth, azimuth, 5);
testAlmostEqual (caltitude, altitude, 5);
}

void checkSunPosition (
int year, int month, int day,
int hour, int minute, LongReal second,
LongReal longitude, LongReal latitude,
LongReal azimuth, LongReal altitude)
{
LongReal jday = Astronomy::getJulianDayFromGregorianDateTime
(year, month, day, hour, minute, second);
checkSunPosition (jday, longitude, latitude, azimuth, altitude);
}

void checkMoonPosition (
LongReal jday,
LongReal longitude, LongReal latitude,
LongReal azimuth, LongReal altitude)
{
LongReal cazimuth, caltitude;
Caelum::Astronomy::getHorizontalMoonPosition (
jday, longitude, latitude, cazimuth, caltitude);
// Allow for large errors.
testAlmostEqual (cazimuth, azimuth, 5);
testAlmostEqual (caltitude, altitude, 5);
}

void checkMoonPosition (
int year, int month, int day,
int hour, int minute, LongReal second,
LongReal longitude, LongReal latitude,
LongReal azimuth, LongReal altitude)
{
LongReal jday = Astronomy::getJulianDayFromGregorianDateTime
(year, month, day, hour, minute, second);
checkMoonPosition (jday, longitude, latitude, azimuth, altitude);
}

void checkAstronomy () {
std::cout << "Testing julian day" << std::endl;
// Tested with http://aa.usno.navy.mil/data/docs/JulianDate.php
checkJulianDay (2451545.0, 2000, 1, 1, 12, 0, 0);
checkJulianDay (2451544.5, 2000, 1, 1, 0, 0, 0);
checkJulianDay (2451544.49994, 1999, 12, 31, 23, 59, 55);
checkJulianDay (2451543.5, 1999, 12, 31, 0, 0, 0);
checkJulianDay (2452986.01094, 2003, 12, 12, 12, 15, 45);
//The Julian date for CE 1976 February 24 01:10:55.0 UT is JD 2442832.54925
checkJulianDay (2442832.54925, 1976, 2, 24, 1, 10, 55);
//The Julian date for CE 1845 November 11 07:03:20.0 UT is JD 2395246.79398
checkJulianDay (2395246.79398, 1845, 11, 11, 7, 3, 20);
//The Julian date for CE 2067 April 1 23:59:59.0 UT is JD 2476107.49999
checkJulianDay (2476107.49999, 2067, 4, 1, 23, 29, 59);

std::cout << "Testing sun position" << std::endl;
// Various javascript calculators on the web.
checkSunPosition (2448000.5, 15, 60, 15.6767, -17.9570);
checkSunPosition (2442832.54925, -15, 3, 185.1, -83.1);
checkSunPosition (2008, 1, 4, 14, 46, 17,
-82.63, 27.97, 136.8552, 24.936968432703356);
checkSunPosition (2000, 12, 3, 12, 34, 0,
-81.70, 41.00, 118.93, -0.84);

// Eclipse test, http://www.satellite-calculations.com/Satellite/suncalc.htm
checkSunPosition (1999, 8, 11, 11, 3, 0,
24.3, 45.1, 197.1877, 60.2837);
checkSunPosition (2005, 2, 1, 3, 4, 5,
1.68, 48.08, 61.4531, -44.5082);

std::cout << "Testing moon position" << std::endl;
checkMoonPosition (1999, 8, 11, 11, 3, 0,
24.3, 45.1, 197.2246, 60.2921);
checkMoonPosition (1995, 6, 3, 18, 10, 0,
1.68, 48.08, 225.1021, 45.8011);
checkMoonPosition (2005, 2, 1, 3, 4, 5,
1.68, 48.08, 147.0071, 24.4169);
}

int main(int argc, char **argv)
{
// Create application object
checkAstronomy();
SampleApp app;
try
{
app.go();
}
catch ( Ogre::Exception& e )
{
std::cerr << "An exception has occured: " << e.getFullDescription();
}

return 0;
}