[SOLVED]Problems running Hydrax 0.5

bmp410

17-03-2009 03:13:34

I am having problems running Hydrax in the game I am creating. I am getting an error on line 74 of the Hydrax.cpp

HydraxLOG("Hydrax created.");

It gives an unhandled exception. Here's the code I am trying to use:


mHydrax = 0;

mHydrax = new Hydrax::Hydrax(root->getSceneManager("Play"), cam, root->getAutoCreatedWindow()->getViewport(0));

Hydrax::Module::ProjectedGrid *mModule
= new Hydrax::Module::ProjectedGrid(// Hydrax parent pointer
mHydrax,

new Hydrax::Noise::Perlin(/*Generic one*/),

Ogre::Plane(Ogre::Vector3(0,1,0), Ogre::Vector3(0,200,0)),

Hydrax::MaterialManager::NM_VERTEX,

Hydrax::Module::ProjectedGrid::Options(/*264 /*Generic one*/));

mHydrax->setModule(static_cast<Hydrax::Module::Module*>(mModule));

mHydrax->loadCfg("FFTBigWaves.hdx");
mHydrax->create();
mHydrax->getMaterialManager()->addDepthTechnique(static_cast<Ogre::MaterialPtr>Ogre::MaterialManager::getSingleton().getByName("level1HeightMap"))->createTechnique());


It errors at the constructor call at the beginning. I am passing it a valid sceneNode, camera and viewport, I just cant figure it out. Please help!

bmp410

17-03-2009 03:44:17

Update: I am not getting any log output from Hydrax. Is there any need to register my log manager with Hydrax somewhere? The #define for HydraxLOG in the Prerequisites.h shows that Hydrax is grabbing the singleton instance of the log manager and using it for output but that is exactly what is causing the error.

bmp410

17-03-2009 06:36:38

Update: I haven't been able to fix my original problem, but I only get this error in debug mode. When in release mode I have the problem of not being able to load the .hdx config file. I get an error on the call to load the config file. Hydrax resource group definitely contains the .hdx. I've spent the last 6 hours trying to figure out this one problem. Any help would be much appreciated!! I'd really like to be able to use Hydrax but as the end of the semester is only 6 weeks away, I cannot afford to spend much more time on trying to get this working. Here's my Ogre.log file from release mode.

