thnks to your help, most of the erros desapeared

but i'm a slow learn, and my engine is not so friend of myne, so it gives now another excuse to dont work...

I changed what you said:


----------------------------------
material Spec_ef
{
effect ="
extern float4 vecSunDir;
struct VS_OUT
{
float4 Position : POSITION;
float4 Diffuse : COLOR0;
float4 Specular : COLOR1;
float2 TexCoord : TEXCOORD;
};

struct VS_IN
{
float4 Position : POSITION;
float3 Normal : NORMAL;
float2 TexCoord : TEXCOORD;
};

VS_OUT main(VS_IN In)
{
VS_OUT ret;

// Transform model vertex position to
// screen space.
ret.Position = mul(In.Position, matWorldViewProj);

// Transform model vertex normal to view space
float3 ViewNormal = mul(In.Normal, (float3x3)matWorldView);
ret.Diffuse = max(0, dot(ViewNormal, LightDirection));

// Find Eye Vector by Normalizing view position
float3 ViewDir = normalize(mul((float3)In.Position, (float3x3)matWorldView));

// Calculate reflect vector
float3 ViewReflect = reflect(-ViewNormal, LightDirection);
ret.Specular = pow(max(0, dot(ViewReflect, ViewDir)), 4);

// Output texture coordinates to pixel shader
ret.TexCoord = In.TexCoord;

return ret;
}";
} <---------------------------this-last-line---------------


-----------------------------------------------

but now the engine says that there's an erros in the last line.
did i fail in something?
I thnik didnt catch the "extern float4 vecSunDir;" to well.



I have the 6.12 version of the engine, my browser dont let me update, it says "link is broken!". reinstalation dont fix it, and i dont want to format my pc so soon, if someone could send me the update.

Last edited by NMS; 09/02/05 09:59.

http://www.coniserver.net/ubbthreads/showflat.php?Cat=0&Number=560847&an=0&page=0#560847 Cmon every one! Help me building this camera script! The first of its kind in 3dgs! Thnkx to everyone who helped me in my questions