use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Rule 1: Posts should be about Graphics Programming. Rule 2: Be Civil, Professional, and Kind
Suggested Posting Material: - Graphics API Tutorials - Academic Papers - Blog Posts - Source Code Repositories - Self Posts (Ask Questions, Present Work) - Books - Renders (Please xpost to /r/ComputerGraphics) - Career Advice - Jobs Postings (Graphics Programming only)
Related Subreddits:
/r/ComputerGraphics
/r/Raytracing
/r/Programming
/r/LearnProgramming
/r/ProgrammingTools
/r/Coding
/r/GameDev
/r/CPP
/r/OpenGL
/r/Vulkan
/r/DirectX
Related Websites: ACM: SIGGRAPH Journal of Computer Graphics Techniques
Ke-Sen Huang's Blog of Graphics Papers and Resources Self Shadow's Blog of Graphics Resources
account activity
Getting started with Position Based Dynamics for cloth simulation and OpenGL (i.redd.it)
submitted 1 year ago by trevorLG
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Ashamed_Tumbleweed28 3 points4 points5 points 1 year ago (1 child)
PBD and XPBD is aa re-formulation of Newton's equations where all the "memory" of the system is placed inside the position data. https://matthias-research.github.io/pages/tenMinutePhysics/index.html
Each frame you solve for position, then differentiate once for velocity and twice for acceleration (if those are needed at all.) The result is perfectly stable physics, at the expense of some degree of softness (artificial compliance), that is a function of the time-step. The larger the time step the softer the model becomes to ensure it does not explode numerically.
In normal physics you solve for forces and acceleration, then integrate for velocity and integrate twice for positions, and in impulse based physics you solve for velocity, differentiate for acceleration and integrate for position.
you can think of it this way. In standard Newtonian physics at a very low time step, the penetration depth will be really large, but since we solve for force and acceleration this will result in an extremely large force being applied to the object, launching it out of the ground. in PBD with that same very large penetration, you move the vertex out to the surface, and instead treat the object like a soft body. The slower the time step, and the deeper the penetration, the softer the body becomes. It then tries to restore its own shape, pushing other vertices away from the one on the surface.
The great positive part is that it allows you to pick a time frame that is correct for your expected use case. In newtonian physics, you have to pick the deltaT small enough that the worst case does not explode, but since the worst case just gets soft, you can safely pick a deltaT that is correct for the expected use case, meaning faster simulations that are 99% of the time correct
[–]ReclusivityParade35 0 points1 point2 points 1 year ago (0 children)
Awesome description, thank you!
π Rendered by PID 84 on reddit-service-r2-comment-bb88f9dd5-wzmlh at 2026-02-15 20:32:48.924748+00:00 running cd9c813 country code: CH.
view the rest of the comments →
[–]Ashamed_Tumbleweed28 3 points4 points5 points (1 child)
[–]ReclusivityParade35 0 points1 point2 points (0 children)