Casually rendering ~a hundred million triangles, in the browser.
207,784 次观看
65 条评论
评论来自 X (Twitter) 上的原帖

@hybridherbst
@threejs You can try it out here, and drop GLBs to see them processed + rendered:
46 个赞

@hybridherbst
@threejs Meshlets are basically chunks of meshes, that get rendered with a mix of rasterization and compute. So despite tons of stuff being on screen, actual rendering is more like "the pixels you see"
28 个赞

@hybridherbst
@threejs Everything is pretty custom at the moment – a custom shader that is able to render the meshlet instances with their original data / texture / UVs etc – but the overall direction feels good
22 个赞

@hybridherbst
@threejs Meshlets are generated via @zeuxcg MeshOptimizer, not sure if I'm doing everything right there but I get small compressed meshlets and can render them. Hacked browser-based meshlet generation into meshopt, too, so that you can drop your own GLBs to pulverize them!
32 个赞

@akumatekiz
@sea3dformat @threejs 素晴らしい!仮想化ジオメトリシステムですね! unity用のやつだと以下にあります
13 个赞

@hybridherbst
@sea3dformat @threejs Yes, that’s also using meshoptimizer under the hood:
6 个赞

@SeloSlav
@sea3dformat @threejs okay now how do i get this into my project?
6 个赞

@hybridherbst
@sea3dformat @threejs 😄 wonderful model. You either grab the source from the @NeedleTools three.js fork and hack around with it, or you wait for a proper three.js integration into TSL, or you use an alternative like Needle Progressive 3D (not quite Nanite but best web streaming solution for glb)
6 个赞

@hybridherbst
@sea3dformat @threejs @NeedleTools e.g.
4 个赞

@msurguy
@sea3dformat @threejs Brother, how!???
3 个赞

@hybridherbst
@sea3dformat @threejs The three PR with some discussion of the technique is here: Hope we can make this mass-adoptable at some point, and not a bunch of custom things bolted on top of each other!
19 个赞

@hybridherbst
@msurguy @sea3dformat @threejs I think you can read the file in the three.js repo to learn more, visit or my adaption and ask AI how it works
2 个赞

@TrishaMayDev
@sea3dformat @threejs 🥺 I want this features, any resources for reading would be great.
3 个赞

@hybridherbst
@sea3dformat @threejs You can read the PR for a start, link is under my post
1 个赞

@TrishaMayDev
@sea3dformat @threejs Wow! 💃 Very much appreciated. I’ll look into it. Many thanks.🥰
2 个赞

@TAbrodi
@mrdoob @sea3dformat @threejs 🔥
2 个赞

@surf_da_earf
@sea3dformat @threejs thats cool i rendered a hundred and one million trianglers, in the brower
2 个赞

@ALASKANmagpie
@sea3dformat @threejs Wild! will be looking into this, ty. Does it support rigging and animation for a field of assets the size of your vid? Incredbile if so.
1 个赞

@hybridherbst
@sea3dformat @threejs At the moment it’s static meshes, but in principal rigging/anim can happen on the GPU as well, yes
5 个赞

@CodyBennett
@ALASKANmagpie @sea3dformat @threejs This would be a win for hardware rasterization, actually. Tencent Games does not use software rasterization in their 2024 SIGGRAPH presentation, as they target mid to high end mobile. Also not sure if people read the code, but it can't represent enough unique triangles as-is.
3 个赞

























