Sign in

David Peipei

@davidpei.bsky.social
53 followers 34 following 44 posts

Real time Graphics Engineer working on Wonderland Engine. On the side I do WebGPU pathtracing and lightmapping 💫 in rust 🦀 davidpeicho.github.io/about

PostsRepliesMedia
David Peipei @davidpei.bsky.social · 13/07/2026
Getting there. Example of a project where the camera movement is in user-land. User scripts in js, running on the web doesn't involve another indirection layer. #rust #webgpu #wasm
100
David Peipei @davidpei.bsky.social · 09/07/2026
Trying to solve a fun problem. I am embedding quick-js natively in a rust app. I also have a wasm api to js. My goal: Expose the same api to web js and quickjs. But I also need to handle wasm memory views that are used throughout the API. I would prefer not to use wasi. Any idea? #rust #wasm
100
David Peipei @davidpei.bsky.social · 19/06/2026
Rendering the amazing "Lone monk" scene by Carlo Bergonzini in Albedo (#rust #webgpu pathtracer). Scene export isn't perfect, speed isn't good enough, but pretty happy with the results already.
100
David Peipei @davidpei.bsky.social · 18/06/2026
Safari successfully broken with my latest raytracer build. It went as far as destroying the entire dev tools panel 😅
000
David Peipei @davidpei.bsky.social · 10/06/2026
Demodulated vs final, renders in real time. So addictive to look at those!
000
David Peipei @davidpei.bsky.social · 03/06/2026
Really wish wasm-bindgen gen boilerplate code to write a struct from js to read into rust Wasm, without allocating an object or the need to free a pointer. * Give some pointer to temp memory * wasm-bindgen write the js objects (Pod fields) to pointer * Rust has access to the struct via the pointer
000
David Peipei @davidpei.bsky.social · 01/06/2026
Looks like Chrome DevTools now include an "AI summaries for console messages". I wish I got natvis / LLDB formatters instead, which seems to be slightly more useful to debug WASM code 😅
000
David Peipei @davidpei.bsky.social · 28/05/2026
Native vs Firefox Performance hit is clear in the web version. This scene is GPU bound, no CPU work and no CPU -> GPU flow. Weirdly, Chrome is barely usable compared to Firefox. #rustlang #webgpu
120
David Peipei @davidpei.bsky.social · 27/05/2026
Rendering at 1/4 resolution to emphasize the fix: Left is bilinear upsampling, right is TAA upsampled. Not great for the reflections, but those will soon be fixed! #webgpu #rust
110
David Peipei @davidpei.bsky.social · 20/05/2026
Antialiasing upscaler first attempt. It's too blurry under motion, and some NaNs are showing to mess up with me. Let's see if I can make that sharper
010
David Peipei @davidpei.bsky.social · 12/05/2026
Quality improvements are slowly getting in.
040
David Peipei @davidpei.bsky.social · 06/05/2026
Added a sun based on Hosek Wilkie. Irradiance is pre-computed for the pathtracing NEE. The temporal lag makes changing the time actually kinda nice to look out. Nice artifacts, totally wanted :) #webgpu
130
David Peipei @davidpei.bsky.social · 09/04/2026
Albedo is getting a UI. The editor data model allows linking scenes, similar to prefabs in Unity I assume. Everything can be linked
010
Reposted by David Peipei
Eric Lengyel @ericlengyel.bsky.social · 17/03/2026
New blog post: A Decade of Slug This talks about the evolution of the Slug font rendering algorithm, and it includes an exciting announcement: The patent has been dedicated to the public domain. terathon.com/blog/decade-...
1127386
David Peipei @davidpei.bsky.social · 20/02/2026
Most of the noise from disocclusion is now gone. Reflections will be a pain to handle, looking forward to it 😁 I waited too long for that, but I really need some mipmaps to get rid of the texture sampling artefact 🫠 #webgpu #rust
010
David Peipei @davidpei.bsky.social · 18/02/2026
Got some time to spend on the pathtracer denoiser. It's getting there, and the next step is to fix those disocclusion artefacts. I will start working more and more on this project, and share more info hopefully soon! #rust #webgpu
2121
David Peipei @davidpei.bsky.social · 25/01/2026
Just released a new version of github.com/DavidPeicho/... * Removes the "basic" API in favor of the "advanced" API provided by #tinybvh. * Unifies layouts build * Safer usage This version is API-breaking, but the library was still tagged as beta 😄 Will probably hit 0.1.0 soon this time!
github.com
GitHub - DavidPeicho/tinybvh-rs: Rust wrapper for the tinybvh libary
Rust wrapper for the tinybvh libary. Contribute to DavidPeicho/tinybvh-rs development by creating an account on GitHub.
021
David Peipei @davidpei.bsky.social · 23/02/2025
Haven't been improving tinybvh-rs much lately, but catching up soon! Unfortunately, compiling a rust crate depending on tinybvh-rs is painful if you don't want to use emscripten. I just decided to not use tinybvh in wasm rust anymore, slowing down my progress on tinybvh-rs.
000
Reposted by David Peipei
Anatole Duprat @anatoleduprat.bsky.social · 15/02/2025
Using ReSTIR to importance sample the brightest pixels on an image www.shadertoy.com/view/XfycWw
18820
David Peipei @davidpei.bsky.social · 26/01/2025
First time that I think that rust tooling needs some work: The WebAssembly support with a dependency in C++ is not yet nice to use. Using wasm32-unknown-emscripten also means not using wasm-bindgen
000
David Peipei @davidpei.bsky.social · 25/01/2025
I have a #rustlang dependency building a C++ library. Want to compile my project to the wasm32-unknown-unknown target. I feel like I have no choice than making a wasm module out of the C++ dependency itself?
000
David Peipei @davidpei.bsky.social · 18/01/2025
Demodulated vs non-demodulated albedo. Need to manually interpolate the texture atlas to get rid of the sampling artefacts tho.
020
David Peipei @davidpei.bsky.social · 18/01/2025
First post here! Continuing my journey on my #rustlang #webgpu pathracing library, fully GPU software, i.e., no RTX. TLAS + Texture atlas performance are slowing down the pathtracing quite a bit. Will need to focus on that after I get rid of more noise
1201
Reposted by David Peipei
Jacco Bikker 🎦 @jbikker.bsky.social · 16/01/2025
TinyBVH has been updated to 1.2.5 on main. New: TLAS/BLAS construction and traversal, for single and double precision BVHs, and including a brand new GPU demo: See the attached real-time footage, captured at 1280x720 on an NVIDIA 2070 laptop GPU. #RTXoff github.com/jbikker/tiny...
3498