Commit graph

23 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 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 eaa730f5dc Integrate Perlin noise switch
Also make Perlin noise ground wider and less ugly
2018-02-14 13:16:01 +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
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 5b6e61cec9 Enhance light rendering 2018-02-13 17:23:58 +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 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 0bae04d802 Fix clock being real and not user clock 2018-02-12 21:53:35 +01:00
Théophile Bastian a1cc442885 First observed bounce 2018-02-12 18:40:05 +01:00
Théophile Bastian b614979c7a GlutRender.cpp: fix tab indentation 2018-02-06 22:15:35 +01:00
Théophile Bastian 7e797980ac Enable depth buffering 2018-02-06 22:15:19 +01:00
Théophile Bastian 66d6d89aeb Randomizing face colour for each face
Allows to easily identify each face.
2018-02-06 21:26:18 +01:00
Théophile Bastian 6e89298950 Use mesh center everywhere else 2018-02-06 21:08:37 +01:00
Théophile Bastian c179b1049f Make basic glut renderer work 2018-02-06 19:10:08 +01:00
Théophile Bastian d1c3cbe498 Add missing pragma once on headers 2018-02-06 19:07:07 +01:00
Théophile Bastian 5c19700e42 Create a basic glut renderer — yet untested 2018-01-28 23:03:36 +01:00