Hi,
I’m new here, though I’ve been haunting the place for a few weeks. Seems like a great community! Anyway, on to why I started this topic…
At the moment I’m in the process of learning RenderMan, but I’m having a problem with my displacement mapping. For some reason after displacement my normals are coming out all wrong, even though before displacement they are OK. An image of this is here. The left side hasn’t been painted properly, but the right side has.
Here’s my displacement shader:
displacement hansDisp (string texName = "";float dispMult = 0.1)
{
float magnitude;
magnitude = dispMult * ( float texture( texName ) * 2 - 1 );
P += magnitude * normalize (N);
N = calculatenormal (P);
}
Does anyone know why this might be happening?
Thanks very much 
