16 - Simulation on the GPU

  Рет қаралды 21,098

Ten Minute Physics

Ten Minute Physics

Күн бұрын

Пікірлер: 33
@sean_vikoren
@sean_vikoren 2 жыл бұрын
This is really incredible content. My deepest gratitude.
@7steelrainbow
@7steelrainbow 2 жыл бұрын
In some paper (and the presentation slide in Eurographics 17 by Macklin) I've seen the word 'tail' used accounting for a hybrid method but I had no clue what that tail meant without seeing the distribution graph, and thus couldn't understand what "process everything else with Jacobi" meant in the slide. Finally I found the answer! Your tutorial video is like a gift to who struggles to understand PBD by oneself outside the academic field. I've read someone saying that it's a great supplement to PBD papers and I totally agree. Not only for PBD, the tutorials help me learn implementing physics simulation nicely in general. I deeply appreciate your sharing the knowledge.
@aditya_a
@aditya_a 2 жыл бұрын
This is so great, thank you so much! Will be super helpful when I will self study physically based animation next semester
@seeyouinthenextlifeprobably
@seeyouinthenextlifeprobably 2 жыл бұрын
looking forward to watching next videos
@vn6174
@vn6174 2 жыл бұрын
This series is truely amazing! Thank you for your effort and content!
@fizixx
@fizixx 2 жыл бұрын
New subscriber here. I have to commend you for citing a previous video (#9), and then seeing that you number your videos so "#9" could actually be located! That's a great touch I wish other y-tbrs' did that. 😎
@imaginingPhysics
@imaginingPhysics 5 ай бұрын
Love it. Keep making more! Especially more stuff with shaders! Thanks.
@sublucid
@sublucid 2 жыл бұрын
Awesome example! I just submitted a PR to the pages repo which improves the framerate by ~15fps on my 3080 (with a minor tweak to the targetFps timing code). Thank you for these informative examples!
@adinesh7989
@adinesh7989 2 жыл бұрын
Thank you Mathias ❤
@anomyymi0108
@anomyymi0108 2 жыл бұрын
What a timing, just yesterday left a comment about wondering how parallelization issues like these are solved by the pros. Okay so now how do you do self-collision? I feel like you doing the hashing only every N substeps was foreshadowing something ... But excellent stuff, thank you.
@TenMinutePhysics
@TenMinutePhysics 2 жыл бұрын
Thanks. Yes, I plan to do a tutorial on hashing on the GPU at some point. The algorithm is a bit different from the one for the CPU I explained in tutorial 11.
@ilivethatway
@ilivethatway 2 жыл бұрын
Great content, as always :3
@zeyingxu9788
@zeyingxu9788 2 жыл бұрын
Thank you sir very much for this amazing tutorial.
@PawelGrzelak
@PawelGrzelak Жыл бұрын
Thank you, great info source
@okifunearl8511
@okifunearl8511 2 жыл бұрын
soooooo Very looking forward to the next tutorial😶
@samuelyigzaw
@samuelyigzaw 2 жыл бұрын
This is exactly what I've been looking for! I couldn't find anything on doing physics on GPUs. I think one of the reasons was that the constraints contain branching, which GPUs aren't good for. I'm not sure if that's correct, so please let me know if I'm wrong there. Also, I'm wondering why you move the positions out of the GPU in order to render them. Aren't they in the perfect spot to be rendered? The GPU is where the particle shaders are after all. If I'm confused, please let me know, thanks!
@theojonchier1554
@theojonchier1554 2 жыл бұрын
My understanding is that there is no direct translation from Warp to OpenGL buffer. Each has a separate context and thus reading a buffer created from warp would just be an access violation if read from OpenGL. If you do everything using GL or Vulkan compute this limitation would be gone.
@johnpelitidis6297
@johnpelitidis6297 8 ай бұрын
You are amazing.
@JoshyLats
@JoshyLats 2 жыл бұрын
Thanks so much, this is so good
@oostenjadenhtv
@oostenjadenhtv 2 жыл бұрын
It seems that scaling the correction vectors by 1/4 is prone to explosions in high detailed tetrahedral meshes. To compensate, I scale the correction vectors by 1/(num adjacent constraints) but as you state in the notes, this causes a violation of energy conservation (which I am observing in my implementation). Do you have any tips on how to recover from this while keeping the simulation stable?
@ZioBlu
@ZioBlu 2 жыл бұрын
Really fantastic class. I've been following every new video. It's really generous of you, I've been learning a lot and I'm very grateful. I have a question: I see that colored graphs are used to be able to parallelize the springs solver without using "mutexes" (I'm not a GPU expert, so not sure this is the right terminology). When the Jacobi Solver is used instead (for stretch/bend springs, from what I can understand), constraints are not colored, and the result is written to a temporary delta corrections array right away. What I don't understand is, if we don't use colored constraints here, won't I still incur into racing conditions when writing to the temporary corrections array? I didn't see the use of any mutex in the code to avoid this for this specific case. Thank you again! EDIT: Sorry, after re-watching the video, I realized the the atomic add command takes care of thread synchronization.
@DasAntiNaziBroetchen
@DasAntiNaziBroetchen Ай бұрын
Why do you need thread synchronization in the jacobi case though? I thought the whole point of the jacobi method was to avoid atomics.
@robbie_
@robbie_ Жыл бұрын
How is collision detection performed?
@r.d.7575
@r.d.7575 2 жыл бұрын
Great video! Warp sounds like a wonderful invention. But, the graph edge colouring sounds a bit unclear. Could you make a separate video on that ?
@naztar4323
@naztar4323 Жыл бұрын
I am new to this but I just want to know why cant conjugate gradient be used to slove the constraints in parrarel
@WinstonDodson
@WinstonDodson 2 жыл бұрын
Mathias - great video. I would like to run the code on a google colab runtime. Do you have any hints? Thanks!
@K31TH3R
@K31TH3R 2 жыл бұрын
I know this is a long shot, but do you by any chance still have the Novodex Physics Rocket tech demo? It has essentially vanished from the internet with no working mirrors. I think it would be amazing to compare the performance on modern CPU's. Sorry for the off topic comment, and thanks for any response!
@Srinivasa-no-eqn-without-god
@Srinivasa-no-eqn-without-god Жыл бұрын
Can you tell in MATLAB code to sir
@DasAntiNaziBroetchen
@DasAntiNaziBroetchen Ай бұрын
Why are you copying the positions back to CPU, just to push them back to the GPU again?
@robertoguerra5375
@robertoguerra5375 6 ай бұрын
Can someone simulate a gearbox or a pulley system?
@DasAntiNaziBroetchen
@DasAntiNaziBroetchen Ай бұрын
For the price of 999 USD I will even simulate you!
@perpetualrabbit
@perpetualrabbit 9 ай бұрын
Unfortunate that you use X for position and P also for position. This is very confusing for me because P usually is used for momentum in physics, which is vector velocity times mass for a particle.
Coding Adventure: Simulating Fluids
47:52
Sebastian Lague
Рет қаралды 2 МЛН
22  - How to write a rigid body simulator
16:35
Ten Minute Physics
Рет қаралды 6 М.
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН
11 - Finding collisions among thousands of objects blazing fast
11:04
Ten Minute Physics
Рет қаралды 26 М.
CPU vs GPU vs TPU vs DPU vs QPU
8:25
Fireship
Рет қаралды 1,9 МЛН
Programming GPUs with Fortran
43:09
Sharcnet HPC
Рет қаралды 9 М.
Coding Challenge #132: Fluid Simulation
54:31
The Coding Train
Рет қаралды 655 М.
E00: Software Drag Racing:  C++ vs C# vs Python - Which Will Win?
23:30
Writing Code That Runs FAST on a GPU
15:32
Low Level
Рет қаралды 571 М.
Become a bash scripting pro - full course
36:00
CODE IS EVERYTHING
Рет қаралды 71 М.
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН