Original Post
I create some cubes. Each triangle vertices have the same normal as the face, perpendicular to it. Then I put a single directional light to shine on them and set to Goraud shading mode.
Something very wierd happens. Every side of the cube gets shaded diferently. I.e. top face of the cube gets shaded in roughly the direction of my light, but side faces get shaded as if the light is coming from a opposite direction.
My first guess is that the problem is with Triangle normals but I can''t see why. Does anyone have any idea whats the problem, at least get me started.
I''d post some code but I''m not using VC but Delphi with DelphiX (Delphi library for DirectX).