The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 398 Weeks Ago, 1 Day Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
Use GLUT primitives to draw a chocolate chip cookie.
A) First create a chocolate chip using GLUT.First useeither 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 =using the 0-255 integer scale).
Staple source code and rendering and hand in.
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll