604 Commits

Author SHA1 Message Date
Irlan
e28fd2e07f Simplify soft body initialization and solver
Thanks Open Tissue!!
2019-05-21 20:36:46 -03:00
Irlan
e1b5e615e3 Generate tetrahedral cylinder. Also added some assertion code. 2019-05-14 13:47:04 -03:00
Irlan
c972052f3b Update softbody_contact_solver.cpp 2019-05-14 09:37:25 -03:00
Irlan
4980e3c7f0 Update comments 2019-05-14 09:37:17 -03:00
Irlan
33a661cb32 Update comments 2019-05-13 19:12:46 -03:00
Irlan
a40a872efa Update readme.md 2019-05-13 19:08:40 -03:00
Irlan
637199b5fd New feature: soft bodies! 2019-05-13 19:03:23 -03:00
Irlan
f1c4cf4679 Destroy contact if type changed 2019-05-13 16:24:09 -03:00
Irlan
6f50645601 Use a local grid mesh 2019-05-13 16:23:46 -03:00
Irlan
31cac5aacd Write once ray cast on triangle function 2019-05-13 16:23:05 -03:00
Irlan
3e5ff2257a Add element write operator 2019-05-10 10:51:50 -03:00
Irlan
8d0295f5b7 Simplify sparsity structure 2019-05-10 10:51:05 -03:00
Irlan
389a45bf9e Add negate operator 2019-05-10 10:50:28 -03:00
Irlan
bb2f11f948 Use clean separate row value structure that doesn't contain list pointers in the view 2019-05-04 19:25:49 -03:00
Irlan
b448acfec6 Add a view for sparse symmetric matrix to exploit cache coherency. This way we can increase maximum iteration count still with good performance. 2019-05-04 19:17:40 -03:00
Irlan
b5edb9b1c7 Update soft_body.h 2019-05-04 15:56:47 -03:00
Irlan
f567ac4738 Bugfix 2019-05-02 19:35:39 -03:00
Irlan
26092d3755 Remove unused 2019-04-30 10:41:30 -03:00
Irlan
c28069680e Put quaternion constraint stuff inside namespace 2019-04-30 10:40:49 -03:00
Irlan
c71b6edc72 Put quaternion constraint stuff inside namespace 2019-04-30 10:10:15 -03:00
Irlan
7d4bb26145 Don't allocate edge-vertex pairs if subdivision is zero 2019-04-23 10:43:54 -03:00
Irlan
262cd50523 Output all memory counters 2019-04-23 10:32:27 -03:00
Irlan
25b7ce3f40 Output iterations on initial overlap and decrease tolerance 2019-04-23 05:45:47 -03:00
Irlan
d02a1f512e Removed maximum iteration count as the unilateral root solver might take a large number of iterations to converge. 2019-04-23 04:28:36 -03:00
Irlan
5c90059689 Optimization 2019-04-22 17:11:42 -03:00
Irlan
a5a49df8c1 Begin pointer can change after reallocation 2019-04-22 14:38:51 -03:00
Irlan
ecb4df45f4 Array pointers can change after reallocation 2019-04-22 14:33:59 -03:00
Irlan
d2d8ade611 Rollback 2019-04-22 13:07:00 -03:00
Irlan
c6a3e47176 Consistency 2019-04-21 16:32:40 -03:00
Irlan
490a2963df Mesh generation to everybody
Add cylinder mesh generation
Mesh generation can be used by everyone
Mesh generation also gives vertex normals for convenience
2019-04-21 16:06:51 -03:00
Irlan
77ad799d94 Add comment 2019-04-20 13:57:12 -03:00
Irlan
1e85ea0a36 Handle case where subdivision in zero 2019-04-20 13:51:03 -03:00
Irlan
323ba37b73 Use a octosphere instead of a icosahedron 2019-04-20 13:45:18 -03:00
Irlan
34c5d6f157 Remove some duplicated code. 2019-04-20 13:27:28 -03:00
Irlan
23fa2bd162 Bugfix 2019-04-20 11:54:33 -03:00
Irlan
9c16391700 Optimize sphere mesh 2019-04-20 11:52:17 -03:00
Irlan
3adebe68c2 Removed a condition which isn't reached during the sphere mesh generation. 2019-04-19 09:58:02 -03:00
Irlan
14f6b279d2 Remove SPHERE_MESH_H after #endif. 2019-04-19 08:31:35 -03:00
Irlan
077d1eead5 Use assert instead of B3_ASSERT. 2019-04-19 08:31:08 -03:00
Irlan
3e922fc4ec Merge branch 'master' of https://github.com/irlanrobson/bounce 2019-04-18 19:44:18 -03:00
Irlan
399a6efc72 Use sphere mesh. Add soft body test. 2019-04-18 19:44:12 -03:00
Irlan
695514989e Removed a large cloth radius. The particle radius should be used to avoid visual artifacts and is a small value in typical situations. 2019-04-18 18:51:49 -03:00
Irlan
2f9abcbe92 Applied a bugfix on constraint solver and removed some frozen code 2019-04-18 18:48:10 -03:00
Irlan
923a069408 Allow moving while jumping. Disable gravity when grounded. Change some parameters. 2019-04-18 11:05:13 -03:00
Irlan
36f2484663 Assert triangle area against zero instead of epsilon 2019-04-18 11:03:28 -03:00
Irlan
df33dd5cab Setter and getter for spring mode cloth dragging 2019-04-18 11:02:04 -03:00
Irlan Robson
5c2cc41254
Update license.txt 2019-04-14 11:24:16 -03:00
Irlan Robson
255f7363cb
Update license.txt 2019-04-14 11:23:29 -03:00
Irlan
5b95cb4e1f Equal instad of less than or equal 2019-04-10 08:26:19 -03:00
Irlan
d34fce1e4d Just equal instead of less than or equal 2019-04-10 08:15:55 -03:00