Archive for September, 2007

Ray Tracing, Hurts

Saturday, September 22nd, 2007

I am enjoying this weekend quite a bit more than usual. The reason; last weekend. From about 10 PM September 13th until 4:30 PM September 17th I was working on a ray tracer for my computer graphics course.

Wikipedia has a great entry about Ray Tracing.

Ray tracing is a general technique from geometrical optics of modeling the path taken by light by following rays of light as they interact with optical surfaces… The term is also applied to mean a specific rendering algorithmic approach in 3D computer graphics, where mathematically-modelled visualisations of programmed scenes are produced using a technique which follows rays from the eyepoint outward, rather than originating at the light sources. …facilitates more advanced optical effects, such as accurate simulations of reflection and refraction…

My Ray Tracer's Output
Output of my Ray Tracer

I was honestly kinda blown away that this was our first assignment for my computer graphics course. In the end I was happy with my results, and feel that I learned a lot from the project, and had enough weight in the gradebook to warrent the time. While I worked in the lab, we averaged about four people programming there way through the project. The idea for the ray tracer is simple. Follow the ray from the view point, to each dot you want to draw, and if you intercect a object, paint it. Turns out the math to calculate the intersections and lighting was a little more than I was hoping for. While working on the project I realized I hadn’t worked with C++ in over a year, and I have never claimed to be a C++ master. I was very happy with my very object oriented and abstracted solution that allowed troubleshooting to done quickly and abstracted the topics to a level I could program a solution for. (I had many classes such as scene, camera, point, vector, ray, primitive, triangle, sphere etc. I defined operations such as dot product and cross project for vectors. Also utilitzed a virtual function in my primitive type to call the correct funtion depending on the primtive. The primitive class also allowed me to load all of the shapes into one vector or pointers to primitives. Most others were simply managing a vector per shape.)

(more…)

Pictures - 9/2/07 Hiking Mt Lincoln, Bross, Cameron

Saturday, September 8th, 2007

Check out the photos from my hiking trip up Mt Lincoln, Bross and Cameron.

I like this pano I shot with my iPhone.
Lincoln Panaroma, taken on iPhone

My mother had chipped a bone in her leg just before we left so I didn’t expect to do much outdoor adventuring Labor day weekend. Sara decided we should should finish her 14er hiking trip she had done a few weeks ago. Sara, Cora, Dad and I set out for a long hike. Without the forethought of a long hike in packing, I ended up hiking in my Tennis shoes, Dad’s gym shorts, and a cotton t-shirt. I decided I should go big and run to the top of Cameron from the parking lot. (After finishing my super hiking fuel, Coke.) I didn’t maintain a running pace, but I was trucking. I enjoyed blowing past all the crazy ‘hardcore’ hikers, in there super expensive jackets, gloves, poles, etc.

In one picture you can spot an F-150. That is Tim’s truck, and he drove up Mom to the saddle between Lincoln and Cameron.