Sunday, 6 November 2011

Finishing labs, quiz...

Not a lot happened in class, this was a double A day week and most of the time was spent finishing labs and such.
Daniel has been working on a 3D engine of sorts, using equations and ray tracing to make shapes in pseudo 3D. It seemed like an interesting project, and I wanted to try my hand at it myself, so this weekend I did. I'm not entirely sure how his works and this was partially intentional as I wanted to compare our separate approaches. My program currently does not work, which is not surprising considering the little time I have put into it. It compares parametric equations of a sphere and a 3D line to find if they intercept with the line intersecting certain points. In order to find if they intercept it checks parts of an equation in sqrts to find they come out negative, indicating a nonreal point of intersection and thus no intersection to graph. The code is actually very short, only a few hundred lines, most of which are for variable creation.

No comments:

Post a Comment