summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
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
2013-11-29drawRobots method in RobotRace class added. 3 out of 4 materials modified to ↵Frank v/d Haterd1-6/+6
reflect assignment. minor changes
2013-11-29drawRobots method in RobotRace class added. 3 out of 4 materials modified to ↵Frank v/d Haterd1-2/+2
reflect assignment. minor changes
2013-11-29Robot: fix flying stick figure and length calculationPeter Wu1-3/+8
2013-11-29Refactor: move Camera outside RobotRacePeter Wu2-103/+106
Extra changes include reordering comments around conditions and adding the GlobalState parameter to the constructor.
2013-11-29Refactor: move Terrain outside RobotRacePeter Wu2-27/+27
2013-11-29Refactor: move RaceTrack outside RaceTrackPeter Wu2-68/+68
The comments "The X-track is selected" are moved after the "if (...) {" because it does not belong to the previous condition statements.
2013-11-29Refactor: move Material outside RobotRacePeter Wu2-51/+51
2013-11-29Refactor: move Robot outside RobotRace classPeter Wu2-282/+285
setColor is unused now as it is moved to BaseContext.
2013-11-29Refactor: Provide global OpenGL contextPeter Wu2-5/+58
GL, GLU and GLUT references can be acquired via BaseContext. Also remove a useless robots[0].toString() line from RobotsRace.
2013-11-28Refactor to remove magic numbers, deduplicationPeter Wu3-285/+228
Added Colors class that labels the RGB color numbers. Introduce helper function to draw beams that does not change scaling, this allows the push/pop matrix function to be removed from drawTorso. Remove duplicate code from drawLegs, drawArms, drawShoulders. Remove drawStickFigures because it will interfere with animations later, drawBeam will take care of drawing the skeleton if needed. Joints are manually added during the transformations, that are possible points for rotations later.
2013-11-28Fix signedness of color helperPeter Wu1-1/+1
2013-11-28Put robot on axis instead of center, fix stick figure controlPeter Wu1-3/+9
2013-11-27Use glColor3b (byte) instead of glColor3f with divisionPeter Wu1-2/+1
More efficient, but more importantly, less reading/more obvious.
2013-11-27Debug: Print JOGL version on startupPeter Wu1-0/+2
2013-11-27Exercise 1.2 Viewing (part 2)Peter Wu1-2/+10
This has odd behavior, modifying some perspective. NOTE: vDist is modified using scrolling, vWidth is changed using right-click + scroll.
2013-11-27Forgot to make eye point relative to center pointPeter Wu1-1/+8
Also fix comment (missing phi/theta description, typo in Eye_z).
2013-11-27Prevent EOL mess in the futurePeter Wu1-0/+1
Shoot the f*cking guy who thought it was a good idea to use TWO bytes for a line ending.
2013-11-27Robot draw methods finished, comments added.Frank v/d Haterd1-33/+229
Robot stickfigure methods finished, comments added.
2013-11-21Exercise 1.2 Viewing - set Eye parameterPeter Wu1-2/+23
2013-11-21robot drawingPeter Wu1-7/+139
2013-11-21robot parametersPeter Wu1-4/+15
2013-11-14Allow Escape to Quit the applicationPeter Wu1-0/+16
2013-11-14Improved exercise 1.1 (axis)Peter Wu1-25/+52
Documented steps better, reduce code duplication.
2013-11-14Add local javadoc folderPeter Wu1-1/+2
`${user.home}/...` did not work... just provide full path then. Ugly.
2013-11-14drawAxisFrame beginFrank v/d Haterd1-3/+24
2013-11-14Checking of RobotRace.zipPeter Wu29-0/+3347
Retrieved from http://www.win.tue.nl/~vanwijk/2IV60/RobotRace.zip md5 of zip: 8d63ada6ba0fe8b987ac85b607ab8a2d Removed: - nbproject/private/ - build/