Commit Graph

137 Commits

Author SHA1 Message Date
Théophile Bastian 24d21d77cb Use rendering at startup only for perlin ground 2018-02-14 17:22:27 +01:00
Théophile Bastian ffaa4ed7c8 Add instructions to README.md 2018-02-14 16:55:51 +01:00
Théophile Bastian 3d0f723016 Update README with links 2018-02-14 14:34:47 +01:00
Théophile Bastian 06c71feaa8 Fix initial position 2018-02-14 14:16:13 +01:00
Théophile Bastian bfe3776914 Add switch -azerty and -qwerty 2018-02-14 14:09:44 +01:00
Théophile Bastian bb530a8302 Implement moving camera 2018-02-14 14:06:35 +01:00
Théophile Bastian 8051f4203f Allow the camera to follow the ball
But when the ground is not textured, this looks just as if the ball was
not moving… :(
2018-02-14 13:23:27 +01:00
Théophile Bastian baaa5e4057 Control pause and speed with keyboard
Keys: space for toggle pause, < and > for speed control, 0 to reset
speed
2018-02-14 13:22:31 +01:00
Théophile Bastian 8bd230c010 Remove lag: lower resolution for ground 2018-02-14 13:21:49 +01:00
Théophile Bastian eaa730f5dc Integrate Perlin noise switch
Also make Perlin noise ground wider and less ugly
2018-02-14 13:16:01 +01:00
Rémi Oudin b208cc237e Perlin Ground integrated 2018-02-14 12:47:45 +01:00
Théophile Bastian 3bf61a7409 Enhance slightly the scene (floor + background) 2018-02-14 11:43:49 +01:00
Théophile Bastian 3e3ec57bb5 Add a color attribute to meshes and surfaces 2018-02-14 11:41:55 +01:00
Rémi Oudin 818aaf01a9 Finished rebase 2018-02-14 11:41:24 +01:00
Rémi Oudin d8dafd3823 Better parameters 2018-02-14 10:50:03 +01:00
Rémi Oudin d23f05de14 Woops, wrong variables 2018-02-14 10:34:54 +01:00
Rémi Oudin 2afd89dbf3 Fractional Brownian Motion 2018-02-13 23:38:24 +01:00
Rémi Oudin 6823552ee7 Error after rebase 2018-02-13 22:56:44 +01:00
Rémi Oudin 041a1236c0 missing interface in header file 2018-02-13 22:55:12 +01:00
Rémi Oudin f6f789cc2e Utility function 2018-02-13 22:55:12 +01:00
Rémi Oudin 14f3b8afdf Display Perlin ground 2018-02-13 22:54:41 +01:00
Rémi Oudin 75fc077007 No more glitch. 2018-02-13 22:54:41 +01:00
Rémi Oudin aafbd8ec9c Add a get_surface method to perlin ground 2018-02-13 22:54:41 +01:00
Rémi Oudin 083bc3c654 Many many changes 2018-02-13 22:54:41 +01:00
Rémi Oudin 538930bd71 Bug fix (y and z axis) + pragma 2018-02-13 22:51:51 +01:00
Rémi Oudin 15ee31c30e Integration of the grounds 2018-02-13 22:51:51 +01:00
Rémi Oudin d484a18da5 Add some structure for the ground. 2018-02-13 22:49:30 +01:00
Rémi Oudin 0db091f76e Min_height evolves in time. 2018-02-13 22:45:29 +01:00
Rémi Oudin c0a793bc97 Reduction of speed on the ground 2018-02-13 22:20:58 +01:00
Théophile Bastian 61ef03e955 Implement MarchingCubes' hint
Now, MarchingCubes does not walk the whole space anymore
2018-02-13 18:43:02 +01:00
Théophile Bastian 7b374c70ae Surfaces now provide a location hint
This is supposed to be a point in space close to the surface
2018-02-13 18:42:15 +01:00
Théophile Bastian 5b6e61cec9 Enhance light rendering 2018-02-13 17:23:58 +01:00
Théophile Bastian 640f801441 Add bounce as a Makefile target 2018-02-13 16:42:24 +01:00
Rémi Oudin dc213cdeeb Fix bouncing when staying on the ground.
Now, there is still a min_p that is respected.
2018-02-13 16:42:24 +01:00
Théophile Bastian a0db41689c Change the test demo 2018-02-13 16:41:30 +01:00
Théophile Bastian b404c2301f Add debugging display (on compilation switches)
DEBUG_DISPLAY_WIREFRAME: show a wireframe structure
DEBUG_DISPLAY_NORMAL: show the vertices' normal vectors
2018-02-13 16:41:30 +01:00
Théophile Bastian aaaebdc042 Normalize normals to norm 1 2018-02-13 16:41:30 +01:00
Théophile Bastian 4d100731a2 Fix: invert spheroid bounding box axes 2018-02-13 16:41:30 +01:00
Théophile Bastian ab0cac72c3 Make Makefile not recompile everything 2018-02-13 16:41:30 +01:00
Théophile Bastian 56d8e22f21 Use openGL lightings — still kind of bad for now 2018-02-13 16:41:30 +01:00
Théophile Bastian 36bc8e1b5c Use normals for implicit surfaces 2018-02-13 16:41:30 +01:00
Théophile Bastian 8c254dff15 Use normals in glut render 2018-02-13 16:41:30 +01:00
Théophile Bastian d282b93298 Add debug code for implicit normals 2018-02-13 16:41:30 +01:00
Théophile Bastian 385a03ddbc Handle normals in meshes 2018-02-13 16:41:30 +01:00
Théophile Bastian 2789acb5c5 Implicit surfaces: add normal vector 2018-02-13 16:41:30 +01:00
Rémi Oudin ebf3f7a267 Remove debug lines 2018-02-13 12:47:55 +01:00
Rémi Oudin f4b1299d3e Avoid entering the block if we already stopped bouncing 2018-02-13 12:47:33 +01:00
Rémi Oudin afc7b4a3b9 reduction of speed on x and z axis 2018-02-13 12:46:47 +01:00
Rémi Oudin 2b1e9d192a Remove useless warning 2018-02-13 12:39:46 +01:00
Théophile Bastian 8746f6bf6a Turn off time-related debug messages 2018-02-13 11:49:13 +01:00