I finally fixed the issue I was having with getting the camera walking over the terrain. I ‘think’ the error was that I wasn’t translating onto the x-z plane at the beginning of my GetHeight(float x, float x) function properly. I said ‘think’ becauseĀ I redid all of my functions that got the height of the [...]
Archive for March, 2009
W7: Walking over terrain
Posted in Interactive 3D Graphics on March 15, 2009 | Leave a Comment »
W5: Floating Point Numbers
Posted in Console Development on March 9, 2009 | Leave a Comment »
There are different number types, such as natural numbers (positive numbers), integer (positive and negative), rational (1/2, 1/3, 1/4), irrational (sqrt(2), e, PI), real numbers and complex numbers.
In my code I constantly use floats, without considering how it works. This week was spent making our own floating point calculator to add, multiply, subtract and divide [...]
W5: De Blob
Posted in Interactive 3D Graphics on March 9, 2009 | Leave a Comment »
I successfully created user input with the camera. However, I have been having some troubles making the camera walk across the terrain. For some stange reason, my camera appears to go up invisible hills when moving around. I’m guessing that the camera’s position hasn’t been set to the terrain’s position, so when the camera is [...]