01:33:58: Added resource location 'C:/OgreSDK/media/packs/OgreCore.zip' of type 'Zip' to resource group 'Bootstrap'
01:33:58: Added resource location 'C:/OgreSDK/media' of type 'FileSystem' to resource group 'General'
01:33:58: Added resource location 'C:/OgreSDK/media/fonts' of type 'FileSystem' to resource group 'General'
01:33:58: Added resource location 'C:/OgreSDK/media/materials/programs' of type 'FileSystem' to resource group 'General'
01:33:58: Added resource location 'C:/OgreSDK/media/materials/scripts' of type 'FileSystem' to resource group 'General'
01:33:58: Added resource location 'C:/OgreSDK/media/materials/textures' of type 'FileSystem' to resource group 'General'
01:33:58: Added resource location 'C:/OgreSDK/media/models' of type 'FileSystem' to resource group 'General'
01:33:58: Added resource location 'C:/OgreSDK/media/overlays' of type 'FileSystem' to resource group 'General'
01:33:58: Added resource location 'C:/OgreSDK/media/particle' of type 'FileSystem' to resource group 'General'
01:33:58: Added resource location 'C:/OgreSDK/media/gui' of type 'FileSystem' to resource group 'General'
01:33:58: Added resource location 'C:/OgreSDK/media/DeferredShadingMedia' of type 'FileSystem' to resource group 'General'
01:33:58: Added resource location 'C:/OgreSDK/media/PCZAppMedia' of type 'FileSystem' to resource group 'General'
01:33:58: Added resource location '../../resources/character_models' of type 'FileSystem' to resource group 'General'
01:33:58: Added resource location '../../resources/character_models/character_animation' of type 'FileSystem' to resource group 'General'
01:33:58: Added resource location '../../resources/gui' of type 'FileSystem' to resource group 'General'
01:33:58: Added resource location '../../resources/fonts' of type 'FileSystem' to resource group 'General'
01:33:58: Added resource location '../../resources/audio' of type 'FileSystem' to resource group 'General'
01:33:58: Added resource location '../../resources/projectiles' of type 'FileSystem' to resource group 'General'
01:33:58: Added resource location '../../resources/world_objects' of type 'FileSystem' to resource group 'General'
01:33:58: Added resource location '../../resources/Level1' of type 'FileSystem' to resource group 'General'
01:33:58: Added resource location '../../resources/Level2' of type 'FileSystem' to resource group 'General'
01:33:58: Added resource location '../../resources/Level3' of type 'FileSystem' to resource group 'General'
01:33:58: Added resource location 'C:/OgreSDK/media/packs/cubemap.zip' of type 'Zip' to resource group 'General'
01:33:58: Added resource location 'C:/OgreSDK/media/packs/cubemapsJS.zip' of type 'Zip' to resource group 'General'
01:33:58: Added resource location 'C:/OgreSDK/media/packs/dragon.zip' of type 'Zip' to resource group 'General'
01:33:58: Added resource location 'C:/OgreSDK/media/packs/fresneldemo.zip' of type 'Zip' to resource group 'General'
01:33:58: Added resource location 'C:/OgreSDK/media/packs/ogretestmap.zip' of type 'Zip' to resource group 'General'
01:33:58: Added resource location 'C:/OgreSDK/media/packs/skybox.zip' of type 'Zip' to resource group 'General'
01:33:58: Creating resource group Hydrax
01:33:58: Added resource location 'C:/resources/Hydrax/saved' of type 'FileSystem' to resource group 'Hydrax'
01:33:58: Added resource location 'C:/resources/Hydrax/savedenv' of type 'FileSystem' to resource group 'Hydrax'
01:33:58: Added resource location 'C:/resources/Hydrax/textures' of type 'FileSystem' to resource group 'Hydrax'
01:33:58: D3D9 : RenderSystem Option: Allow NVPerfHUD = No
01:33:58: D3D9 : RenderSystem Option: Anti aliasing = None
01:33:58: D3D9 : RenderSystem Option: Floating-point mode = Fastest
01:33:58: D3D9 : RenderSystem Option: Full Screen = No
01:33:58: D3D9 : RenderSystem Option: Rendering Device = ATI Radeon HD 3800 Series
01:33:58: D3D9 : RenderSystem Option: VSync = No
01:33:58: D3D9 : RenderSystem Option: Video Mode = 800 x 600 @ 32-bit colour
01:33:58: D3D9 : RenderSystem Option: sRGB Gamma Conversion = No
01:33:58: CPU Identifier & Features
01:33:58: -------------------------
01:33:58: * CPU ID: GenuineIntel: Intel(R) Core(TM)2 Quad CPU Q9450 @ 2.66GHz
01:33:58: * SSE: yes
01:33:58: * SSE2: yes
01:33:58: * SSE3: yes
01:33:58: * MMX: yes
01:33:58: * MMXEXT: yes
01:33:58: * 3DNOW: no
01:33:58: * 3DNOWEXT: no
01:33:58: * CMOV: yes
01:33:58: * TSC: yes
01:33:58: * FPU: yes
01:33:58: * PRO: yes
01:33:58: * HT: no
01:33:58: -------------------------
01:33:58: D3D9 : Subsystem Initialising
01:33:58: D3D9RenderSystem::_createRenderWindow "Steam Bout", 800x600 windowed miscParams: FSAA=0 FSAAQuality=0 colourDepth=32 gamma=false useNVPerfHUD=false vsync=false
01:33:58: D3D9 : Created D3D9 Rendering Window 'Steam Bout' : 800x600, 32bpp
01:33:58: D3D9 : WARNING - disabling VSync in windowed mode can cause timing issues at lower frame rates, turn VSync on if you observe this problem.
01:33:58: Registering ResourceManager for type Texture
01:33:58: Registering ResourceManager for type GpuProgram
01:33:58: D3D9: Vertex texture format supported - PF_L8
01:33:58: D3D9: Vertex texture format supported - PF_L16
01:33:58: D3D9: Vertex texture format supported - PF_A8
01:33:58: D3D9: Vertex texture format supported - PF_A4L4
01:33:58: D3D9: Vertex texture format supported - PF_BYTE_LA
01:33:58: D3D9: Vertex texture format supported - PF_R5G6B5
01:33:58: D3D9: Vertex texture format supported - PF_B5G6R5
01:33:58: D3D9: Vertex texture format supported - PF_A4R4G4B4
01:33:58: D3D9: Vertex texture format supported - PF_A1R5G5B5
01:33:58: D3D9: Vertex texture format supported - PF_A8R8G8B8
01:33:58: D3D9: Vertex texture format supported - PF_B8G8R8A8
01:33:58: D3D9: Vertex texture format supported - PF_A2R10G10B10
01:33:58: D3D9: Vertex texture format supported - PF_A2B10G10R10
01:33:58: D3D9: Vertex texture format supported - PF_DXT1
01:33:58: D3D9: Vertex texture format supported - PF_DXT2
01:33:58: D3D9: Vertex texture format supported - PF_DXT3
01:33:58: D3D9: Vertex texture format supported - PF_DXT4
01:33:58: D3D9: Vertex texture format supported - PF_DXT5
01:33:58: D3D9: Vertex texture format supported - PF_FLOAT16_RGB
01:33:58: D3D9: Vertex texture format supported - PF_FLOAT16_RGBA
01:33:58: D3D9: Vertex texture format supported - PF_FLOAT32_RGB
01:33:58: D3D9: Vertex texture format supported - PF_FLOAT32_RGBA
01:33:58: D3D9: Vertex texture format supported - PF_X8R8G8B8
01:33:58: D3D9: Vertex texture format supported - PF_X8B8G8R8
01:33:58: D3D9: Vertex texture format supported - PF_R8G8B8A8
01:33:58: D3D9: Vertex texture format supported - PF_DEPTH
01:33:58: D3D9: Vertex texture format supported - PF_SHORT_RGBA
01:33:58: D3D9: Vertex texture format supported - PF_FLOAT16_R
01:33:58: D3D9: Vertex texture format supported - PF_FLOAT32_R
01:33:58: D3D9: Vertex texture format supported - PF_SHORT_GR
01:33:58: D3D9: Vertex texture format supported - PF_FLOAT16_GR
01:33:58: D3D9: Vertex texture format supported - PF_FLOAT32_GR
01:33:58: D3D9: Vertex texture format supported - PF_SHORT_RGB
01:33:58: RenderSystem capabilities
01:33:58: -------------------------
01:33:58: RenderSystem Name: Direct3D9 Rendering Subsystem
01:33:58: GPU Vendor: ati
01:33:58: Device Name: ATI Radeon HD 3800 Series
01:33:58: Driver Version: 6.14.10.6891
01:33:58: * Fixed function pipeline: yes
01:33:58: * Hardware generation of mipmaps: yes
01:33:58: * Texture blending: yes
01:33:58: * Anisotropic texture filtering: yes
01:33:58: * Dot product texture operation: yes
01:33:58: * Cube mapping: yes
01:33:58: * Hardware stencil buffer: yes
01:33:58: - Stencil depth: 8
01:33:58: - Two sided stencil support: yes
01:33:58: - Wrap stencil values: yes
01:33:58: * Hardware vertex / index buffers: yes
01:33:58: * Vertex programs: yes
01:33:58: * Fragment programs: yes
01:33:58: * Geometry programs: no
01:33:58: * Supported Shader Profiles: hlsl ps_1_1 ps_1_2 ps_1_3 ps_1_4 ps_2_0 ps_2_a ps_2_b ps_2_x ps_3_0 vs_1_1 vs_2_0 vs_2_a vs_2_x vs_3_0
01:33:58: * Texture Compression: yes
01:33:58: - DXT: yes
01:33:58: - VTC: no
01:33:58: * Scissor Rectangle: yes
01:33:58: * Hardware Occlusion Query: yes
01:33:58: * User clip planes: yes
01:33:58: * VET_UBYTE4 vertex element type: yes
01:33:58: * Infinite far plane projection: yes
01:33:58: * Hardware render-to-texture: yes
01:33:58: * Floating point textures: yes
01:33:58: * Non-power-of-two textures: yes
01:33:58: * Volume textures: yes
01:33:58: * Multiple Render Targets: 4
01:33:58: - With different bit depths: yes
01:33:58: * Point Sprites: yes
01:33:58: * Extended point parameters: yes
01:33:58: * Max Point Size: 256
01:33:58: * Vertex texture fetch: yes
01:33:58: - Max vertex textures: 4
01:33:58: - Vertex textures shared: no
01:33:58: * Render to Vertex Buffer : no
01:33:58: * DirectX per stage constants: yes
01:33:58: ***************************************
01:33:58: *** D3D9 : Subsystem Initialised OK ***
01:33:58: ***************************************
01:33:58: ResourceBackgroundQueue - threading disabled
01:33:58: Particle Renderer Type 'billboard' registered
01:33:58: SceneManagerFactory for type 'BspSceneManager' registered.
01:33:58: Registering ResourceManager for type BspLevel
01:33:58: SceneManagerFactory for type 'PCZSceneManager' registered.
01:33:58: MovableObjectFactory for type 'PCZLight' registered.
01:33:58: PCZone Factory Type 'ZoneType_Octree' registered
01:33:58: PCZone Factory Type 'ZoneType_Terrain' registered
01:33:58: SceneManagerFactory for type 'OctreeSceneManager' registered.
01:33:58: SceneManagerFactory for type 'TerrainSceneManager' registered.
01:33:58: Loading resource group 'Hydrax' - Resources: 1 World Geometry: 1
01:33:58: Finished loading resource group Hydrax
01:33:58: Parsing scripts for resource group Autodetect
01:33:58: Finished parsing scripts for resource group Autodetect
01:33:58: Parsing scripts for resource group Bootstrap
01:33:58: Parsing script OgreCore.material
01:33:58: Parsing script OgreProfiler.material
01:33:58: Parsing script Ogre.fontdef
01:33:58: Parsing script OgreDebugPanel.overlay
01:33:58: Texture: New_Ogre_Border_Center.png: Loading 1 faces(PF_A8R8G8B8,256x128x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
01:33:58: Texture: New_Ogre_Border.png: Loading 1 faces(PF_A8R8G8B8,256x256x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
01:33:58: Texture: New_Ogre_Border_Break.png: Loading 1 faces(PF_A8R8G8B8,32x32x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
01:33:58: Font BlueHighwayusing texture size 512x512
01:33:58: Info: Freetype returned null for character 127 in font BlueHighway
01:33:58: Info: Freetype returned null for character 128 in font BlueHighway
01:33:58: Info: Freetype returned null for character 129 in font BlueHighway
01:33:58: Info: Freetype returned null for character 130 in font BlueHighway
01:33:58: Info: Freetype returned null for character 131 in font BlueHighway
01:33:58: Info: Freetype returned null for character 132 in font BlueHighway
01:33:58: Info: Freetype returned null for character 133 in font BlueHighway
01:33:58: Info: Freetype returned null for character 134 in font BlueHighway
01:33:58: Info: Freetype returned null for character 135 in font BlueHighway
01:33:58: Info: Freetype returned null for character 136 in font BlueHighway
01:33:58: Info: Freetype returned null for character 137 in font BlueHighway
01:33:58: Info: Freetype returned null for character 138 in font BlueHighway
01:33:58: Info: Freetype returned null for character 139 in font BlueHighway
01:33:58: Info: Freetype returned null for character 140 in font BlueHighway
01:33:58: Info: Freetype returned null for character 141 in font BlueHighway
01:33:58: Info: Freetype returned null for character 142 in font BlueHighway
01:33:58: Info: Freetype returned null for character 143 in font BlueHighway
01:33:58: Info: Freetype returned null for character 144 in font BlueHighway
01:33:58: Info: Freetype returned null for character 145 in font BlueHighway
01:33:58: Info: Freetype returned null for character 146 in font BlueHighway
01:33:58: Info: Freetype returned null for character 147 in font BlueHighway
01:33:58: Info: Freetype returned null for character 148 in font BlueHighway
01:33:58: Info: Freetype returned null for character 149 in font BlueHighway
01:33:58: Info: Freetype returned null for character 150 in font BlueHighway
01:33:58: Info: Freetype returned null for character 151 in font BlueHighway
01:33:58: Info: Freetype returned null for character 152 in font BlueHighway
01:33:58: Info: Freetype returned null for character 153 in font BlueHighway
01:33:58: Info: Freetype returned null for character 154 in font BlueHighway
01:33:58: Info: Freetype returned null for character 155 in font BlueHighway
01:33:58: Info: Freetype returned null for character 156 in font BlueHighway
01:33:58: Info: Freetype returned null for character 157 in font BlueHighway
01:33:58: Info: Freetype returned null for character 158 in font BlueHighway
01:33:58: Info: Freetype returned null for character 159 in font BlueHighway
01:33:58: Info: Freetype returned null for character 160 in font BlueHighway
01:33:58: Texture: BlueHighwayTexture: Loading 1 faces(PF_BYTE_LA,512x512x1) with 0 generated mipmaps from Image. Internal format is PF_BYTE_LA,512x512x1.
01:33:58: Texture: ogretext.png: Loading 1 faces(PF_A8R8G8B8,256x128x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
01:33:58: Parsing script OgreLoadingPanel.overlay
01:33:58: Finished parsing scripts for resource group Bootstrap
01:33:58: Parsing scripts for resource group General
01:33:58: Parsing script Examples.program
01:33:58: Parsing script StdQuad_vp.program
01:33:58: Parsing script deferred.glsl.program
01:33:58: Parsing script deferred.hlsl.program
01:33:58: Parsing script deferred.program
01:33:58: Parsing script deferred_post_ambient.program
01:33:58: Parsing script deferred_post_debug.glsl.program
01:33:58: Parsing script deferred_post_debug.hlsl.program
01:33:58: Parsing script deferred_post_debug.program
01:33:58: Parsing script deferred_post_minilight.glsl.program
01:33:58: Parsing script deferred_post_minilight.hlsl.program
01:33:58: OGRE EXCEPTION(2:InvalidParametersException): Parameter called lightFalloff does not exist. in GpuProgramParameters::_findNamedConstantDefinition at ..\src\OgreGpuProgram.cpp (line 1097)
01:33:58: Compiler error: invalid parameters in deferred_post_minilight.hlsl.program(27): setting of constant failed
01:33:58: Parsing script deferred_post_minilight.program
01:33:58: Parsing script deferred_post_multipass.glsl.program
01:33:58: Parsing script deferred_post_multipass.hlsl.program
01:33:58: Parsing script deferred_post_onepass.glsl.program
01:33:58: Parsing script deferred_post_onepass.hlsl.program
01:33:58: Parsing script deferred_post_vs.program
01:33:58: Parsing script ASCII.material
01:33:58: Parsing script ASMSwizzle.material
01:33:58: Compiler error: object unsupported by render system in ASMSwizzle.material(1)
01:33:58: Parsing script BlackAndWhite.material
01:33:58: Parsing script Bloom.material
01:33:58: Parsing script Bloom2.material
01:33:58: Parsing script CGSwizzle.material
01:33:58: Parsing script DepthShadowmap.material
01:33:58: Parsing script Dither.material
01:33:58: Parsing script DOF.material
01:33:58: Parsing script Embossed.material
01:33:58: Parsing script Example-DynTex.material
01:33:58: Parsing script Example-Water.material
01:33:58: Parsing script Example.material
01:33:59: OGRE EXCEPTION(2:InvalidParametersException): Parameter called camObjPos does not exist. in GpuProgramParameters::_findNamedConstantDefinition at ..\src\OgreGpuProgram.cpp (line 1097)
01:33:59: Compiler error: invalid parameters in Example.material(762): setting of constant failed
01:33:59: Parsing script Examples-Advanced.material
01:33:59: Parsing script facial.material
01:33:59: Parsing script Glass.material
01:33:59: Parsing script GLSLSwizzle.material
01:33:59: Parsing script Halftone.material
01:33:59: Parsing script hdr.material
01:33:59: Parsing script HeatVision.material
01:33:59: Parsing script Hurt.material
01:33:59: Parsing script instancing.material
01:33:59: Parsing script Invert.material
01:33:59: Parsing script IsoSurf.material
01:33:59: Parsing script Laplace.material
01:33:59: Parsing script MotionBlur.material
01:33:59: Parsing script MRTtest.material
01:33:59: Parsing script NightVision.material
01:33:59: Parsing script Ocean.material
01:33:59: Parsing script OffsetMapping.material
01:33:59: Parsing script Ogre.material
01:33:59: Parsing script OldMovie.material
01:33:59: Parsing script OldTV.material
01:33:59: Parsing script ParticleGS.material
01:33:59: OGRE EXCEPTION(7:InternalErrorException): Unable to compile Cg program Ogre/ParticleGS/GenerateVS: CG ERROR : The compile returned an error.
(0) : error C6015: Output 'POSITION' not completely written
in CgProgram::loadFromSource at ..\src\OgreCgProgramManagerDll.cpp (line 66)
01:33:59: High-level program Ogre/ParticleGS/GenerateVS encountered an error during loading and is thus not supported.
OGRE EXCEPTION(7:InternalErrorException): Unable to compile Cg program Ogre/ParticleGS/GenerateVS: CG ERROR : The compile returned an error.
(0) : error C6015: Output 'POSITION' not completely written
in CgProgram::loadFromSource at ..\src\OgreCgProgramManagerDll.cpp (line 66)
01:33:59: OGRE EXCEPTION(7:InternalErrorException): Unable to compile Cg program Ogre/ParticleGS/DisplayVS: CG ERROR : The compile returned an error.
(249) : warning C7050: "output.color" might be used before being initialized
(0) : error C6015: Output 'POSITION' not completely written
in CgProgram::loadFromSource at ..\src\OgreCgProgramManagerDll.cpp (line 66)
01:33:59: High-level program Ogre/ParticleGS/DisplayVS encountered an error during loading and is thus not supported.
OGRE EXCEPTION(7:InternalErrorException): Unable to compile Cg program Ogre/ParticleGS/DisplayVS: CG ERROR : The compile returned an error.
(249) : warning C7050: "output.color" might be used before being initialized
(0) : error C6015: Output 'POSITION' not completely written
in CgProgram::loadFromSource at ..\src\OgreCgProgramManagerDll.cpp (line 66)
01:33:59: OGRE EXCEPTION(7:InternalErrorException): Unable to compile Cg program Ogre/ParticleGS/DisplayPS: CG ERROR : The compile returned an error.
(323) : fatal error C9999: unexpected cast operation
in CgProgram::loadFromSource at ..\src\OgreCgProgramManagerDll.cpp (line 66)
01:33:59: High-level program Ogre/ParticleGS/DisplayPS encountered an error during loading and is thus not supported.
OGRE EXCEPTION(7:InternalErrorException): Unable to compile Cg program Ogre/ParticleGS/DisplayPS: CG ERROR : The compile returned an error.
(323) : fatal error C9999: unexpected cast operation
in CgProgram::loadFromSource at ..\src\OgreCgProgramManagerDll.cpp (line 66)
01:33:59: Parsing script Posterize.material
01:33:59: Parsing script pssm.material
01:33:59: Parsing script RadialBlur.material
01:33:59: Parsing script RZR-002.material
01:33:59: Parsing script SharpenEdges.material
01:33:59: Parsing script smoke.material
01:33:59: Parsing script Tiling.material
01:33:59: Parsing script VarianceShadowmap.material
01:33:59: Parsing script deferred.material
01:33:59: Parsing script deferreddemo.material
01:33:59: Parsing script deferred_post_ambient.material
01:33:59: Parsing script deferred_post_debug.material
01:33:59: Parsing script deferred_post_minilight.material
01:33:59: Parsing script deferred_post_multipass.material
01:33:59: Parsing script deferred_post_onepass.material
01:33:59: Parsing script ROOM.material
01:33:59: Parsing script tim852walk.material
01:33:59: Parsing script RomanBath.material
01:33:59: Parsing script emitted_emitter.particle
01:33:59: Parsing script Example-Water.particle
01:33:59: Parsing script Example.particle
01:34:00: Parsing script smoke.particle
01:34:00: Parsing script Examples.compositor
01:34:00: Parsing script deferred.compositor
01:34:00: Parsing script sample.fontdef
01:34:00: Parsing script Compositor.overlay
01:34:00: Parsing script DP3.overlay
01:34:00: Parsing script Example-CubeMapping.overlay
01:34:00: Parsing script Example-DynTex.overlay
01:34:00: Parsing script Example-Water.overlay
01:34:00: Parsing script Shadows.overlay
01:34:00: Finished parsing scripts for resource group General
01:34:00: Parsing scripts for resource group Internal
01:34:00: Finished parsing scripts for resource group Internal
01:34:00: TerrainSceneManager: Registered a new PageSource for type Heightmap
01:34:01: TerrainSceneManager: Registered a new PageSource for type Heightmap
01:34:01: Texture: clouds.jpg: Loading 1 faces(PF_R8G8B8,256x256x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
01:34:01: TerrainSceneManager: Activated PageSource Heightmap
01:34:03: Texture: level1Texture.png: Loading 1 faces(PF_R8G8B8,4096x4096x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,4096x4096x1.
01:34:03: Texture: terrain_detail.jpg: Loading 1 faces(PF_R8G8B8,256x256x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
01:34:04: [Hydrax] Hydrax created.

al2950

17-03-2009 08:59:54

Everything you have posted looks fine. You do not need to register a logger seperatley with Hydrax it does that for you. The log file shows no errors that should cause any problems so i am afraid i am not sure if anyone will be able to help you! I dont think the porblem is with the config file as you would expect a few more log outputs before it get there.

A few quick questions:
Are you using the ogre sampleApp framework? (It does not look like you are)
Are you using any printf's anywhere!?
Does it work if you do not load the config file?

Angus

bmp410

17-03-2009 16:02:15


A few quick questions:
Are you using the ogre sampleApp framework? (It does not look like you are)
Are you using any printf's anywhere!?
Does it work if you do not load the config file?

Angus



I am using my own framework. Printf is not being used and if I do not load the config file I get an error on the addDepthTechnique() call. It just seems like the resources are just not being loaded at all. I will try it out with the example application framework to see if that works.

Am I compiling the Hydrax.lib correctly? I simply open up the Hydrax.sln, right click on the Hydrax project and click build to generate the .lib and .dll. Is there anything you need to do differently to run in debug mode?

al2950

18-03-2009 09:03:39

You do not need to do anything special to compile hydrax in Debug.

If hydrax cant find the hydrax config file it should just carry on with the default settings. If it works in release i would try and copy over resourses.cfg from release to the debug directory, but apart from that i have no idea! Sorry!

Angus

*EDIT*

If it works in release i would keep it, I disable Hydrax in Debug anyway as the performance is quite painfully bad!

bmp410

01-04-2009 03:03:35

I cannot get it to load the .hdx config file at all. If I do not load the config file then I see no water.