1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| glTranslatef(-6.5,6,-9.0f); // move camera out and center on the cloth
glRotatef(140,0,1,0); // rotate a bit to see the cloth from the side
///////////////////////////////////////////
//draw the sphere hierarchy
/*for (int i=0;i<bsh->output->size();i++)
{
BSN *current=bsh->output->at(i);
glPushMatrix();
glTranslatef(current->BS->center.x,current->BS->center.y,current->BS->center.z);
glutWireSphere(current->BS->radius,40,40);
glPopMatrix();
}*/
///////////////////////////////////////////
cloth1.drawShaded(); // finally draw the cloth with smooth shading |
Partager