lightSpecularColor

yuriythebest

18-08-2006 16:07:49

At first everything worked fine but then nothing works- I just get default ogre screen with nothing in it (aka the fps counter, logo). The ogre log has this:


-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named lightSpecularColor.
File: e:\projects\ogrecvs\branches\dagon_vc8_clean\ogrenew\ogremain\src\ogregpuprogram.cpp
Line: 773
Stack unwinding: <<beginning of stack>>
17:29:05: Error at line 29 of deferred_post_minilight.hlsl.program: Invalid param_named_auto attribute - An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named lightSpecularColor.
File: e:\projects\ogrecvs\branches\dagon_vc8_clean\ogrenew\ogremain\src\ogregpuprogram.cpp
Line: 773
Stack unwinding: <<beginning of stack>>
17:29:05: Parsing script deferred_post_multipass.glsl.program
17:29:05: Parsing script deferred_post_multipass.hlsl.program
17:29:05: Parsing script deferred_post_onepass.glsl.program
17:29:05: Parsing script deferred_post_onepass.hlsl.program
17:29:05: Parsing script BlackAndWhite.material
17:29:05: Parsing script Bloom.material
17:29:05: Parsing script DOF.material
17:29:05: Parsing script Embossed.material
17:29:05: Parsing script Example-DynTex.material
17:29:05: Parsing script Example-Water.material
17:29:05: Parsing script Example.material
17:29:05: Parsing script Examples-Advanced.material
17:29:06: Parsing script facial.material
17:29:06: Parsing script Glass.material
17:29:06: Parsing script hdr.material
17:29:06: Parsing script HeatVision.material
17:29:06: Parsing script Hurt.material
17:29:06: Parsing script Invert.material
17:29:06: Parsing script Laplace.material
17:29:06: Parsing script MotionBlur.material
17:29:06: Parsing script Ocean.material
17:29:06: Parsing script OffsetMapping.material
17:29:06: Parsing script Ogre.material
17:29:06: Parsing script OldMovie.material
17:29:06: Parsing script OldTV.material
17:29:06: Parsing script Posterize.material
17:29:06: Parsing script RZR-002.material
17:29:06: Parsing script SharpenEdges.material
17:29:06: Parsing script smoke.material
17:29:06: Parsing script Tiling.material
17:29:06: Parsing script scene.material
17:29:06: Parsing script deferred.material
17:29:07: Parsing script deferreddemo.material
17:29:07: Parsing script deferred_post_debug.material
17:29:07: Parsing script deferred_post_minilight.material
17:29:07: Parsing script deferred_post_multipass.material
17:29:07: Parsing script deferred_post_onepass.material
17:29:07: Parsing script fresnelenviron.material
17:29:07: Parsing script Examples.compositor
17:29:07: Parsing script sample.fontdef
17:29:07: Parsing script Example-Water.particle
17:29:07: Parsing script Example.particle
17:29:07: Parsing script smoke.particle
17:29:07: Parsing script Compositor.overlay
17:29:07: Parsing script DP3.overlay
17:29:07: Parsing script Example-CubeMapping.overlay
17:29:07: Parsing script Example-DynTex.overlay
17:29:07: Parsing script Example-Water.overlay
17:29:07: Parsing script Shadows.overlay
17:29:07: Finished parsing scripts for resource group General
17:29:07: Parsing scripts for resource group Internal
17:29:07: Finished parsing scripts for resource group Internal
17:29:07: ********************************
17:29:07: ** oScene Loader Lib **
17:29:07: ********************************
17:29:07: oSceneLoader: Loading 'scene.osm' file
17:29:07: oSceneLoader: Creating scene on 'Root' node
17:29:07: Mesh: Loading tower.mesh.
17:29:07: Warning: VET_COLOUR element type is deprecated, you should use one of the more specific types to indicate the byte order. Use OgreMeshUpgrade on tower.mesh as soon as possible.
17:29:07: Texture: towerCompleteMap.jpg: Loading 1 faces(PF_B8G8R8,2048x2048x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,2048x2048x1.
17:29:08: Mesh: Loading Box02.mesh.
17:29:08: Warning: VET_COLOUR element type is deprecated, you should use one of the more specific types to indicate the byte order. Use OgreMeshUpgrade on Box02.mesh as soon as possible.
17:29:08: Mesh: Loading Object01.mesh.
17:29:08: Warning: VET_COLOUR element type is deprecated, you should use one of the more specific types to indicate the byte order. Use OgreMeshUpgrade on Object01.mesh as soon as possible.
17:29:08: Texture: GRASS2.JPG: Loading 1 faces(PF_B8G8R8,756x512x1) with 9 generated mipmaps from Image. Internal format is PF_X8R8G8B8,756x512x1.



I did a search for lightspecularcolor but came up with nothing

Lioric

18-08-2006 16:16:05

Use the same RenderSystem used in max in your application

This is mostly because a CG shader is used in HLSL without modifications, or using a different version of the CG Manager