Commit graph

116 commits

Author SHA1 Message Date
75fc077007 No more glitch. 2018-02-13 22:54:41 +01:00
aafbd8ec9c Add a get_surface method to perlin ground 2018-02-13 22:54:41 +01:00
083bc3c654 Many many changes 2018-02-13 22:54:41 +01:00
538930bd71 Bug fix (y and z axis) + pragma 2018-02-13 22:51:51 +01:00
15ee31c30e Integration of the grounds 2018-02-13 22:51:51 +01:00
d484a18da5 Add some structure for the ground. 2018-02-13 22:49:30 +01:00
0db091f76e Min_height evolves in time. 2018-02-13 22:45:29 +01:00
c0a793bc97 Reduction of speed on the ground 2018-02-13 22:20:58 +01:00
61ef03e955 Implement MarchingCubes' hint
Now, MarchingCubes does not walk the whole space anymore
2018-02-13 18:43:02 +01:00
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
5b6e61cec9 Enhance light rendering 2018-02-13 17:23:58 +01:00
640f801441 Add bounce as a Makefile target 2018-02-13 16:42:24 +01:00
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
a0db41689c Change the test demo 2018-02-13 16:41:30 +01:00
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
aaaebdc042 Normalize normals to norm 1 2018-02-13 16:41:30 +01:00
4d100731a2 Fix: invert spheroid bounding box axes 2018-02-13 16:41:30 +01:00
ab0cac72c3 Make Makefile not recompile everything 2018-02-13 16:41:30 +01:00
56d8e22f21 Use openGL lightings — still kind of bad for now 2018-02-13 16:41:30 +01:00
36bc8e1b5c Use normals for implicit surfaces 2018-02-13 16:41:30 +01:00
8c254dff15 Use normals in glut render 2018-02-13 16:41:30 +01:00
d282b93298 Add debug code for implicit normals 2018-02-13 16:41:30 +01:00
385a03ddbc Handle normals in meshes 2018-02-13 16:41:30 +01:00
2789acb5c5 Implicit surfaces: add normal vector 2018-02-13 16:41:30 +01:00
ebf3f7a267 Remove debug lines 2018-02-13 12:47:55 +01:00
f4b1299d3e Avoid entering the block if we already stopped bouncing 2018-02-13 12:47:33 +01:00
afc7b4a3b9 reduction of speed on x and z axis 2018-02-13 12:46:47 +01:00
2b1e9d192a Remove useless warning 2018-02-13 12:39:46 +01:00
8746f6bf6a Turn off time-related debug messages 2018-02-13 11:49:13 +01:00
188d43cb50 Better animation
Bounces are slower, final position is the ball undeformed.
Also, moves continuously when it keep staying on the ground.
2018-02-13 10:51:07 +01:00
2a8b551355 Few bugs patched in spheroid. 2018-02-13 10:49:12 +01:00
e3d913fd61 Bouncing nearly works' 2018-02-13 01:02:58 +01:00
0bae04d802 Fix clock being real and not user clock 2018-02-12 21:53:35 +01:00
2f5c423cc7 Fix supposedly bad initialisation
@Guinness is this correct?
2018-02-12 18:45:53 +01:00
df865a3b48 Merge branch 'master' into bounce 2018-02-12 18:45:35 +01:00
a1cc442885 First observed bounce 2018-02-12 18:40:05 +01:00
2861734258 Implicit surface operator should be centered in 0. 2018-02-12 18:36:59 +01:00
9c37ead65d Merge new version with Perlin Noise 2018-02-12 18:32:58 +01:00
26cac772d7 Y axis is vertical for OpenGL 2018-02-12 18:18:28 +01:00
f2f6e9cb76 Handling of bounces for perlin noise surfaces 2018-02-12 17:41:12 +01:00
0987290111 Handling of perlin noise surfaces 2018-02-12 17:40:50 +01:00
588ff14b33 Update makefile for Perlin Noise 2018-02-12 17:40:21 +01:00
7b14f2e5f1 Generation of perlin noise structures 2018-02-12 17:40:00 +01:00
1ee6875b5a Bounding box for spheroid, based on initial values. 2018-02-12 14:31:08 +01:00
61f50c2861 Move operator in .cpp file 2018-02-12 14:15:30 +01:00
1be55612d4 Missing function in header file 2018-02-12 14:14:50 +01:00
c2cd75a61c Add movement on y-axis 2018-02-12 13:54:39 +01:00
48ef986f4f Use ImplicitSurface.center in marching cubes 2018-02-12 13:45:02 +01:00
97966377f5 Merge commit 'cf0d7af' 2018-02-12 13:40:49 +01:00
cf0d7af712 Refactor code in prevision of hints support 2018-02-12 13:38:50 +01:00