CMPS 160 -- Programming 4
Early if time stamp is before midnight May 26, 2016.
On time if time stamp is before midnight May 27, 2016.
Late if time stamp is after midnight May 28, 2016.
Submissions turned in after midnight May 28, 2016 will not be accepted/graded.
Objectives:
Add texture mapping
Description:
There is only 1 new thing that is required for this program --
add texture mapping.
There are two reasons why there's only 1 new requirement:
(a) I want you to fix earlier bugs from your previous assignment so that
you have a basic but functional computer graphics program that does
proper rendering, object manipulation, and camera control.
(b) Have opportunity to make up programming points with different bonus point options.
Requirements:
-
40% of functionality:
Fix any issues from earlier assignments.
-
60% of functionality: (texture mapping)
The requirement here is pretty straightforward.
You must let the user texture map an object (not just the cube or frame) with an image.
There are several images available in the ../resources folder from the Matsuda/Lea book,
but they are pretty low resolution.
You can include one or two other images together with your submit folder for use as texture maps.
Since we need to apply texture map to arbitrary shapes,
the easiest way to do this is to first map onto a known shape,
e.g. a sphere that envelops the entire object,
and then figure out the texture coordinate for each vertex of the object.
Note that for objects with concave regions there will be some artifacts
using this technique.
This is acceptable for the purposes of this assignment.
-
up to 40% bonus points:
You can earn 10% bonus points for each of the following, up to maximum of 40%:
- add shadows
- add reflections
- add bump mapping
- add environment mapping
- add procedural textures
- add 3D textures
- others -- contact me first
-
Include a features.html file that has the following information:
your name and login,
description of what your program includes
(e.g. texture mapping and bump mapping),
and images for each feature.
You can include images into html using the IMG tag.
(e.g. <IMG SRC="images/feature1.jpg"> will display the feature1.jpg
images from the images folder).
Also add a link to your code so that the viewer can just click on it to see
your code in action.
Contest:
We will run a peer-judged contest based on the extras from this program.
Each of the graders will nominate their top 4 picks from the programs that
they need to grade.
These 20 nominees will then get a chance to give a 2-minute presentation
of their program in class on the tenth week.
Students get to vote for the best program, next best, etc.
Winners will get recognized on the class web page for future classes,
and some token prizes.
However, this has no bearing on grades.
Grading:
This program will form part of your CMPS 160 grade.
Rubric:
-10 no features.html file
-10 inadequate documentation, description, etc.
-10 not following instructions
-?? missing functionality from previous assignment that are needed to show proper
operation of current requuirements.
please include a README file as necessary e.g. peculiar behaviors,
deviations from requirements, other notes to graders etc.
Who graded your assignment:
Daniel: aassi - dwmarx
Joseph: hesu - kmccotte
John (Andy): kyalopez - nmlamper
David: nshariat - zpeterse
Submission:
Submit your index.html, features.html, and javascript code in TexMap.js.
Include a README file as appropriate.
Include images showing the output from your program
(please put these in a folder called "images").
Zip everything up into prog4.zip Submission must be done using the "submit" command from
unix.ic.ucsc.edu
- submit cmps160-ap.s16 prog4 prog4.zip
Last modified
Wednesday, 01-Jun-2016 12:19:39 PDT.