summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2014-01-09Fix reset detection with pausePeter Wu1-4/+22
2014-01-09RobotRace: implement pause functionalityPeter Wu2-1/+52
2014-01-09Camera: Implement auto modePeter Wu1-1/+21
Quite arbitrary stuff here.
2014-01-09Fix robot speed calculationPeter Wu1-14/+23
robot.getTimePos() returns a distance in "race pos" unit, avg_pos is the distance in meters. Convert the former to meters and use adjust weights for speed calculation (care less about previous speed, that one could be braindead).
2014-01-09Fix confusion of meters, time pos and GSTPeter Wu2-9/+35
Robots get a speed of 19 km/s (average human speed).
2014-01-09TexturesFrank v/d Haterd4-0/+0
2014-01-09Some commentsFrank v/d Haterd1-1/+4
2014-01-09Allow textures to be disabledPeter Wu3-10/+49
Minor other change for consistency, even though 180 + 180 is a full rotation, use 180 - 180 to emphasize "revert".
2014-01-09Implement randomized speedPeter Wu2-6/+38
2014-01-09Fix reset buttonPeter Wu2-0/+17
2014-01-09Head is now textured too. Frank v/d Haterd1-2/+17
2014-01-08Robot textures and trackFrank v/d Haterd4-24/+114
2014-01-08Replace glut by glFrank v/d Haterd1-1/+83
2014-01-08Make RobotRace instance available to RobotPeter Wu2-2/+8
2014-01-08Print GlobalState on pressing SPeter Wu1-6/+9
2014-01-06Fix center point for FP viewing modePeter Wu1-5/+3
2013-12-23Fix FP view eye point, whitespace fixes.Peter Wu2-16/+11
2013-12-22New commit of the rotation, seems to be working now. Frank v/d Haterd1-3/+10
2013-12-22Helicopter mode seems to be fixed, some changes to FPS view, but not working ↵Frank v/d Haterd1-5/+17
properly.
2013-12-22Robot rotation (I think?) fixedFrank v/d Haterd1-2/+10
2013-12-20FPS mode: Look from head of robotPeter Wu1-0/+2
2013-12-20Attempt to implement First Person viewing modePeter Wu1-1/+28
2013-12-20Center on fastest robot instead of the middle of lanePeter Wu4-33/+75
Refactor Robots initialization to remove redundancy and add lane number. getPointForLane now returns the center of a lane, change the callers to reflect that.
2013-12-20Add FIXME for helicopter viewPeter Wu1-0/+1
2013-12-20Fix eye point for helicopter view, center robots on lanePeter Wu2-3/+5
2013-12-20WIP: robot movements, adapt Helicopter view to new codePeter Wu4-48/+129
Misc fixes: fix up vector when changing to default view, fix wrong scale for getPointForLane, fix comment typo in Robot.thisFunctionDoesAbsolutelyNothing. New bugs: robot does not look forward; to be done: do not use static speed.
2013-12-19Really fix WASDPeter Wu1-3/+3
2013-12-19Improve colors by setting normalsPeter Wu3-12/+50
2013-12-19Camera helicopter WIP works partFrank v/d Haterd1-2/+33
2013-12-19Z should be 0 for lane translating outsidePeter Wu1-1/+1
2013-12-19Attempt to fix WSADPeter Wu1-5/+6
2013-12-182.1 fix length of lanes and add some colorPeter Wu1-1/+5
Disable lighting (press L) for testing purposes.
2013-12-182.1 Implement test track drawingPeter Wu2-9/+71
2013-12-18Material final fixFrank v/d Haterd1-5/+5
2013-12-18getTangent 2.1 finished and constantsFrank v/d Haterd1-6/+13
2013-12-18getTangent 2.1 finishedFrank v/d Haterd1-6/+27
2013-12-182.1 Race track WIPPeter Wu1-2/+8
2013-12-05Add FPS counter.Peter Wu1-0/+58
2013-12-02drawRobots: reduce push/pop and better commentssubmission-20131202Peter Wu1-7/+17
Now robots are drawn from left to right (gold, silver, brown, orange), the direction is now explicitly documented.
2013-12-02Improve commentsPeter Wu2-8/+34
Merge two subsequent translations in draw(), add a lecture. Replace gl.glColor3f by a call that explicitly names the use of black in drawScene().
2013-12-02Implement antigravityPeter Wu1-0/+17
2013-12-02Less brainfucked center point effectPeter Wu1-5/+8
2013-12-02Fix color of lightingPeter Wu1-3/+3
2013-12-02Fix material colors, increase precision for spheresPeter Wu2-9/+13
2013-11-29Use a neutral color for diffuse (black)Peter Wu1-2/+2
Black! The night that ends at last!
2013-11-29Materials fixed (I guess)Frank v/d Haterd1-6/+6
2013-11-29Fix lighting bug, cleanupPeter Wu1-6/+4
Pitfall 1 from http://www.opengl.org/archives/resources/features/KilgardTechniques/oglpitfall/
2013-11-29Implement lighting (exercise 1.4)Peter Wu1-3/+65
Add "L" debugging key to toggle lighting. If it is buggy, see pitfall 14 at http://www.opengl.org/archives/resources/features/KilgardTechniques/oglpitfall/
2013-11-29RobotRace: formatting, no functional changesPeter Wu1-55/+63
2013-11-29drawRobots method in RobotRace class added. 3 out of 4 materials modified to ↵Frank v/d Haterd1-20/+21
reflect assignment. minor changes