Problems with material

Tubulii

08-06-2010 16:50:08

I have some problems with the material from the Haydrax demo but I do not really know why.
I copied all textures, hlsl files, material files into the folders but the mesh (actually a plane) stays black.
The log says nothing about the Material file("Island.material"), only the shadow material("ShadowCaster.material"):

[...]
18:08:52: Parsing script Island.material
[...]
18:08:52: Parsing script ShadowCaster.material
18:08:52: OGRE EXCEPTION(2:InvalidParametersException): Parameter called uWorld does not exist. in GpuProgramParameters::_findNamedConstantDefinition at ..\..\ogre\OgreMain\src\OgreGpuProgramParams.cpp (line 1433)
18:08:52: Compiler error: invalid parameters in ShadowCaster.material(38): setting of constant failed
18:08:52: OGRE EXCEPTION(2:InvalidParametersException): Parameter called uCameraPosition does not exist. in GpuProgramParameters::_findNamedConstantDefinition at ..\..\ogre\OgreMain\src\OgreGpuProgramParams.cpp (line 1433)
18:08:52: Compiler error: invalid parameters in ShadowCaster.material(44): setting of constant failed
18:08:52: OGRE EXCEPTION(2:InvalidParametersException): Parameter called uFarClipDistance does not exist. in GpuProgramParameters::_findNamedConstantDefinition at ..\..\ogre\OgreMain\src\OgreGpuProgramParams.cpp (line 1433)
18:08:52: Compiler error: invalid parameters in ShadowCaster.material(45): setting of constant failed
[...]

But in the log of the original hydrax demo are the same errors...
So I have no idea and need some help.
Thank you

Beauty

26-07-2010 13:16:54

I supposed, maybe not all ressources are in directories, which are listed in the ressources.cfg file.
But then there should be a warning or error message.

Maybe you forgot to insert a light?
Try to replace the Hydrax mesh by an other mesh. So you can check if it's still black. If yes, then seems to be light problem.
Maybe the diffuse reflection settings are not good in the Hydrax materials?
When in my application a material wasn't found, then the surfaces were white.