[HELP] MapEditor

Jeff_Gos

16-10-2005 16:35:55

I've got the PLSM2 demo and dll to compile and run perfectly

Mapeditor.exe also compiles fine,
but when i run it, I get an exception being thrown

The Ogre.log file says this:

17:23:23: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named lightDirection.
File: \SoftwareDevelopment\C++\OgreSDK\ogrenew\OgreMain\src\OgreGpuProgram.cpp
Line: 584
Stack unwinding: <<beginning of stack>>
17:23:23: Error in material InstantBaseMaterialVertexShaded at line 54 of BaseTexture.material: Invalid param_named_auto attribute - An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named lightDirection.
File: \SoftwareDevelopment\C++\OgreSDK\ogrenew\OgreMain\src\OgreGpuProgram.cpp
Line: 584
Stack unwinding: <<beginning of stack>>
17:23:23: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named ambientLight.
File: \SoftwareDevelopment\C++\OgreSDK\ogrenew\OgreMain\src\OgreGpuProgram.cpp
Line: 584
Stack unwinding: <<beginning of stack>>
17:23:23: Error in material InstantBaseMaterialVertexShaded at line 55 of BaseTexture.material: Invalid param_named_auto attribute - An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named ambientLight.
File: \SoftwareDevelopment\C++\OgreSDK\ogrenew\OgreMain\src\OgreGpuProgram.cpp
Line: 584
Stack unwinding: <<beginning of stack>>
17:23:23: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named lightDirection.
File: \SoftwareDevelopment\C++\OgreSDK\ogrenew\OgreMain\src\OgreGpuProgram.cpp
Line: 584
Stack unwinding: <<beginning of stack>>
17:23:23: Error in material InstantBaseMaterialVertexPixelShaded at line 98 of BaseTexture.material: Invalid param_named_auto attribute - An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named lightDirection.
File: \SoftwareDevelopment\C++\OgreSDK\ogrenew\OgreMain\src\OgreGpuProgram.cpp
Line: 584
Stack unwinding: <<beginning of stack>>
17:23:23: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named ambientLight.
File: \SoftwareDevelopment\C++\OgreSDK\ogrenew\OgreMain\src\OgreGpuProgram.cpp
Line: 584
Stack unwinding: <<beginning of stack>>
17:23:23: Error in material InstantBaseMaterialVertexPixelShaded at line 99 of BaseTexture.material: Invalid param_named_auto attribute - An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named ambientLight.
File: \SoftwareDevelopment\C++\OgreSDK\ogrenew\OgreMain\src\OgreGpuProgram.cpp
Line: 584
Stack unwinding: <<beginning of stack>>
17:23:23: Parsing script PagingLandScape.material
17:23:23: Parsing script PagingLandScapeTemplate.material
17:23:23: Parsing script Splatting.material
17:23:23: Parsing script Splatting2.material
17:23:23: Parsing script Splatting3.material
17:23:23: Parsing script Splatting4.material
17:23:23: Parsing script Splatting5.material
17:23:23: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named lightDirection.
File: \SoftwareDevelopment\C++\OgreSDK\ogrenew\OgreMain\src\OgreGpuProgram.cpp
Line: 584
Stack unwinding: <<beginning of stack>>
17:23:23: Error in material SplattingMaterial5Decompress at line 10 of Splatting5.material: Invalid param_named_auto attribute - An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named lightDirection.
File: \SoftwareDevelopment\C++\OgreSDK\ogrenew\OgreMain\src\OgreGpuProgram.cpp
Line: 584
Stack unwinding: <<beginning of stack>>
17:23:23: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named ambientLight.
File: \SoftwareDevelopment\C++\OgreSDK\ogrenew\OgreMain\src\OgreGpuProgram.cpp
Line: 584
Stack unwinding: <<beginning of stack>>
17:23:23: Error in material SplattingMaterial5Decompress at line 11 of Splatting5.material: Invalid param_named_auto attribute - An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named ambientLight.
File: \SoftwareDevelopment\C++\OgreSDK\ogrenew\OgreMain\src\OgreGpuProgram.cpp
Line: 584


I know it must be some resource problem - something I haven't set up right?

Please Help

Falagard

16-10-2005 21:55:19

Dunno, does this help?

http://www.ogre3d.org/phpBB2/viewtopic. ... tdirection

Sorry, not really sure. Seems like something is not set up properly.

tuan kuranes

17-10-2005 09:44:57

where did you got those material files ?

in CVS or in the SDK compatible Zip, those material warnings are fixed.

Jeff_Gos

17-10-2005 16:23:24

I got them straight out of the SDK compatible zip file paginglandscape.zip

in the paginglandscape\samples\media

Any ideas?

tuan kuranes

17-10-2005 16:24:35

get a newer version here :
http://tuan.kuranes.free.fr/Ogre.html