COMP 361
Weeks 5 and 6 (April 2 - 13)
Contact
information .
How to hand in
your assignments:
- Some assignments may require email; others may require
handing in
written material. For those requiring e-mail, send e-mail to me
containing plain text (not an attachment) showing your work.
In
some cases, the message may consist of answers to questions, in other
cases. it will likely require the submission of (programing
assignments) your source code.
- For this class, my email address is
DaileyDP@gcc.edu (Should you wish to stay in touch beyond this
semester, then david.dailey@sru.edu should remain
active.)
For this week and the next (time allowing):
For later weeks:
SVG transform matrix (
explanation
from Mozilla)
interaction and animation
texture and pattern
more ThreeJS (materials, positional lighting, textures, shapes,
interaction, etc.)
Example 1earth --
same as (simplified) above, but with bitmap/texture from
NASA/JPL-Caltech, as suggested by Tony Parisi's book "WebGL"
Example 1h
-- two ways of putting plain (2D text) in a scene (either put a div
atop the scene, or map a texture to a canvas that has text drawn in it)
in-class discussion of how
"real" three D text is a) difficult and b) not
accessible in
Three.js, but how it is easy and accessible in
<replicate>.
Note how this
related example
(trying to draw a bitmap on a canvas and then loading that onto the
sides of a cube) works in Firefox, but not in Chrome.
Example 1i -- click on
a shape to make it move
Example 1j -- moving an
individual vertex within a geometry (using
myobject.geometry.verticesNeedUpdate = true;
and myobject.geometry.dynamic = true;)
noise (smooth and particulate)
fractals
shaders
2D meets 3D
Discussed in previous weeks:
Assigned
Reading-- the
class web page and links leading from it.
"Reading" for the purposes of this class, requires
understanding the material sufficiently to
- be able to explain it
- be
tested on it
- have working familiarity with all vocabulary. This may mean
locating, reading and understanding reliable print
or internet
resouces.
- all material on or linked to from the class web page
(unless the link is marked "fun" or "cool" or similar).
Assignment #1. Due
Tuesday, March 13: Send email (using the proper format) to the
instructor verifying that you're in the class! Also, please
review the above topics (from vectors and pixels through computational
geometry) and list, in order, the five topics you would like most to
learn about this semester.
Assignment #2.
Due Tuesday,
March 20th. Send me (though email) the source code (plain text) of a
web page containing a two textareas and a button. JavaScript (in the
<script> of the web page) should, when the button is
clicked,
take the words contained in the first textarea and display them in
alphabetical order inside the second textarea.
Assignment #3.
Due Wednesday, April 4th. Concerning SVG. Details here.
Quiz.
Last hour of the class, Tuesday, April 10th. Concerning all
material covered to date. Combination of short answer (multiple choice)
and essay (writing code).
Assignment #4.
Due Wednesay, April 11th. Concerning ThreeJS. Details here.
Final Project:
(in lieu of Final Exam): Due last class meeting, Tuesday, May 8th.
Details to be announced.