computer graphics -1.     Use GLUT primitives to draw a chocolate chip cookie. A) First create a chocolate  chip using GLUT.  First…

computer graphics –

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper

1.    
Use GLUT primitives to draw a chocolate chip cookie.  A) First create a chocolate  chip using GLUT.  First use  either glFrustrum()  or  glPerspective () so we get a nice 3-D view.   Take GLUT solid sphere and apply the scaling linear-transformation as a model transformation (remember the transformation stack, flipped-to us but algebraically valid).    That makes a flat cookie (color it RGB =  < 203, 150, 82  > using the 0-255 integer scale).       

B) Add chocolate chips (spheres) on the surface, so only the part of the upper hemispheres stick out.  Chips need to be nice and chocolate colored (try  RGB =  <  61,  24,  5 >  using the 0-255 integer scale).        Staple source code and rendering and hand in.

Still stressed from student homework?
Get quality assistance from academic writers!

Order your essay today and save 25% with the discount code LAVENDER