Flickering surface

Wiedoo

07-08-2010 02:10:32

Hello,

Im trying to get Hydrax to work within the Advanced Ogre Framework.
I made a test terrain with the new terrain feature from Ogre 1.7 and the code to initialize Hydrax I took from the demo. But the water surface is flickering and looks like its in "fast forward" mode (I hope you can imagine what i mean). And the strange thing is, that underwater everything is like it should be, so the problem is only the water surface.

Here is the configuration file I use:

#Hydrax cfg file.

#Hydrax version field
HydraxVersion=0.5.1

#Main options field
<vector3>Position=-500x1x-500
<float>PlanesError=10.5
#Shader mode: 0=HLSL, 1=CG, 2=GLSL
<int>ShaderMode=0
<float>FullReflectionDistance=1e+011
<float>GlobalTransparency=0
<float>NormalDistortion=0.075
<vector3>WaterColor=0.058209x0.535822x0.679105

#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=2.9
<bool>PG_ChoppyWaves=true
<int>PG_Complexity=264
<float>PG_Elevation=50
<bool>PG_ForceRecalculateGeometry=false
<bool>PG_Smooth=false
<float>PG_Strength=25

#Noise options
Noise=Perlin

<int>Perlin_Octaves=8
<float>Perlin_Scale=0.185
<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


And here the logfile snippet from Hydrax:

02:47:31: [Hydrax] Hydrax created.
02:47:31: [Hydrax] Hydrax.hdx loaded.
02:47:31: [Hydrax] Creating module...
02:47:31: [Hydrax] Creating ProjectedGridVertex module.
02:47:31: [Hydrax] ProjectedGridVertex created.
02:47:31: [Hydrax] Module created.
02:47:31: [Hydrax] Initializating RTT Manager...
02:47:31: [Hydrax] RTT manager initialized.
02:47:31: [Hydrax] Registring device restored listener...
02:47:31: [Hydrax] Device restored listener registred.
02:47:31: [Hydrax] Creating materials...
02:47:31: [Hydrax] Creating water material...
02:47:31: Texture: Fresnel.bmp: Loading 1 faces(PF_L8,256x1x1) with hardware generated mipmaps from Image. Internal format is PF_L8,256x1x1.
02:47:31: Texture: Foam.png: Loading 1 faces(PF_R8G8B8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
02:47:31: [Hydrax] Water material created.
02:47:31: [Hydrax] Creating depth material...
02:47:31: [Hydrax] Depth material created.
02:47:31: [Hydrax] Creating underwater material...
02:47:32: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource HydraxDepthReflectionMap in resource group Hydrax or any other group. in ResourceGroupManager::openResource at ..\..\OgreSource\OgreMain\src\OgreResourceGroupManager.cpp (line 753)
02:47:32: Error loading texture HydraxDepthReflectionMap. Texture layer will be blank. Loading the texture failed with the following exception: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource HydraxDepthReflectionMap in resource group Hydrax or any other group. in ResourceGroupManager::openResource at ..\..\OgreSource\OgreMain\src\OgreResourceGroupManager.cpp (line 753)
02:47:32: Texture: UnderwaterDistortion.jpg: Loading 1 faces(PF_R8G8B8,256x256x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
02:47:32: [Hydrax] Underwater material created.
02:47:32: [Hydrax] Materials created.
02:47:32: [Hydrax] Creating water mesh...
02:47:32: [Hydrax] Water mesh created.


Is the HydraxDepthReflectionMap exception the cause of this problem? I couldnt find a way to get loose of this exception.

Thanks in advance,
Dominik

simk5

13-08-2010 01:03:50


02:47:31: [Hydrax] Creating underwater material...
02:47:32: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource HydraxDepthReflectionMap in resource group Hydrax or any other group. in ResourceGroupManager::openResource at ..\..\OgreSource\OgreMain\src\OgreResourceGroupManager.cpp (line 753)
02:47:32: Error loading texture HydraxDepthReflectionMap. Texture layer will be blank. Loading the texture failed with the following exception: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource HydraxDepthReflectionMap in resource group Hydrax or any other group. in ResourceGroupManager::openResource at ..\..\OgreSource\OgreMain\src\OgreResourceGroupManager.cpp (line 753)



Hi
I've got the same problem here when using MHydrax.

Cannot locate resource HydraxDepthReflectionMap in resource group Hydrax or any other group. in ResourceGroupManager::openResource at ..\..\OgreSource\OgreMain\src\OgreResourceGroupManager.cpp

note: [Hydrax] directory is already added in resource.cfg
anyone can help?