   2d effect
  I was wondering if there was a way to create a warping effect on 2d, space contracting/sinking/curving as if by a gravity field.I use c++ and direct3d in case it's relevant.Thanks.   
  Do a scale transform on only one of the axes.Sorry I'm not familiar with how to do it in d3d, I use openGL... I'm sure there is a way to do it in d3d though.It won't really curve, but it will give a nice stretching effect.   ;  I'd suggest something like the following, probably in a vertex shader:Pick a vector C that represents the center of your distortion.Pick a radius R that is the 'event horizon' distance of your distortion.Pick a maximum distortion M in the range [0..1] that is the distorted-ness of stuff at the center of the effect (0 = totally distorted, 1 = undistorted)For every vertex:  Calculate the vector P that goes from C to the vertex position.  Calculate a distortion factor S = (magnitude(P) / R) squared  Clamp S to the range [M..1]  Set the vertex position to C + P * S;  Vertex shader? Sorry I am a bit new. Do you know of any article/tutorial on the subject?   