Search found 16 matches

by mathis
Thu Jul 29, 2010 7:15 am
Forum: Links, Papers, Libraries, Demos, Movies, Comparisons
Topic: Lagoa Multiphysics
Replies: 3
Views: 10567

Re: Lagoa Multiphysics

I haven't tried it myself, so I don't know. Given the enormous particle counts in the example, I guess that some thousands of particles should be possible in real-time -- but that's just my guess. Would be interesting to consider for Bullet once we have its OpenCL-version. With the current version y...
by mathis
Wed Jul 28, 2010 10:33 am
Forum: Links, Papers, Libraries, Demos, Movies, Comparisons
Topic: Lagoa Multiphysics
Replies: 3
Views: 10567

Lagoa Multiphysics

It's some days old now, but maybe some of you haven't seen it yet: http://vimeo.com/13457383

Lagoa Multiphysics is a quite impressive plug-in for Softimage XSI's node system ICE.
by mathis
Fri Dec 04, 2009 4:22 pm
Forum: Research and development discussion about Collision Detection and Physics Simulation
Topic: Baraff/Witkin's integration matrix not positive: what to do?
Replies: 14
Views: 84491

Re: Baraff/Witkin's integration matrix not positive: what to do?

Well, it is not PD only for large time steps and large stiffness/damping constants, but as their paper is entitled "large steps in cloth simulation", they should have realized this :wink: I realized it already with my second test of my implementation where the simulation just exploded. Aft...
by mathis
Mon Nov 30, 2009 9:19 am
Forum: Research and development discussion about Collision Detection and Physics Simulation
Topic: Baraff/Witkin's integration matrix not positive: what to do?
Replies: 14
Views: 84491

Re: Baraff/Witkin's integration matrix not positive: what to do?

The formulas are the same for a uv-aligned triangle. Let (x0, x1, x2) be such a triangle with the uv-coordinates (0, 0), (L1, 0), (0, L2). L1 and L2 are the rest lengths of the edges x0-x1 and x0-x2, respectively. This fulfills the requirement of the paper that |dw/du| = |dw/dv| = 1 if w is the rest...
by mathis
Mon Nov 30, 2009 8:20 am
Forum: Research and development discussion about Collision Detection and Physics Simulation
Topic: Baraff/Witkin's integration matrix not positive: what to do?
Replies: 14
Views: 84491

Re: Baraff/Witkin's integration matrix not positive: what to do?

Yes, they only use stretch/bend/shear-terms, but the stretch-term is a spring. They have a more general setting with triangles and uv-coordinates so that the behaviour is not so dependent on the tesselation, but for a triangle with one u- and one v-parallel edge, the formula for the stretch-term is ...
by mathis
Sat Nov 28, 2009 4:20 pm
Forum: Research and development discussion about Collision Detection and Physics Simulation
Topic: Baraff/Witkin's integration matrix not positive: what to do?
Replies: 14
Views: 84491

Re: Baraff/Witkin's integration matrix not positive: what to do?

They state: "The matrices we ultimately hand to our CG method are positive definite." and "Let us define the symmetric positive definite matrix A by A = M - h df/dv - h^2 df/dx." If you read mathematical papers on the CG method, there is the requirement of positivity. Maybe that ...
by mathis
Thu Nov 26, 2009 10:14 am
Forum: Research and development discussion about Collision Detection and Physics Simulation
Topic: Baraff/Witkin's integration matrix not positive: what to do?
Replies: 14
Views: 84491

Re: Baraff/Witkin's integration matrix not positive: what to do?

if you read the cloth papers people always state that the matrix is PD. Yes, this is also my impression. These papers seem to be a bit optimistic. The case of non-PD is not academic, it occurs already for typical time steps together with stiff cloth. For positive definiteness, you get the condition...
by mathis
Thu Nov 26, 2009 9:28 am
Forum: Research and development discussion about Collision Detection and Physics Simulation
Topic: Baraff/Witkin's integration matrix not positive: what to do?
Replies: 14
Views: 84491

