I am a greenhand.My English is poor.I hope somebody can understand what I mean
The function resolveSingleConstraintRowLowerLimit()(at btSequentialImpluseConstraintSolver.cpp) is PGS,But where can I find that member variable m_rhs is setted.
Who can give me some information about PGS.
-
- Posts: 21
- Joined: Fri Oct 14, 2011 6:18 am
Re: Who can give me some information about PGS.
I got it.setupContactConstraint() and solveGroupCacheFriendlySetup() do it.But I can not understand what function can do.Anybody can give me some information?
-
- Posts: 463
- Joined: Fri Nov 30, 2012 4:50 am
Re: Who can give me some information about PGS.
Simple answer is: You don't need any of that information to use Bullet, just follow the sample code and you can use th engine.
For more information on the engine development side, the papers section has a list of materials that will explain how PGS, multibody, and the MLCP solvers work, as well as how the physics problems are set up.
For more information on the engine development side, the papers section has a list of materials that will explain how PGS, multibody, and the MLCP solvers work, as well as how the physics problems are set up.
-
- Posts: 21
- Joined: Fri Oct 14, 2011 6:18 am
Re: Who can give me some information about PGS.
I'm transplant collision code on CPU to GPU.So I had to understand it.
-
- Posts: 463
- Joined: Fri Nov 30, 2012 4:50 am
Re: Who can give me some information about PGS.
I suggest you take a look at the Bullet3 main on github, there's already work on exactly what you want.ljb wrote:I'm transplant collision code on CPU to GPU.So I had to understand it.
As for collision code, the line you are quoting has nothing to do with collision (at least not directly), you need to look at the collision world source rather than dynamics world ones.
-
- Posts: 21
- Joined: Fri Oct 14, 2011 6:18 am
Re: Who can give me some information about PGS.
thx,That is a greate information.I'm trying to study it.
-
- Posts: 21
- Joined: Fri Oct 14, 2011 6:18 am
Re: Who can give me some information about PGS.
I build the demo,but I can not feel any speedup. wrong?
You do not have the required permissions to view the files attached to this post.
-
- Site Admin
- Posts: 4221
- Joined: Sun Jun 26, 2005 6:43 pm
- Location: California, USA
Re: Who can give me some information about PGS.
You need a high-end desktop GPU with the right GPU/OpenCL drivers to see any speed up, for example an AMD Radeon 7970 or newer, or an NVIDIA GTX 680 or better. There is no expected benefit of trying to run the GPU accelerated physics on a low-end desktop GPU or a laptop GPU.
Thanks,
Erwin
Thanks,
Erwin
-
- Posts: 21
- Joined: Fri Oct 14, 2011 6:18 am
Re: Who can give me some information about PGS.
1)Thanks a lot.
2)Anthor question:I find PGS in btSolveProjectedGaussSeidel.h.I can't trace code there! What should I do?
2)Anthor question:I find PGS in btSolveProjectedGaussSeidel.h.I can't trace code there! What should I do?
-
- Site Admin
- Posts: 4221
- Joined: Sun Jun 26, 2005 6:43 pm
- Location: California, USA
Re: Who can give me some information about PGS.
btSolveProjectedGaussSeidel is a simplified PGS solver that is used in combination with an MLCP solver.
See this snippet in Bullet/Demos/ForkLiftDemo how to use it:
if (useMCLPSolver)
{
//btDantzigSolver* mlcp = new btDantzigSolver();
btSolveProjectedGaussSeidel* mlcp = new btSolveProjectedGaussSeidel;
btMLCPSolver* sol = new btMLCPSolver(mlcp);
m_constraintSolver = sol;
} else
{
m_constraintSolver = new btSequentialImpulseConstraintSolver();
}
The btSequentialImpulseConstraintSolver is also PGS, but with many improvements and optimizations.
See this snippet in Bullet/Demos/ForkLiftDemo how to use it:
if (useMCLPSolver)
{
//btDantzigSolver* mlcp = new btDantzigSolver();
btSolveProjectedGaussSeidel* mlcp = new btSolveProjectedGaussSeidel;
btMLCPSolver* sol = new btMLCPSolver(mlcp);
m_constraintSolver = sol;
} else
{
m_constraintSolver = new btSequentialImpulseConstraintSolver();
}
The btSequentialImpulseConstraintSolver is also PGS, but with many improvements and optimizations.
-
- Posts: 21
- Joined: Fri Oct 14, 2011 6:18 am
Re: Who can give me some information about PGS.
Thank a lot,I'll try it.
I have finished code on Projected Jacobi.
I have finished code on Projected Jacobi.
You do not have the required permissions to view the files attached to this post.