What if three.js could render beyond the limits of the browser?
Meet ThreeRT: a native JS runtime and hardware-accelerated real-time path tracer, bringing lifelike lighting to Three.js scenes on macOS, Windows, iOS, Android, and Steam Deck.
Fully open source 🧵
@CodyBennett@MeshyAI Thanks for the feedback! We build JS runtimes, so we see this like React Native and React Native Web: shared core logic across platforms, with some UX trade-offs.
Hardware RT is a deliberate requirement for the full native experience, not for running the same code elsewhere.
ThreeRT has one hard requirement: a GPU with ray tracing hardware.
That's a trade-off we chose on purpose. Here's what it buys, what it costs, and what happens on devices without it 👇
@CodyBennett@MeshyAI You’re conflating the native renderer with the web fallback. ThreeRT uses real hardware ray queries on supported Metal/Vulkan GPUs. WebGPU uses a software BVH; the standard browser experience uses plain three.js. This distinction is explicit in our docs.
TLDR: real-time path tracing needs RT hardware. In return we get one lighting model, and nothing to bake or tune twice.
Try it on:
- Mac: M3 or later
- iPhone 15 Pro or later
- DX12 RT GPUs (RTX2070 or later)
- Steam Deck
- Snapdragon 8 Gen 2 class
https://t.co/f74W8qnfto
We've been getting lots of curiosity (and good guesses!) about how ThreeRT works 🫶
So we made a video: from the hello-world triangle to path tracing, why engines like UE5 go hybrid, and how ThreeRT traces every pixel in real time 👇
Isn't this cute?? Based on github repo ( in comments) by noniv and @ThreeRT3D. An exoplanet scenery with raytracing. You can run it in your phone or pc, demo link in comments too
ThreeRT supports rendering 10M triangles and 1M lights in realtime dynamically, which costs 60GB RAM on M3 Max. Browser sandbox prevents aggressive RAM usage but we can make full use of it.
Advanced features like LOD steaming is on the way, please stay tuned!
What if three.js could render beyond the limits of the browser?
Meet ThreeRT: a native JS runtime and hardware-accelerated real-time path tracer, bringing lifelike lighting to Three.js scenes on macOS, Windows, iOS, Android, and Steam Deck.
Fully open source 🧵
ThreeRT is open source under MIT license.
The indoor scene with dynamic lighting can be directly opened from Safari, jumping in the ThreeRT client and load just-in-time.
Supports iPhone 15 Pro and later, TestFlight available now 👇