Re: Baraff/Witkin's integration matrix not positive: what to do?

Thanks for the reply, Dirk. In your second post, the derivation is wrong (check the physical units). I also get del_E/del_x = k * ( |x| - L ) * x / |x| Then write this as: del_E/del_x = k * ( 1 - L/|x| ) * x With del_(1/|x|)/del_x = -1/|x|^3 * x I get del_2E/del_x2 = k * ( 1 - L/|x| ) * E3 + (k * L ...
by mathis
Mon Nov 23, 2009 11:16 am
Forum: Research and development discussion about Collision Detection and Physics Simulation
Topic: Baraff/Witkin's integration matrix not positive: what to do?
Replies: 14
Views: 84491

Baraff/Witkin's integration matrix not positive: what to do?

I implemented the algorithm described by Baraff and Witkin in "Large Steps in Cloth Simulation" (SIGGRAPH 98) and encountered severe instabilities with large stiffness and damping values. I found out the reason, namely that the system matrix used by the implicit integration is NOT positive...
by mathis
Mon Oct 26, 2009 9:17 am
Forum: General Bullet Physics Support and Feedback
Topic: Adaptive number of iterations of constraint solver
Replies: 1
Views: 2472

Re: Adaptive number of iterations of constraint solver

OK, that high number of iterations is due to a very large (and thus not recommended) mass ratio: the mass of the sphere is 300 times larger than that of the mounted cylinder. Nevertheless, my question remains if an adaptive number of iterations is a good or bad idea.
by mathis
Fri Oct 23, 2009 6:41 pm
Forum: General Bullet Physics Support and Feedback
Topic: Adaptive number of iterations of constraint solver
Replies: 1
Views: 2472

Adaptive number of iterations of constraint solver

The constraint solver uses a constant number of iterations (m_numIterations) with a default value of 10. While this works fine in most cases, there are situations where you need a lot more iterations. For example, I have a cylinder which is mounted on a horizontal hinge with fixed position in the wo...
by mathis
Wed Sep 30, 2009 9:38 am
Forum: General Bullet Physics Support and Feedback
Topic: Bounciness of Slider Constraint
Replies: 2
Views: 3473

Re: Bounciness of Slider Constraint

Thanks for the explanation! But still the question remains why I cannot get a bouncing behaviour with the current implementation, and why it works fine when I remove the conditions?
by mathis
Tue Sep 29, 2009 1:40 pm
Forum: General Bullet Physics Support and Feedback
Topic: Bounciness of Slider Constraint
Replies: 2
Views: 3473

Bounciness of Slider Constraint

I am testing the slider constraint, and I would like to have a bouncing behaviour. I played with the parameters, but couldn't find a satisfying set-up. Then I played with the code, and I can get a bouncing behaviour if I remove the conditions (vel < 0) and (newc > info->m_constraintError[srow]) when...
by mathis
Wed Sep 02, 2009 8:35 am
Forum: General Bullet Physics Support and Feedback
Topic: Bug in slider constraint
Replies: 4
Views: 4960

Re: Bug in slider constraint

The second term seems to be OK even if the angular velocities differ. If you take my equation p * (vA - vB) + ((wB_t - wA_t) x p) * omegaA + ((wB_R * fB_t) x p) * (omegaA - omegaB) = 0 and the corresponding equation seen from B p * (vA - vB) + ((wB_t - wA_t) x p) * omegaB + ((wA_R * fA_t) x p) * (om...
by mathis
Wed Sep 02, 2009 5:31 am
Forum: General Bullet Physics Support and Feedback
Topic: Bug in slider constraint
Replies: 4
Views: 4960

Re: Bug in slider constraint

Thanks for the explanation of the mass weighting. The existing code does mot mean that angular velocities of BodyA and BodyB are equal. It uses to vectors p and q perpendicular to the slider axis and assumes that projections of angular velocities to these axes are equal. Hmm, is this really true? If...