teaching machines

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

Feature 5 Post Mortem

I had some trouble at first getting feature 5 to work. Getting the WASD movement keys to work was as simple as setting the keys to different values from keys.h, as shown below. It also shows where I set the elevation of the camera equal to the terrain height.   I also just used the […]

Feature 2 Post Mortem

Overall implementing the terrain generation and height map was not overly difficult. The first problem I came across was editing the ruby file we created in the tutorial, in order to orient the terrain in the same aspect as the camera. The grid value had to be switched to the center in output as well […]

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

Feature 1 Post Mortem

Loading .obj meshes into my scene was a relatively straightforward process. I essentially created an array of programs, attributes, meshes, albedos, etc., and looped through each one in the OnDraw() call to display each one. In order to display copies of a mesh, I actually used a vector of vectors of xform matrices. This sounds […]

Feature 3 Post Mortem

This feature is all about lighting.  We’ve covered this all in great depth in class already, so there really wasn’t a whole lot that gave me any trouble.  The lighting includes ambient, diffuse, and specular lighting (using the Blinn method in particular).  Everything I used as a reference came directly from Chris Johnson. Here are […]

Feature 1 Post Mortem

Loading a .obj mesh is a relatively straightforward task using the masterfully written code provided to us by Chris Johnson (Extra Credit?).  I decided to augment the ObjUtilities class to make it slightly more robust.  The utility can now handle comment lines or other odd lines throughout the file, as well as count the vertecies […]

Feature 5

In order to get this feature to work I had to do two main things: Add a terrain class that I could use to sample the terrain height at a given location, and improve the camera class to function more like a fps camera. My terrain class is a height map that is generated from […]

Feature 2

Generating terrain wasn’t terribly hard. At first, I wanted to write my own generator, with an algorithm other than diamond square. I wanted a landscape that resembled mountain ranges more than rolling hills. I got about half way there. The issue was all of the mountains looked like long, skinny ramps due to the order […]

CS 330 Lecture 17 – Callbacks and Parsing with ANTLR

Agenda one more thing on C function pointers: callbacks http://www.opengl.org/resources/libraries/glut/spec3/node46.html http://www.opengl.org/resources/libraries/glut/spec3/node54.html#SECTION00089000000000000000 program this the translation process: lexing, parsing, generating ANTLR v4 why write our own languages and parsers? TODO Read chapter 2 through section 2.1. Walk through http://www.antlr.org/wiki/display/ANTLR4/Getting+Started+with+ANTLR+v4. Quarter sheet. Program This Code torus.c Divs.g4 messy.txt PrettyPrinter.java Haiku

1 172 173 174 175 176 232