Gezinmeyi atla
This one took me almost 2 years to master, soon every Threejs dev will master it with a simple…
0:00 / 0:26

This one took me almost 2 years to master, soon every Threejs dev will master it with a simple…

Renaud

@onirenaud13 B takipçi

X profili
1.921 beğeniİndirOrijinal gönderi

131.159 görüntüleme

This one took me almost 2 years to master, soon every Threejs dev will master it with a simple Import: Smoothed Particle Hydrodynamics Simulation, 2D and 3D, optimized with Spatial Hashing and Compute Shaders. Optimized for WebGPURenderer with complete TSL compatibility!!

61 Yorum

Yorumlar X (Twitter) üzerindeki orijinal gönderiden alınmıştır

  • Michel Van de gaer profil fotoğrafı

    @MichelVandegaer

    Whoah, nice!! Could you add a Torus with a spinning spiralled profile? Plz. 🙏😁

    15 beğeni

  • Renaud profil fotoğrafı

    @onirenaud

    Ouch, last time I implemented rigid bodies in a fluid simulation it was for MLS-MPM and it was quite an adventure. This one might take a while but ultimately I hope so yes! 😁

    9 beğeni

  • Michel Van de gaer profil fotoğrafı

    @MichelVandegaer

    It can be 'easier' by making SPH particles rigid (perhaps by adding post-solve constraints), see in this example where you can still see the particles clearly, but rigidly packed.

    7 beğeni

  • Guillaume Boissé profil fotoğrafı

    @guitio2002

    Did some experiments a while back for “pre-fetching” the neighbouring tiles, helps quite a bit with performance when using spatial hashing. Might be of interest to you possibly:)

    5 beğeni

  • Renaud profil fotoğrafı

    @onirenaud

    Nice!! Is it some kind of octree optimization? I will definitely take a look thank you!

    1 beğeni

  • Guillaume Boissé profil fotoğrafı

    @guitio2002

    It’s using sparse tiles, which in turn point to 4x4x4 cell blocks. So not really an octree, rather a shallow hierarchy.

    2 beğeni

  • Guillaume Boissé profil fotoğrafı

    @guitio2002

    I’m actually using that same data structure to run Marching Cubes and generate a triangle mesh efficiently:)

    2 beğeni

  • Zolden profil fotoğrafı

    @ZoldenGames

    It's sph though. Do people use it for anything except "I'm gona try implementing it"?

    5 beğeni

  • Renaud profil fotoğrafı

    @onirenaud

    Sometimes I feel like SPH gives a smoother result compared to MLS-MPM for fluids. Also, the explicit neighbor search in SPH can be quite helpful for handling foam or other fine surface effects. That said, I’ve only worked with MLS-MPM and SPH so far, maybe there is better 😁

    3 beğeni

  • Zolden profil fotoğrafı

    @ZoldenGames

    My main concern about SPH is it feels like a gas with a density range too wide. While PIC/FLIP acts more naturally, with stable density and distinct air/fluid border, which is good for practical use in games. Though, I didn't try MLS-MPM to compare.

    5 beğeni

  • Michal Ševčík profil fotoğrafı

    @melkornms

    But every one of those Three.js devs will have a hard (close to impossible) time reading, understanding, and updating the code to make it do exactly what they want it to do because they don't know the terminology, the ideas and concepts behind it. People with deep knowledge will dominate the software engineering field. Hardcore developers will always have a job. You're one of them.

    3 beğeni

  • Renaud profil fotoğrafı

    @onirenaud

    Spot on! I'm building Three.js Blocks to simplify these complex concepts so that even non-developers can create a these kind of 3D experience. So a prompt like "Add 50k+ particles in a box I can touch with my mouse" becomes as easy as "Add a sphere to the scene." with AI!

    7 beğeni

  • Michal Ševčík profil fotoğrafı

    @melkornms

    @onirenaud is Three.js Blocks a website? Or something that's not public yet?

  • Renaud profil fotoğrafı

    @onirenaud

    I'm working intensively on it right now. It should be released in a few weeks. I still need to clean up a bunch of things and ensure a safe launch.

  • Michal Ševčík profil fotoğrafı

    @melkornms

    Looking forward to it!

    1 beğeni

  • Rafeeque profil fotoğrafı

    @rafeequemavoor

    so cool! how can we try this?

    2 beğeni

  • Renaud profil fotoğrafı

    @onirenaud

    Thank you!! I’m still preparing the launch, hopefully in a few weeks 🙏

    1 beğeni

  • cryptoAYA33 profil fotoğrafı

    @cryptoAYA33

    @threejs is amazing!!

    2 beğeni

  • phobon profil fotoğrafı

    @thenoumenon

    Can see this one being huge 😊 look forward to seeing it implemented everywhere 😇

    2 beğeni

  • Renaud profil fotoğrafı

    @onirenaud

    Contact Page on any Creative Studio at the end of the year: *insert logo instead of a sphere particles in the background with simulation in full screen* -> *user interact with the background and things moves in the window* -> Wow Award Site of The Day gg

    3 beğeni