TWiki . Team2 . JoeProj2Logs

Developed design strategies, pseudocode for face collisions. Physics algorithms seem pretty straightforward, shouldn't be too tough. Implementation details could get a little hairy, but I'll find out soon enough.

-- JoeWalker - 29 Feb 2004

I implemented the collideFace function in the triangle class. I also added collideFace to the checks to see where the ball collides first. I was unable to reconcile the glut.h exit errors. I couldn't edit glut.h, and couldn't get the #define hack working, as suggested on the website to which we were directed. So, at the moment I don't even know if the code compiles, nor have I tested it. I will work on this some more before the deadline.

-- JoeWalker - 02 Mar 2004

I finished implementing the collideFace function and added a triangle in standard orientation for testing. With Jon's help, I was able to work out some minor bugs in the collision tests. There is still a bug in testing whether the collision occurs inside the edge (v1,v2), from the xz plane to the x axis. Normal collisions do not occur with the equations and tests given for this part of the face collision notes. When this code is commented out, normal collisions are detected, but it is likely that sometimes detections will occur when they shouldn't.

-- JoeWalker - 02 Mar 2004

I got the face collisions working by rewriting one of the edge checks based on revised notes. I am still without a working copy of Visual Studio, and have tried every method I can think of to find somewhere I can work, to no avail thus far. I'll be working on face collision testing in the next few days.

-- JoeWalker - 06 Mar 2004

I have standard input working now for straight hand-entered user input. I'm having trouble getting it to read from files though. Debugging this is a bit tough; for some reason the input file is unable to be opened. Perhaps the program can't find it, but I don't see why not. I've tried looking this up on various Internet sites and none of that code is working either.

-- JoeWalker - 30 Mar 2004

I've done quite a bit since my last update, so I'll attempt to summarize here. I got file input working. Turned out that it was working all along, and it was just a matter of having the input file in the same directory as the compiled solution. After I got this working, I designed a few simple test cases for the physics engine, including multiple face collisions, and an enclosure of two tetrahedrons to test collisions indefinitely. I learned the basics of milkshape and designed our final course, including walls, a hill, a valley, a hole, and a flag. I tuned many of the game parameters to fit this specific course, such as tee placement, gravity, damping, detection of the ball in the hole and off the course. With said detections in place, I added scoring and other output, including number of strokes, number of rounds played, when a new round is started, and when the ball is stopped and ready to be hit. At documentation time, I helped out with the presentation (UML, screen shots, other points), and wrote the design, bugs, and enhancements sections of the final report.

-- JoeWalker - 13 Apr 2004

----- Revision r1.6 - 13 Apr 2004 - 17:47 GMT - JoeWalker
Copyright © 1999-2003 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback.