first application in tutorial 0 cannot run

eenuzleaf

14-06-2008 14:35:25

hello, I am just starting using mogre. The first experience is not all pleasant through. I followed the mogre wiki tutorial 0 and build the first mogre program. It builds succesfully, but after I run it by pressing f5, the program crashes when showing "initializing resources". And it is initializing forever.
I opened Ogre.log in the debug folder. It the last line it said is "Parsing script Example.material"
Can anyone tell me what is happening? thanks a lot. :D

Marioko

14-06-2008 19:38:53

you need all the resources (DLLs, materials, and configs) in the same directory of your DLL, or you can copy the generated dll to bin/debug or bin/release folders of MogreSDK.

eenuzleaf

15-06-2008 09:15:36

Thanks but I dont quite understand what you mean...
this is what exactly i have done.
I installed DirectX 10.
then MogreSDK 1.4.6
edited PATH by adding c:/OgreSDK/bin/debug and bin/release
open a new c sharp project added mogre.dll and mogreframework.dll as reference. Copied the cfg files to debug and release of my project
changed the ../../ to c:/OgreSDK/

and after posted this thread I tried let the program run until it ended after five minutes. The latter part of Ogre.log says this


15:55:23: Parsing script Examples.program
15:57:42: OGRE EXCEPTION(7:InternalErrorException): Unable to compile Cg program Ogre/HardwareSkinningTwoWeightsCg: CG ERROR : The compile returned an error.
(272) : fatal error C9999: *** exception during compilation ***
in CgProgram::loadFromSource at ..\src\OgreCgProgramManagerDll.cpp (line 66)
15:57:42: High-level program Ogre/HardwareSkinningTwoWeightsCg encountered an error during loading and is thus not supported.
OGRE EXCEPTION(7:InternalErrorException): Unable to compile Cg program Ogre/HardwareSkinningTwoWeightsCg: CG ERROR : The compile returned an error.
(272) : fatal error C9999: *** exception during compilation ***
in CgProgram::loadFromSource at ..\src\OgreCgProgramManagerDll.cpp (line 66)
15:57:42: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at ..\src\OgreGpuProgram.cpp (line 854)
15:57:42: Error at line 118 of Examples.program: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
15:57:42: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at ..\src\OgreGpuProgram.cpp (line 854)
15:57:42: Error at line 118 of Examples.program: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
15:57:42: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at ..\src\OgreGpuProgram.cpp (line 854)
15:57:42: Error at line 118 of Examples.program: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
15:57:42: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at ..\src\OgreGpuProgram.cpp (line 854)
15:57:42: Error at line 118 of Examples.program: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
15:57:42: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at ..\src\OgreGpuProgram.cpp (line 854)
15:57:42: Error at line 118 of Examples.program: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
15:57:42: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at ..\src\OgreGpuProgram.cpp (line 854)
15:57:42: Error at line 118 of Examples.program: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
15:57:44: Parsing script StdQuad_vp.program
15:57:44: Parsing script deferred.glsl.program
15:57:44: Parsing script deferred.hlsl.program
15:57:45: Parsing script deferred_post_debug.glsl.program
15:57:45: Parsing script deferred_post_debug.hlsl.program
15:57:45: Parsing script deferred_post_minilight.glsl.program
15:57:45: Parsing script deferred_post_minilight.hlsl.program
15:57:45: OGRE EXCEPTION(2:InvalidParametersException): Parameter called lightSpecularColor does not exist. in GpuProgramParameters::_findNamedConstantDefinition at ..\src\OgreGpuProgram.cpp (line 883)
15:57:45: Error at line 29 of deferred_post_minilight.hlsl.program: Invalid param_named_auto attribute - Parameter called lightSpecularColor does not exist.
15:57:45: Parsing script deferred_post_multipass.glsl.program
15:57:45: Parsing script deferred_post_multipass.hlsl.program
15:57:45: Parsing script deferred_post_onepass.glsl.program
15:57:45: Parsing script deferred_post_onepass.hlsl.program
15:57:45: Parsing script BlackAndWhite.material
15:57:45: Parsing script Bloom.material
15:57:46: Parsing script DepthShadowmap.material
15:57:46: Parsing script DOF.material
15:57:46: Parsing script Embossed.material
15:57:46: Parsing script Example-DynTex.material
15:57:46: Parsing script Example-Water.material
15:57:46: Parsing script Example.material
15:59:56: OGRE EXCEPTION(7:InternalErrorException): Unable to compile Cg program Ogre/HardwareSkinningTwoWeightsShadowCasterCg: CG ERROR : The compile returned an error.
(272) : fatal error C9999: *** exception during compilation ***
in CgProgram::loadFromSource at ..\src\OgreCgProgramManagerDll.cpp (line 66)
15:59:57: High-level program Ogre/HardwareSkinningTwoWeightsShadowCasterCg encountered an error during loading and is thus not supported.
OGRE EXCEPTION(7:InternalErrorException): Unable to compile Cg program Ogre/HardwareSkinningTwoWeightsShadowCasterCg: CG ERROR : The compile returned an error.
(272) : fatal error C9999: *** exception during compilation ***
in CgProgram::loadFromSource at ..\src\OgreCgProgramManagerDll.cpp (line 66)
15:59:57: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at ..\src\OgreGpuProgram.cpp (line 854)
15:59:57: Error in material jaiqua at line 994 of Example.material: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
15:59:57: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at ..\src\OgreGpuProgram.cpp (line 854)
15:59:57: Error in material jaiqua at line 995 of Example.material: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
15:59:57: OGRE EXCEPTION(2:InvalidParametersException): This params object is not based on a program with named parameters. in GpuProgramParameters::getConstantDefinitionIterator at ..\src\OgreGpuProgram.cpp (line 854)
15:59:57: Error in material jaiqua at line 996 of Example.material: Invalid param_named_auto attribute - This params object is not based on a program with named parameters.
15:59:58: Parsing script Examples-Advanced.material
16:00:00: OGRE EXCEPTION(7:InternalErrorException): Unable to compile Cg program Examples/BumpMapFP: CG ERROR : The compile returned an error.
(37) : warning C7011: implicit cast from "float4" to "float3"
(86) : warning C7011: implicit cast from "float4" to "float3"
(151) : warning C7011: implicit cast from "float4" to "float3"
(178) : warning C7011: implicit cast from "float4" to "float3"
(236) : fatal error C9999: *** exception during compilation ***
in CgProgram::loadFromSource at ..\src\OgreCgProgramManagerDll.cpp (line 66)
16:00:00: High-level program Examples/BumpMapFP encountered an error during loading and is thus not supported.
OGRE EXCEPTION(7:InternalErrorException): Unable to compile Cg program Examples/BumpMapFP: CG ERROR : The compile returned an error.
(37) : warning C7011: implicit cast from "float4" to "float3"
(86) : warning C7011: implicit cast from "float4" to "float3"
(151) : warning C7011: implicit cast from "float4" to "float3"
(178) : warning C7011: implicit cast from "float4" to "float3"
(236) : fatal error C9999: *** exception during compilation ***
in CgProgram::loadFromSource at ..\src\OgreCgProgramManagerDll.cpp (line 66)
16:00:00: OGRE EXCEPTION(7:InternalErrorException): Unable to compile Cg program Examples/BumpMapFPSpecular: CG ERROR : The compile returned an error.
(37) : warning C7011: implicit cast from "float4" to "float3"
(86) : warning C7011: implicit cast from "float4" to "float3"
(151) : warning C7011: implicit cast from "float4" to "float3"
(178) : warning C7011: implicit cast from "float4" to "float3"
(236) : fatal error C9999: *** exception during compilation ***
in CgProgram::loadFromSource at ..\src\OgreCgProgramManagerDll.cpp (line 66)
16:00:00: High-level program Examples/BumpMapFPSpecular encountered an error during loading and is thus not supported.
OGRE EXCEPTION(7:InternalErrorException): Unable to compile Cg program Examples/BumpMapFPSpecular: CG ERROR : The compile returned an error.
(37) : warning C7011: implicit cast from "float4" to "float3"
(86) : warning C7011: implicit cast from "float4" to "float3"
(151) : warning C7011: implicit cast from "float4" to "float3"
(178) : warning C7011: implicit cast from "float4" to "float3"
(236) : fatal error C9999: *** exception during compilation ***
in CgProgram::loadFromSource at ..\src\OgreCgProgramManagerDll.cpp (line 66)
16:00:00: OGRE EXCEPTION(7:InternalErrorException): Unable to compile Cg program Examples/BumpMapFPShadowRcv: CG ERROR : The compile returned an error.
(37) : warning C7011: implicit cast from "float4" to "float3"
(86) : warning C7011: implicit cast from "float4" to "float3"
(151) : warning C7011: implicit cast from "float4" to "float3"
(178) : warning C7011: implicit cast from "float4" to "float3"
(236) : fatal error C9999: *** exception during compilation ***
in CgProgram::loadFromSource at ..\src\OgreCgProgramManagerDll.cpp (line 66)
16:00:00: High-level program Examples/BumpMapFPShadowRcv encountered an error during loading and is thus not supported.
OGRE EXCEPTION(7:InternalErrorException): Unable to compile Cg program Examples/BumpMapFPShadowRcv: CG ERROR : The compile returned an error.
(37) : warning C7011: implicit cast from "float4" to "float3"
(86) : warning C7011: implicit cast from "float4" to "float3"
(151) : warning C7011: implicit cast from "float4" to "float3"
(178) : warning C7011: implicit cast from "float4" to "float3"
(236) : fatal error C9999: *** exception during compilation ***
in CgProgram::loadFromSource at ..\src\OgreCgProgramManagerDll.cpp (line 66)
16:00:00: Parsing script facial.material
16:00:00: Parsing script Glass.material
16:00:00: Parsing script hdr.material
16:00:01: Parsing script HeatVision.material
16:00:01: Parsing script Hurt.material
16:00:01: Parsing script instancing.material
16:00:01: Parsing script Invert.material
16:00:01: Parsing script Laplace.material
16:00:02: Parsing script MotionBlur.material
16:00:02: Parsing script Ocean.material
16:00:02: Parsing script OffsetMapping.material
16:00:02: Parsing script Ogre.material
16:00:02: Parsing script OgreNewt_Example.material
16:00:02: Parsing script OldMovie.material
16:00:02: Parsing script OldTV.material
16:00:02: Parsing script Posterize.material
16:00:02: Parsing script RZR-002.material
16:00:02: Parsing script SharpenEdges.material
16:00:02: Parsing script smoke.material
16:00:02: Parsing script Tiling.material
16:00:02: Parsing script VarianceShadowmap.material
16:00:02: Parsing script deferred.material
16:00:02: Parsing script deferreddemo.material
16:00:03: Parsing script deferred_post_debug.material
16:00:03: Parsing script deferred_post_minilight.material
16:00:03: Parsing script deferred_post_multipass.material
16:00:03: Parsing script deferred_post_onepass.material
16:00:03: Parsing script RomanBath.material
16:00:03: Parsing script Examples.compositor
16:00:03: Parsing script sample.fontdef
16:00:03: Parsing script emitted_emitter.particle
16:00:03: Parsing script Example-Water.particle
16:00:03: Parsing script Example.particle
16:00:03: Parsing script smoke.particle
16:00:03: Parsing script Compositor.overlay
16:00:03: Parsing script DP3.overlay
16:00:03: Parsing script Example-CubeMapping.overlay
16:00:03: Parsing script Example-DynTex.overlay
16:00:03: Parsing script Example-Water.overlay
16:00:03: Parsing script Shadows.overlay
16:00:03: Finished parsing scripts for resource group General
16:00:03: Parsing scripts for resource group Internal
16:00:03: Finished parsing scripts for resource group Internal
16:00:07: Creating viewport on target 'Autumn main RenderWindow', rendering from camera 'MainCamera', relative dimensions L: 0.00 T: 0.00 W: 1.00 H: 1.00 ZOrder: 0