teaching machines

Feature 2 – Kevin

For this feature, I basically converted all of the diamond algorithm Chris Johnson showed us to C++and slightly modified it to make the terrain flat instead of  vertical.  The hardest part of this beyond just going through and understanding Chris’s code was that I had some +1 errors in the writing to the file portion […]

Feature 1 – Kevin

I modified my ObjUtilities file to be able to read in any vertices and faces and calculate how many are in the file on its own.  This was fairly straightforward and I didn’t have any problems with it outside of minor syntax errors. I attached screenshots of my code from the file for everyone to […]

Feature2-Spencer

For feature 2 I basically followed the diamond square algorithm given to us, with only a slight change to the code so that when the terrain was read in it was flat and being looked across, as opposed to above it and looking down on it. This just required a change to x and z coordinates, […]

CS 330 Lecture 28 – C++ References and the Pillars of OOP

Agenda what ?s call-by-reference class Quadratic inheritance class Polynomial virtual polymorphism pure virtual/abstract class Function TODO Defeat homework. No quarter sheet. Code Functions.h Functions.cpp graph.cpp makefile Note to copy and pasters: makefile rules need to be indented with real tabs, not spaces. Haiku

Feature 1- Spencer

The first feature didn’t require much outside effort outside of the code that I already had for class. The only thing I added was the ability to parse an obj file for the faces and vertices, as opposed to having to count them by hand.   A little code   A little star   And […]

Feature 8 Post Mortem

Before I begin describing this feature, I’d like to note that I caught a mistake involving my water. After hearing other people talk about it, I realized that the reflection on my water wasn’t changing as the camera moved. After a few attempts, I managed to fix it, and now my water reflects different skybox […]

CS 330 Lecture 27 – List Comprehensions and On To C++

Agenda what ?s list comprehensions in Haskell functional vs. non-functional OOP vs. non-OOP imperative the pillars of OOP (encapsulation, inheritance, polymorphism) initialization lists a polynomial hierarchy TODO Read http://hacksoflife.blogspot.com/2010/12/what-oop-isnt.html. Read the comments too. Agree or disagree? Quarter sheet. Code vowels.hs listcomps.hs waaaaaaaaaaaa.hs Functions.h Functions.cpp graph.cpp makefile Note to copy and pasters: makefile rules need to be […]

CS 330 Lecture 26 – More Folding, Composing, Custom Data Types

Agenda more folding: join, length, map, find, filter folding on 1+ lists: min, max composing: countOvers, any, all custom data types: an expression hierarchy making something an Ord TODO Read chapter 9 through section 9.2.2. Quarter sheet. Code today.hs Haiku

Feature 5 Post Mortem – Conor

This is the post mortem for my camera feature.  While implementing a camera for my scene, the only resource that I used was the video that Chris provided.  This was fine for simply moving around the scene, but I needed to extend the camera to auto-adjust itself based on terrain height.  In order to accomplish […]

Feature 5 – WASD control

I have implemented a camera that navigates your the with WASD for forward, left strafe, backward, and right strafe movements. It also automatically adjusts the camera’s vertical dis- placement based on the terrain elevation. I stored the height map as a vector of ints where each pixel is represented by a certain value (the given height). […]

1 2 3 4 5 6