HW F.8 – Hannah
For this feature, I added a texture to my terrain. I found an image online of a view of a Packer football field, and the image was square. I took the image and converted it into a PPM. In my vertex shader, I forwarded texture coordinates on to the fragment shader using the x and […]
CS 455 Lecture 14 – Mipmapping and UV Mapping
Before Class Mipmapping Watch http://youtu.be/ZyH–0fh2hM. Watch http://youtu.be/NTy0uKlYpJQ. Watch http://youtu.be/NAcwJOvkx4M. Contrast http://www.twodee.org/forothers/check_linear.png, http://www.twodee.org/forothers/check_nearest.png, and http://www.twodee.org/forothers/check_mipmap.png. Read https://developer.valvesoftware.com/wiki/MIP_Mapping. Skim what NVIDIA has to say about mipmapping: ftp://download.nvidia.com/developer/presentations/2005/Misc/Lets_Get_Small-2005.pdf. The first third, ending at the talk of caching, is most relevant. UV Mapping Watch http://youtu.be/w7G1S2jGLu8. Watch http://youtu.be/6yfFelpqBdo. Read http://en.wikibooks.org/wiki/Blender_3D:_Noob_to_Pro/UV_Map_Basics. In Class We haven’t talked much about Blender, so call upon me or Google if you’re not sure how to […]
HW F.2 – Hannah
I completed feature 2, which was including a computationally-generated terrain in my scene. I took the ruby code Chris wrote in his diamond-square lecture and translated it into C++ so I could run it in Visual Studio (I didn’t know how to run the ruby code :/, and it was fun converting it :). This […]
HW F.1 – Hannah
I completed feature number 1, which was loading an OBJ mesh into my scene. Essentially, I took Chris’s code from lecture, but changed it so that the obj file doesn’t have to be manually altered in order to work correctly (counting the vertex and face lines and putting the totals in the file). Now, my […]
Feature 2 Post Mortem – Conor
This is my post for feature 2 of the project, terrain generation. Since I felt like I didn’t fully grasp the diamond-square algorithm the first time that I watched the video, I watched the video again and re-implemented the algorithm in Python. As far as the algorithm itself goes, I didn’t use any other help than the […]
Feature 1
Editing ObjUtilities code from class to work on real obj files was fairly straight forward. I looped over the file, incrementing nvertices anytime a line started with ‘v ‘ and incremented nfaces anytime a line started with ‘f ‘. Other lines were simply ignored. Originally, I tried using the regex library for a bit more […]
Feature 4
Doing a skybox presented a few frustrations, but a very rewarding result. My general strategy for the skybox was to texture a cube (with all vertices at a -1 or 1 coordinate) that surrounded the camera, without depth testing. It would use the camera’s rotations, but ignore it’s translations. To ignore depth testing, simply disable […]
Post Mortem Features 1+2
I decided I didn’t really want to create a terrain on my own so I searched for some terrain online. I figured there would be a halo community with a lot of it and I ended up finding http://hce.halomaps.org/index.cfm. There are a lot of models people created on here that you can import into blender and […]
Feature 5
This time, I gave my camera the ability to walk around the map with its height varying with the height of the land. The first thing I did was create a class called Heightmap, which held a width, a height, and a 2D array of floats (heights). Then, I made a couple of new methods […]
Feature 5 Post Mortem
Adding a camera to my terrain came pretty quickly after I generated my terrain, but it took me a while to iron out all the bugs. I also feel like I went at the problem in kind of a strange way, but I’ll get to that later. My cameras controls use WASD for advancing and […]