teaching machines

CS 330 Lecture 18 – Types

Agenda what ?s program this a definition of types static vs. dynamic weak vs. strong Program This Write pseudocode to calculate a score for a given hand in Black Jack. In this game, jacks, queens, and kings are worth 10, numeric cards (2-9) are worth their numeric value, and aces are worth either 1 or […]

CS 455 Lecture 12 – Texture Mapping

Agenda what ?s adding detail without geometry uv coordinates Texture class interpolation repetition While You’re Waiting I have an image of Campbell’s Soup label that is 480 pixels wide and 201 pixels tall. What must be the relative dimensions of the soup can upon which the label is affixed? TODO As a lab exercise, create […]

CS 330 Lecture 17 – On to C

Agenda what ?s program this think about this C over assembly TODO Read The Descent to C. 1/4 sheet. Program This Write atoi, which converts a C string into an integer. Think About This Imagine you are an assembly language programmer in the 1970s. What’s one gripe you have with assembly? Haiku

CS 455 Lecture 11 – Aspect Ratio

Agenda what ?s Playdoh projection fitting the projection to the viewport TODO Start the Magnets homework. No class on Thursday. Some of you have missed some lab checkpoints and have asked if they could still be submitted. I’m am reluctant to diminish the value of previously awarded checkpoints. However, I offer the following two checkpoints […]

CS 330 Lecture 16 – Functions in Assembly

Agenda what ?s finish heads/tails summing user input a multiply function TODO I’ll be gone Wednesday and Friday. Please take advantage of this time to work on CSE and Regexercise. I will have limited time to communicate, though I’ll try to check Piazza once a day. Code boolean.s repeated_addition.s Haiku

CS 330 Lecture 15 – Assembly Cont’d

Agenda what ?s line at a time dealing with memory conditional statements calling functions TODO 1/4 sheet. Pick one of: Write an assembly program that gets a number from the user and prints out just its least significant byte. Read Stop Misquoting Donald Knuth! Line at a Time Code … Haiku  

CS 455 Lecture 10 – Virtual Trackball

Agenda what ?s 3-D interfaces imposing a virtual trackball TODO As a lab exercise, implement the virtual trackball interface. Rotate a model in a non-axis-aligned away and send me a screenshot. Code Pseudocode for mapping a pixel position onto a virtual unit sphere: Now, to implement the trackball: On left mouse down, persist the mouse location’s […]

CS 330 Lecture 14 – Assembly

Agenda what ?s the von Neumann computer leaky abstractions line at a time TODO Read chapters 1-3 of Programming from the Ground Up. 1/4 sheet. Recall This What’s the von Neumann architecture of a computer? What happens in a computer when you add two variables? What happens when you execute an executable? Line at a […]

CS 455 Lecture 9 – Orthographic Projection

Agenda what ?s mini review orthographic projection Mini Review What kind of shader data gets blended across the fragments/pixels of a triangle? What did we need to upload to the GPU to allow vertices to be shared across faces? What kind of shader data is defined per vertex? What operation tells us how aligned two […]

CS 330 Lecture 13 – Control Statements

Agenda what ?s what’s a program look like? adding moves and rotates adding loops and conditionals adding functions TODO Start the CSE homework. Sync and pull to get the grader as described in post @16. Extra credit participation: download the Logo Eclipse project and write a Logo program. Post it on Piazza (filed under folder logo) […]

1 65 66 67 68 69 110