1. A method for detecting an edge of an object in a two dimensional image resulting from rendering a three dimensional object in a three dimensional computer graphic, the method comprising the steps of: obtaining a first coordinate (x p , y p ) and a first depth value (z p ) in the three dimensional graphic that correspond to a point (P) at a first pixel in a screen; obtaining neighboring coordinates (x Sij , y Sij ) and neighboring depth values (z Sij ) in the three dimensional graphic that correspond to neighboring points (S ij ) in the screen, wherein the neighboring points (S ij ) are pixels neighboring to the first pixel, wherein the subscript i is 0, 1 or 2 and the subscript j is 0, 1 or 2; calculating Angles of P ij vectors; detecting the edge of the object by means of the Angles of the PS ij vectors, wherein the S 00 corresponds to an upper left pixel of the first pixel, the S 01 corresponds to an upper pixel of the first pixel, the S 02 corresponds to an upper right pixel of the first pixel, the S 10 corresponds to a left pixel of the first pixel, the S 12 corresponds to a right pixel of the first pixel, the S 20 corresponds to a lower left pixel of the first pixel, the S 21 corresponds to a lower pixel of the first pixel, and the S 22 corresponds to a lower right pixel of the first pixel.