   out putting shader values
  How can i output this to a console window from .fx?// Compute the vector from the vertex to the eye position.float3 toEye = normalize(gEyePosW - posW);   
  No. You either have to somehow output that value normally (either as a pixel color, or in DX10 you can use stream out to output vertex data), or you can just step through your shader in PIX. I recommend the latter.According to the official DX blog, printf is being added to HLSL. I'm not sure if this means that it will work in existing shader profiles.[Edited by - MJP on May 17, 2010 5:51:06 PM]