Commit graph

101 commits

Author SHA1 Message Date
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
Rémi Oudin 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
Rémi Oudin 2a8b551355 Few bugs patched in spheroid. 2018-02-13 10:49:12 +01:00
Rémi Oudin e3d913fd61 Bouncing nearly works' 2018-02-13 01:02:58 +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 2f5c423cc7 Fix supposedly bad initialisation
@Guinness is this correct?
2018-02-12 18:45:53 +01:00
Théophile Bastian df865a3b48 Merge branch 'master' into bounce 2018-02-12 18:45:35 +01:00
Théophile Bastian a1cc442885 First observed bounce 2018-02-12 18:40:05 +01:00
Rémi Oudin 2861734258 Implicit surface operator should be centered in 0. 2018-02-12 18:36:59 +01:00
Rémi Oudin 9c37ead65d Merge new version with Perlin Noise 2018-02-12 18:32:58 +01:00
Rémi Oudin 26cac772d7 Y axis is vertical for OpenGL 2018-02-12 18:18:28 +01:00
Rémi Oudin f2f6e9cb76 Handling of bounces for perlin noise surfaces 2018-02-12 17:41:12 +01:00
Rémi Oudin 0987290111 Handling of perlin noise surfaces 2018-02-12 17:40:50 +01:00
Rémi Oudin 588ff14b33 Update makefile for Perlin Noise 2018-02-12 17:40:21 +01:00
Rémi Oudin 7b14f2e5f1 Generation of perlin noise structures 2018-02-12 17:40:00 +01:00
Rémi Oudin 1ee6875b5a Bounding box for spheroid, based on initial values. 2018-02-12 14:31:08 +01:00
Rémi Oudin 61f50c2861 Move operator in .cpp file 2018-02-12 14:15:30 +01:00
Rémi Oudin 1be55612d4 Missing function in header file 2018-02-12 14:14:50 +01:00
Rémi Oudin c2cd75a61c Add movement on y-axis 2018-02-12 13:54:39 +01:00
Théophile Bastian 48ef986f4f Use ImplicitSurface.center in marching cubes 2018-02-12 13:45:02 +01:00
Théophile Bastian 97966377f5 Merge commit 'cf0d7af' 2018-02-12 13:40:49 +01:00
Théophile Bastian cf0d7af712 Refactor code in prevision of hints support 2018-02-12 13:38:50 +01:00
Rémi Oudin 247528fe63 Horizontal drift 2018-02-12 13:19:56 +01:00
Rémi Oudin 21ee9ff0e6 Add min height for ball 2018-02-12 12:09:39 +01:00
Rémi Oudin 0f70e4e023 keep track of initial radius, for deformation 2018-02-12 12:08:50 +01:00
Rémi Oudin 19cb1eb343 min_height for bounce as a parameter 2018-02-12 12:06:44 +01:00
Rémi Oudin e80becdaee A ball has a min heihgt (for deformation) 2018-02-12 11:38:46 +01:00
Rémi Oudin 9e605b0fec Center is an attribute of ImplicitSurface.
This way the search space for Marching Cubes is way smaller.
2018-02-12 11:37:38 +01:00
Rémi Oudin 1e059742f4 Better number of iterations 2018-02-12 10:50:45 +01:00
Rémi Oudin 61933b9b78 A height shouldn't be negative. 2018-02-12 10:48:26 +01:00
Rémi Oudin dfbaa80e03 Debug of the physical model 2018-02-12 10:21:49 +01:00
Rémi Oudin d600f51a3a Update makefile with my .o files 2018-02-12 01:27:16 +01:00
Rémi Oudin e1c759e429 Operator should be const 2018-02-12 01:26:51 +01:00
Rémi Oudin a824763e3b Merge commit 2018-02-12 01:20:05 +01:00
Rémi Oudin 1dff2ab839 test for a ball 2018-02-12 01:12:31 +01:00
Rémi Oudin 006d2de34a Stream operator for Ball 2018-02-12 01:11:23 +01:00
Théophile Bastian d1d2811978 Enhance test for marching cubes 2018-02-12 00:56:35 +01:00