strange difference in release and debug

robindegen

06-05-2009 11:53:08

imagehelper.cpp is still part of the visual studio 2008 project file in the trunk. Just thought i'd let you know :)

Anyway, to my question.. In debug mode, everything looks fine. An image should say more then a 1000 words:

debug:


release


The problem exists in both directx and opengl. I'm using the trunk because of an earlier problem with the release (assert failed) Any idea what is going on here? Thanks

edit:
The ogre log as requested:
14:17:23: Creating resource group General
14:17:23: Creating resource group Internal
14:17:23: Creating resource group Autodetect
14:17:23: SceneManagerFactory for type 'DefaultSceneManager' registered.
14:17:23: Registering ResourceManager for type Material
14:17:23: Registering ResourceManager for type Mesh
14:17:23: Registering ResourceManager for type Skeleton
14:17:23: MovableObjectFactory for type 'ParticleSystem' registered.
14:17:23: OverlayElementFactory for type Panel registered.
14:17:23: OverlayElementFactory for type BorderPanel registered.
14:17:23: OverlayElementFactory for type TextArea registered.
14:17:23: Registering ResourceManager for type Font
14:17:23: ArchiveFactory for archive type FileSystem registered.
14:17:23: ArchiveFactory for archive type Zip registered.
14:17:23: FreeImage version: 3.10.0
14:17:23: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
14:17:23: 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
14:17:23: DDS codec registering
14:17:23: Registering ResourceManager for type HighLevelGpuProgram
14:17:23: Registering ResourceManager for type Compositor
14:17:23: MovableObjectFactory for type 'Entity' registered.
14:17:23: MovableObjectFactory for type 'Light' registered.
14:17:23: MovableObjectFactory for type 'BillboardSet' registered.
14:17:23: MovableObjectFactory for type 'ManualObject' registered.
14:17:23: MovableObjectFactory for type 'BillboardChain' registered.
14:17:23: MovableObjectFactory for type 'RibbonTrail' registered.
14:17:23: OGRE EXCEPTION(6:FileNotFoundException): 'plugins.cfg' file not found! in ConfigFile::load at ..\src\OgreConfigFile.cpp (line 84)
14:17:23: plugins.cfg not found, automatic plugin loading disabled.
14:17:23: *-*-* OGRE Initialising
14:17:23: *-*-* Version 1.6.1 (Shoggoth)
14:17:23: Loading library Plugin_OctreeSceneManager.dll
14:17:23: Installing plugin: Octree & Terrain Scene Manager
14:17:23: Plugin successfully installed
14:17:23: Loading library RenderSystem_Direct3D9.dll
14:17:23: Installing plugin: D3D9 RenderSystem
14:17:23: D3D9 : Direct3D9 Rendering Subsystem created.
14:17:23: D3D9: Driver Detection Starts
14:17:23: D3D9: Driver Detection Ends
14:17:23: Plugin successfully installed
14:17:23: Loading library Plugin_CgProgramManager.dll
14:17:23: Installing plugin: Cg Program Manager
14:17:24: Plugin successfully installed
14:17:24: CPU Identifier & Features
14:17:24: -------------------------
14:17:24: * CPU ID: GenuineIntel: Intel(R) Core(TM)2 Duo CPU P7350 @ 2.00GHz
14:17:24: * SSE: yes
14:17:24: * SSE2: yes
14:17:24: * SSE3: yes
14:17:24: * MMX: yes
14:17:24: * MMXEXT: yes
14:17:24: * 3DNOW: no
14:17:24: * 3DNOWEXT: no
14:17:24: * CMOV: yes
14:17:24: * TSC: yes
14:17:24: * FPU: yes
14:17:24: * PRO: yes
14:17:24: * HT: no
14:17:24: -------------------------
14:17:24: D3D9 : Subsystem Initialising
14:17:24: ***************************************
14:17:24: *** D3D9 : Subsystem Initialised OK ***
14:17:24: ***************************************
14:17:24: D3D9 : Created D3D9 Rendering Window 'Aeon3D Engine' : 800x600, 32bpp
14:17:24: D3D9 : WARNING - disabling VSync in windowed mode can cause timing issues at lower frame rates, turn VSync on if you observe this problem.
14:17:24: Registering ResourceManager for type Texture
14:17:24: Registering ResourceManager for type GpuProgram
14:17:24: D3D9: Vertex texture format supported - PF_FLOAT16_RGB
14:17:24: D3D9: Vertex texture format supported - PF_FLOAT16_RGBA
14:17:24: D3D9: Vertex texture format supported - PF_FLOAT32_RGB
14:17:24: D3D9: Vertex texture format supported - PF_FLOAT32_RGBA
14:17:24: D3D9: Vertex texture format supported - PF_FLOAT16_R
14:17:24: D3D9: Vertex texture format supported - PF_FLOAT32_R
14:17:24: D3D9: Vertex texture format supported - PF_FLOAT16_GR
14:17:24: D3D9: Vertex texture format supported - PF_FLOAT32_GR
14:17:24: RenderSystem capabilities
14:17:24: -------------------------
14:17:24: RenderSystem Name: Direct3D9 Rendering Subsystem
14:17:24: GPU Vendor: nvidia
14:17:24: Device Name: NVIDIA GeForce 9600M GT
14:17:24: Driver Version: 6.14.11.8568
14:17:24: * Fixed function pipeline: yes
14:17:24: * Hardware generation of mipmaps: yes
14:17:24: * Texture blending: yes
14:17:24: * Anisotropic texture filtering: yes
14:17:24: * Dot product texture operation: yes
14:17:24: * Cube mapping: yes
14:17:24: * Hardware stencil buffer: yes
14:17:24: - Stencil depth: 8
14:17:24: - Two sided stencil support: yes
14:17:24: - Wrap stencil values: yes
14:17:24: * Hardware vertex / index buffers: yes
14:17:24: * Vertex programs: yes
14:17:24: * Fragment programs: yes
14:17:24: * Geometry programs: no
14:17:24: * 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
14:17:24: * Texture Compression: yes
14:17:24: - DXT: yes
14:17:24: - VTC: no
14:17:24: * Scissor Rectangle: yes
14:17:24: * Hardware Occlusion Query: yes
14:17:24: * User clip planes: yes
14:17:24: * VET_UBYTE4 vertex element type: yes
14:17:24: * Infinite far plane projection: yes
14:17:24: * Hardware render-to-texture: yes
14:17:24: * Floating point textures: yes
14:17:24: * Non-power-of-two textures: yes
14:17:24: * Volume textures: yes
14:17:24: * Multiple Render Targets: 4
14:17:24: - With different bit depths: yes
14:17:24: * Point Sprites: yes
14:17:24: * Extended point parameters: yes
14:17:24: * Max Point Size: 8192
14:17:24: * Vertex texture fetch: yes
14:17:24: - Max vertex textures: 4
14:17:24: - Vertex textures shared: no
14:17:24: * Render to Vertex Buffer : no
14:17:24: * DirectX per stage constants: yes
14:17:24: ResourceBackgroundQueue - threading disabled
14:17:24: Particle Renderer Type 'billboard' registered
14:17:24: SceneManagerFactory for type 'OctreeSceneManager' registered.
14:17:24: SceneManagerFactory for type 'TerrainSceneManager' registered.
14:17:24: Creating resource group Caelum
14:17:24: Added resource location 'data/caelum' of type 'FileSystem' to resource group 'Caelum'
14:17:24: Added resource location 'data/models' of type 'FileSystem' to resource group 'General'
14:17:24: Added resource location 'data/levels' of type 'FileSystem' to resource group 'General'
14:17:24: Added resource location 'data/materials/shaders' of type 'FileSystem' to resource group 'General'
14:17:24: Added resource location 'data/materials/scripts' of type 'FileSystem' to resource group 'General'
14:17:24: Parsing scripts for resource group Autodetect
14:17:24: Finished parsing scripts for resource group Autodetect
14:17:24: Parsing scripts for resource group Caelum
14:17:24: Parsing script DepthRender.program
14:17:24: Parsing script GroundFog.program
14:17:24: Parsing script Haze.program
14:17:24: Parsing script MinimalCompositorVP.program
14:17:24: Parsing script CaelumSample.material
14:17:24: Parsing script DepthComposer.material
14:17:24: Parsing script GroundFog.material
14:17:24: Parsing script LayeredClouds.material
14:17:24: Parsing script moon.material
14:17:24: Parsing script PointStarfield.material
14:17:24: Parsing script Precipitation.material
14:17:24: Parsing script SkyDome.material
14:17:24: Parsing script Starfield.material
14:17:24: Parsing script Sun.material
14:17:24: Parsing script DepthComposer.compositor
14:17:24: Parsing script Precipitation.compositor
14:17:24: Finished parsing scripts for resource group Caelum
14:17:24: Parsing scripts for resource group General
14:17:24: Parsing script testmap1.material
14:17:24: Parsing script testmap2.material
14:17:24: Parsing script testmap3.material
14:17:24: Parsing script editor.material
14:17:24: Parsing script sword.material
14:17:24: Parsing script Testmodel.material
14:17:24: Finished parsing scripts for resource group General
14:17:24: Parsing scripts for resource group Internal
14:17:24: Finished parsing scripts for resource group Internal
14:17:24: Caelum: Initialising Caelum system...
14:17:24: Caelum: Plugin not installed; installing now.
14:17:24: Caelum plugin version 0.5.0 installed
14:17:24: Registering ResourceManager for type PropertyScript
14:17:24: Caelum: Creating caelum sub-components.
14:17:24: Texture: EarthClearSky2.png: Loading 1 faces(PF_A8R8G8B8,64x64x1) with 0 generated mipmaps from Image. Internal format is PF_A8R8G8B8,64x64x1.
14:17:24: Texture: AtmosphereDepth.png: Loading 1 faces(PF_R8G8B8,32x1x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,32x1x1.
14:17:24: Caelum: Creating CaelumSphericDome sphere mesh resource...
14:17:24: Caelum: generateSphericDome DONE
14:17:24: Texture: sun_disc.png: Loading 1 faces(PF_A8R8G8B8,128x128x1) with 0 generated mipmaps from Image. Internal format is PF_A8R8G8B8,128x128x1.
14:17:24: D3D9 : Loading 2D Texture, image name : 'moon_disc.dds' with 2147483647 mip map levels
14:17:24: D3D9 : Loading 2D Texture, image name : 'noise1.dds' with 2147483647 mip map levels
14:17:24: D3D9 : Loading 2D Texture, image name : 'noise2.dds' with 2147483647 mip map levels
14:17:24: D3D9 : Loading 2D Texture, image name : 'noise4.dds' with 2147483647 mip map levels
14:17:24: Caelum: DONE initializing
14:17:24: Mesh: Loading Testmodel4.mesh.
14:17:24: Skeleton: Loading Testmodel4.skeleton
14:17:24: Mesh: Loading testmap3.mesh.
14:17:24: WARNING: testmap3.mesh is an older format ([MeshSerializer_v1.30]); you should upgrade it as soon as possible using the OgreMeshUpgrade tool.
14:17:24: Texture: HightechFloor01.jpg: Loading 1 faces(PF_R8G8B8,256x256x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
14:17:24: Texture: HightechWall04.jpg: Loading 1 faces(PF_R8G8B8,256x256x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
14:17:28: *-*-* OGRE Shutdown
14:17:28: Unregistering ResourceManager for type Compositor
14:17:28: Unregistering ResourceManager for type Font
14:17:28: Unregistering ResourceManager for type Skeleton
14:17:28: Unregistering ResourceManager for type Mesh
14:17:28: Unregistering ResourceManager for type HighLevelGpuProgram
14:17:28: Uninstalling plugin: Cg Program Manager
14:17:28: Plugin successfully uninstalled
14:17:28: Unloading library Plugin_CgProgramManager.dll
14:17:28: Uninstalling plugin: D3D9 RenderSystem
14:17:28: D3D9 : Shutting down cleanly.
14:17:28: Unregistering ResourceManager for type Texture
14:17:28: Unregistering ResourceManager for type GpuProgram
14:17:28: D3D9 : Direct3D9 Rendering Subsystem destroyed.
14:17:28: Plugin successfully uninstalled
14:17:28: Unloading library RenderSystem_Direct3D9.dll
14:17:28: Uninstalling plugin: Octree & Terrain Scene Manager
14:17:28: Plugin successfully uninstalled
14:17:28: Unloading library Plugin_OctreeSceneManager.dll
14:17:28: Unregistering ResourceManager for type Material