Original Post
I have an error in the rendering because of normals!!!!!!!!! The way I was calculating them is by Martin Newell method. But the problem is in the directions.So I tried to define correct directions by finding center of mass of the 3D object and the center of mass of each surface and findig the dot product between vector leading from center of mass of the surface with the normal to the surface.If it is negative the normal direction is corret else it has to be negated. But this way is not optimal...Doesn
t work good for not convex objects... Will be very thankfull for some advices P.S.I don want to use cross product in order to find them ,because I have understood it can give some incorrect results in some cases