I checked out the depthmap and noticed that all particles render as black. So I turned off particles -

s_view_Depth.clip_near = 0;
set(s_view_Depth,NOSHADOW);
set(s_view_Depth,NOPARTICLE);

and I can see that the depthmap is completely black if in the shader it is like this -

technique Depthmap
{
pass Pass0
{
cullmode = none;
//alphablendenable=true;

VertexShader = compile vs_2_0 ShadowMapVertexShader();
PixelShader = compile ps_2_0 ShadowMapPixelShader();
}
}

or completely rendered white if it's like this -

technique Depthmap
{
pass Pass0
{
cullmode = none;
alphablendenable=true;

VertexShader = compile vs_2_0 ShadowMapVertexShader();
PixelShader = compile ps_2_0 ShadowMapPixelShader();
}
}

I don't know what the cause of this is... I'm pretty sure I had a depthmap shader working in my project before. But I can't seem to figure out this one, I turned of fog too, but that doesn't seem to be the problem. Changing the values for the dof effect don't seem to do anything.


Check out Silas. www.kartsilas.com

Hear my band Finding Fire - www.myspace.com/findingfire

Daily dev updates - http://kartsilas.blogspot.com/