   Line artifacts in texture Cg
  Hi,I'm trying to upload a cube of voxel data to a texture and render a slice through it.  The basic principle seems sound, but I'm getting strange line artifacts: link to image The shader uses two functions, one which converts the 3d co-ordinate into a single float and a second which converts that into a 2d texture co-ordinate.float serialise(float3 pos, float a){float x,y,z;x = floor((pos.x * a));y = floor((pos.y * a))*a;z = floor((pos.z * a))*a*a;return x + y + z;}float2 deSerialise(float x, float a){float2 temp;temp.x = fmod(x,a) + 0.5;temp.y = floor(x/a) + 0.5;return temp/a;}Does anyone know what these lines are?  I don't really know where to start looking.  I'm using Cg, SDl and OpenGL.  Also the slight wrap around from one side of the image to the other is now fixed.Thanks in advance,Tim   