teaching machines

CS 330 Lecture 23 – Guards, Tail Recursion, and Higher-order Functions

Agenda what ?s replicate program this guards tail recursion higher-order functions map filter lambda TODO Read http://learnyouahaskell.com/higher-order-functions. Quarter sheet. Program This Code today.hs Haiku

CS 330 Lecture 22 – Tuples, List Comprehensions, and Thinking Looplessly

Agenda what ?s logo tuples list comprehensions initials head’ pattern matching case vs. function definition patterns sum’ product’ factorial’ reverse’ Code test.hs Haiku

CS 455 Lecture 16 – Rendering to Textures and Noise

Before Class Rendering to Textures Watch http://youtu.be/0G83PDLoEIE. Watch http://youtu.be/VecElbd8LoU. Read section Rendering to a Texture in chapter 4 (pp. 143-148). Noise Watch http://youtu.be/DRddzJ1gxZs. Watch http://youtu.be/Tx-M0uSwpXQ. Read http://lodev.org/cgtutor/randomnoise.html. In Class Please work on your homework features.

CS 330 Lecture 21 – Hello, Haskell

Agenda office hours: come find me anytime between 9 and 4 midterm discussion the problem with imperative languages: mutability functional languages Haskell implicit typing operators lists and ranges conditionals functions TODO Read http://www.haskell.org/haskellwiki/Introduction. Quarter sheet. Code test.hs

CS 455 Lecture 15 – Skyboxes, Environment Mapping, and Normal Maps

Before Class Skyboxes and Environment Maps Watch http://youtu.be/AOc42rtfwuI. Watch http://youtu.be/HdmRc7seDsg. Read section Simulating Reflection with Cubemaps in chapter 4 of your book, pp. 123-129. Normal Maps Watch http://youtu.be/3BI6J-TiC2A. Watch http://youtu.be/x7zUc38Zik0. Sadly, normal mapping is usually more complicated than presented in the videos. Read section Using Normal Maps in chapter 4 of your book, pp. 116-122. In Class Please work […]

CS 455 Lecture 14 – Mipmapping and UV Mapping

Before Class Mipmapping Watch http://youtu.be/ZyH–0fh2hM. Watch http://youtu.be/NTy0uKlYpJQ. Watch http://youtu.be/NAcwJOvkx4M. Contrast http://www.twodee.org/forothers/check_linear.png, http://www.twodee.org/forothers/check_nearest.png, and http://www.twodee.org/forothers/check_mipmap.png. Read https://developer.valvesoftware.com/wiki/MIP_Mapping. Skim what NVIDIA has to say about mipmapping: ftp://download.nvidia.com/developer/presentations/2005/Misc/Lets_Get_Small-2005.pdf. The first third, ending at the talk of caching, is most relevant. UV Mapping Watch http://youtu.be/w7G1S2jGLu8. Watch http://youtu.be/6yfFelpqBdo. Read http://en.wikibooks.org/wiki/Blender_3D:_Noob_to_Pro/UV_Map_Basics. In Class We haven’t talked much about Blender, so call upon me or Google if you’re not sure how to […]

CS 330 Lecture 20 – A Logo Compiler with Conditionals and Loops

Agenda what ?s interpreting vs. compiling modeling a program: follow the grammar what to do on undeclared variables? adding loops adding conditionals TODO Write a Logo program and drop it in your submissions directory in W330. Name your file todo.logo. Be exactly exact. We will have a gallery showing on Monday. You are encouraged to […]

CS 330 Lecture 19 – A Logo REPL Part II

Agenda what ?s comments bugs a REPL variables expressions General Test Topics Things on the exam: addressable memory stack vs. heap storage pattern matching with common regex primitives types and type checking declarations vs. definitions basic instructions (pushl, movl, addl, subl) and flow control (cmpl, jmp and friends) in assembly big picture ideas small code […]

CS 455 Lecture 13 – Spotlight and Beyond Color Textures

Before Class Spotlight Watch http://youtu.be/s7NbEbNJo28. Watch http://youtu.be/AA-HzRc3vyI. Watch http://youtu.be/4zAk0F0-4QA. Read chapter 3, section Simulating a Spotlight, pages 94-97. Beyond Color Textures Watch http://youtu.be/U7RdV4X_Ml4. Watch http://youtu.be/W3vkBV-NgL8. Watch http://youtu.be/K76qRuyPUiI. Watch http://youtu.be/C3hVk47G5V4. Read chapter 4, sections Applying Multiple Textures and Using Alpha Maps, pages 111-116.  In Class Write a renderer that casts a spotlight on a scene, but instead of illuminating the objects, it […]

CS 330 Lecture 18 – A Logo REPL

Agenda what ?s why write our own languages? program this building an interpreter… …with a REPL TODO Nada. Though you wish to write more exam questions and post them in the comments. The more questions you come up with, the fewer I’ll come up with. Program This Code Logo.g4 makefile Note to copy and pasters: […]

1 89 90 91 92 93 110