CG Class 6, Wed 2019-09-11
Table of contents
1 Iclicker questions
- Why does WebGL have the triangle-strip object type, in addition to the triangle type?
- It leads to smaller, faster, graphics objects.
- It leads to bigger, faster, graphics objects.
- It's not possible to split some complicated polygons into lots of simple triangles, but you can split them into triangle-strips.
- The standards writers were being paid by the word.
- What is the physical principle underlying LCD?
- Fire an energetic electron at a rare earth atom and a photon of light is emitted.
- Plowing your family farm as a kid can suggest an way to invent electronic television.
- A solution of corkscrew shaped molecules can rotate polarized light.
- Putting your finger close to a capacitor can change its capacitance.
- If two coils of wire are close, then an alternating current in one can induce a current in the other.
- Standards ...
- allow programmers to move between projects
- allow different types of hardward to be substituted in.
- ..... operating systems ......
- allow vendors to lock in customers.
- can prevent the latest HW from being used to its fullest.
- Color printing on a sheet of paper exemplifies
- additive color
- subtractive color
- multiplicative color
- divisive color
- exponential color
- Red is a primary color of which color space?
- additive color
- subtractive color
- multiplicative color
- divisive color
- exponential color
- Major components of the WebGl model as discussed in class are:
- Objects, viewer, light sources, planets, material attributes.
- Still cameras, video cameras, objects, light sources.
- Objects, viewer, light sources, material attributes.
- Colored objects, black and white objects, white lights, colored lights
- Flat objects, curved objects, near lights, distant lights.
2 SIGGRAPH 2017 videos
SIGGRAPH is the world's leading CG conference. I'll show various videos from it.
-
BendSketch: Modeling Freeform Surfaces Through 2D Sketching.
My local copies (MP4 and WEBM) are here.
3 Textbook slides
We'll continue with the textbook powerpoint slides.
- 3_1, Programming with WebGL Part 3: Shaders
- 3_2, Programming with WebGL Part 3: Shaders (2nd set with this title)
- 3_3, Programming with WebGL Part 4: Color and Attributes
- 3_4, Programming with WebGL Part 5: More GLSL
- 3_5, Programming with WebGL Part 6: Three Dimensions
- 3_6, Programming with WebGL Part 6: Three Dimensions ctd
4 Today's original demo program
For today's demo program, I'll modify triangle to add a slider that skews a vertex. Then we can maybe rotate.
5 Text chapter 3 programs
Now, we'll see how the programs in <https://wrf.ecse.rpi.edu/Teaching/graphics/SEVENTH_EDITION/CODE/03/>`_ work.
triangle, cad1 and cad2 are simple interactive drawing programs.
File locations:
- Textbook site.
- My local web copy .
- There's another copy on RCS at /afs/rpi.edu/home/56/frankwr/public_html/ECSE-4750/Angel/7E/03
- which is also visible on the web.