130 likes | 232 Views
CS 174 Discussion 8. Gianfranco Doretto. Submission guidelines. Due: 6 / 6 /2002 at 11 :00pm No partial credit will be given to programs which cannot be compiled and tested on ugrad.seas (Solaris) Submission system will be open from Monday 3rd, trough Thursday 6th at 11:00pm
E N D
CS 174 Discussion 8 Gianfranco Doretto Gianfranco Doretto May 31, 2002
Submission guidelines • Due: 6/6/2002 at 11:00pm • No partial credit will be given to programs which cannot be compiled and tested on ugrad.seas (Solaris) • Submission system will be open from Monday 3rd, trough Thursday 6th at 11:00pm • NO submission will be accepted by SEASnet after June6th, at 6:00 pm Gianfranco Doretto May 31, 2002
Submission guidelines • submit a tarball: source code files, Makefile, input script files, README etc. • Example: your files are located in $(HOME)/lab3 • 1) cd ~/ • 2) tar cvf lab3.tar lab3 • 3) gzip lab3.tar • 4) submit cs174 lab3.tar.gz • After you hit the return key, a statement like "submission successful" will be printed on the screen Gianfranco Doretto May 31, 2002
README file • submit a README file with each lab, only if you are doing the extra credit stuff, or if you are doing something different from what is mentioned in the lab description handout. Also, mention what assumptions you have made to get your lab running. • Your name appeared in UCLA record, • Your student ID, • Your preferred email address • Your seas login ID, • Date and Lab number. Gianfranco Doretto May 31, 2002
Surce files • In particular, you must put down the following information at the top of each program file. • Your name appeared in UCLA record • Your student ID • Your preferred email address • Your seas login ID • Date and Lab number Gianfranco Doretto May 31, 2002
Grading policy • No basic information 5 points of penalty • Compilation on Solaris using Makefile: 5 points • Good programming style (comments, modularity, etc …): 5 points Gianfranco Doretto May 31, 2002
Grading policy • Object loading and creation: 15 points • Transformations (scaling, translation, rotation): 15 points • Observer: 15 points • Viewport (2D clipping): 15 points • Display (window-to-viewport mapping): 10 points • Reset, clearScreen, clearData, end, #: 15 points • Wait-for-return: 5 points Gianfranco Doretto May 31, 2002
Extra credit • Back-face elimination: 5 points • 3D clipping: 10 points • Shading: 5 points Gianfranco Doretto May 31, 2002
Weiler-Atherton Visibility Algorithm Characteristics: • Area-subdivision algorithms • Polygon area coherence • Based on a general polygon clipper (concave polygons with holes clipped to a concave polygon with holes) Gianfranco Doretto May 31, 2002
Basic steps • Preliminary rough depth sort • XY polygon area sort • Depth sort • Recursive subdivision if error in original depth sort Gianfranco Doretto May 31, 2002
XY polygon area sort: inside/outside lists Gianfranco Doretto May 31, 2002
Z Sort: recursive subdivision Gianfranco Doretto May 31, 2002
Z Sort: recursive subdivision Gianfranco Doretto May 31, 2002