hi i am beginner to opengl.. i have a question. while constructing a sphere by subdividing the tetrahedron why are v suppose to normalize the points that v obtain during subdivision process ? what is the logic involved in this ?
code for normalizing is this :
void normal(GLfloat *p)
{
float d=0.0;
int i;
for(i=0;i<3;i++) d+=p[i]*p[i];
d=sqrt(d);
if(d>0.0) for(i=0;i<3;i++) p[i]/=d;
}



