teaching machines

lavaniaj – Gaussian Pox

Creating the Image class and its methods went smoothly after I overcame my directional impairment. I wasted quite a bit of time trying to figure out why my energies were not calculating correctly in my main method. Instead of doing variable1 = pow(variable2, variable3), I was simply doing variable1 = (variable2, variable3). I was accidentally […]

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 CSE Homework – due before March 12

See the PDF.

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) […]

CS 330 Lecture 12 – Storing a Program

Agenda what ?s think about this storing program structures in Basecalc TODO Watch two videos on optimization from Stanford professor Alex Aiken: https://www.youtube.com/watch?v=_8PEtL9AYmQ and https://www.youtube.com/watch?v=yRfh7hUx26k. Feel free to watch at double speed. Share 3-4 questions or observations on a 1/4 sheet. Think About This Suppose we add a ternary operator to our Basecalc language. What happens when we […]

pinterrm – HW1

I started with creating the Image class and its methods. This part was straightforward and with some test cases and verifying outputs the work was complete. I then moved onto analyzing the formula to be used as the center point of calculations. I made a list of structs for holding basic information related to the […]

CS 455 Lecture 8 – Calculating Normals

Agenda what ?s finding Playdoh normals finding normals of a model Think About This Here’s what you know: The positions of five vertices. Connectivity information (e.g., vertices 0, 1, and 2 form a face). Vector operations: you can add 3D quantities, subtract them, take their dot product (which tells you the cosine of the angle […]

1 2 3 5