Andrea Gargaro (@agargaro_dev) header
Andrea Gargaro (@agargaro_dev) profile picture

Uncreative developer

Santeramo in Colle, Puglia
Joined November 2023
To run my demos smoothly, I needed the best LOD thresholds with meshoptimizer. So I built a tool that also writes InstancedMesh2 code. 5,000 animated characters: 76M → ~500K triangles. More to come, ideas and criticism welcome! Link below 👇 #threejs #webgl #webgpu #gamedev
14
11
2
131
6,748
Bone Animation Textures are now in InstancedMesh2 🦴 Skeletal clips are baked once into a GPU texture, and every instance plays its own clip, speed and crossfade. No per-frame CPU animation. 10,000 skinned monsters, WebGL, WebGPU. Link in the next post. #threejs #WebGPU #WebGL
15
15
3
179
10,981
After a month of work, InstancedMesh2 now supports WebGPURenderer 🎉 250,000+ asteroids, WebGPU and WebGL: runtime LODs, BVH frustum culling and per-instance raycasting. Fly through the field and blast some rocks 🚀 #threejs #webgl #webgpu
9
7
3
82
5,768
Playing with my octahedral impostors library 🤓 There are still things to improve, should I continue? I created a demo with a terrain 3072 x 3072 and 200k trees. It should work on mobile too! Demo: octahedral-impostor.vercel.a… Github ⭐️: github.com/agargaro/octahedr… #threejs #webgl
9
12
1
151
8,304
Just added LODs to batched-mesh-extensions! This scene goes from 14 to 1 million triangles in a single draw call — LODs are generated on the fly with meshoptimizer 😁 Demo: glitch.com/edit/#!/three-ez-… Github: github.com/agargaro/batched-… #threejs #webgl #webgpu
15
36
3
370
19,575
I'm working on a new library that adds extension methods for BatchedMesh. One of them builds a BVH to accelerate frustum culling and raycasting. More methods coming soon! Repo: github.com/agargaro/batched-… Demo: three-ez-batched-mesh-extens… #threejs #webgl #webgpu
6
11
2
104
6,376
Work in progress on a new library for octahedral impostors based on Ryan Brucks' article. Texture atlas generated at run time, 4096x4096 with 20x20 sprites. Model by @quaternius Demo: octahedral-impostor.vercel.a… Github: github.com/agargaro/octahedr… #threejs #webgl
3
3
50
2,375
I used my InstancedMesh2 library to create a simple smoke effect. It was easy using the API to set opacity/add/remove instances 🚀 I hope the code is clear and easy to read❤️ Demo: agargaro.github.io/instanced… Code: github.com/agargaro/instance… #three #webgl thanks @LuigiDenora
10
39
1
314
14,693
InstancedMesh2 now supports skeletal animation😄 In this video there are 20k instances! I need to improve the partial texture update now. if you like my work, please leave a⭐ Library repo: github.com/agargaro/instance… Demo (3k instances): instanced-mesh-skinning-demo… #threejs #webgl
13
20
3
166
12,180
I am glad to introduce the new feature of InstancedMesh2: shadow LODs 🎉 Strange example, isn't it? 😇 I would love to get your feedback. #threejs #webgl repo: github.com/agargaro/instance… example: stackblitz.com/edit/three-ez…
2
12
95
4,928
1 million spheres + raycasting at 165 fps 🏁 InstancedMeshLOD implements LODs, frustum culling and fast raycasting using a BVH. This is executed every frame. demo (start can be a bit slow): instanced-mesh2-lod-demo.ver… library repo: github.com/agargaro/instance… #threejs #webgl
2
13
116
6,533