Mars
09-11-2007 04:19:28
Hi,
Pro edition, when try to follow tutorial "Normal Mapping with GPU shaders", the fp occured an error, and the ogre log said some thing like force type convert float4 to float3. Then I try to compile the shader file "Example_BumpMapping.cg", and change
to
The cgc reported no error or warning.
But when I return to the oFusiong pass, and assaign the fp, another error occured, and the ogre log said
So I suppose there might be some problem with cg compiler within oFusion.
Would anyone give me some advices?
Pro edition, when try to follow tutorial "Normal Mapping with GPU shaders", the fp occured an error, and the ogre log said some thing like force type convert float4 to float3. Then I try to compile the shader file "Example_BumpMapping.cg", and change
float3 lightDir = normalize(lightPosition.xyz - (position * lightPosition.w));
to
float3 lightDir = normalize(lightPosition.xyz - (position.xyz * lightPosition.w));
The cgc reported no error or warning.
But when I return to the oFusiong pass, and assaign the fp, another error occured, and the ogre log said
Error #: 9
Function: CgProgram::loadFromSource
Description: Unable to compile Cg program Examples/BumpMapFPSpecular: CG ERROR : The compile returned an error.
(106) : fatal error C9999: *** exception during compilation ***
So I suppose there might be some problem with cg compiler within oFusion.
Would anyone give me some advices?