Ben Taylor wrote:I also tried to render the cube from the following website http://paulbourke.net/geometry/roundcube/ but the issue is the same.
Paul Bourke wrote:The normals are straightforward to calculate, they are just the vectors to the vertices of the roundcube centered at the origin.
Ben Taylor wrote:Finally !!! I solved it !!!
The issue was Maya!
Maya exported the faces starting from value 1 to max which means that after my program parsed the .obj file to get the list of points and vertices, it wasn't reading the index 0 in the points array, it was always starting from 1(because nr 1 was the first point of the face).This is why duplicating the first vertex in the .obj file worked.
The solution I found was to substract -1 from every face point, which moves the index back with one position.