by legrisch · 1y ago · 0 comments
Threlte is a renderer and component library for using Three.js in a declarative and state-driven way in Svelte apps. It provides strictly typed components for deep reactivity and interactivity out-of-the-box.
It's suffice to say it was a whole lot of work and a great challenge to make use of Svelte 5. A lot of the important parts have been rewritten to make use of the new reactivity model, some APIs have been aligned with conventions introduced by Svelte 5 and type safety has been improved all over. Also this release includes the first alpha release of Threlte Studio which is what we call a spatial programming toolset.
If you're looking for an migration guide, it's here: https://threlte.xyz/docs/learn/advanced/migration-guides#thr...
https://threlte.xyz/docs/learn/getting-started/introduction
Threlte is a renderer and component library for using Three.js in a declarative and
state-driven way in Svelte apps. It provides strictly typed components for deep
reactivity and interactivity out-of-the-box.Longer term, I would migrate away from the ".xyz" domain as it's (sadly) now become closely associated with the "Web3/Blockchain" space.
I'm interested in computing light that trees receive and want to be able to visualize it but also have even leaves that aren't in view to continue to receive light during the simulation.
It might get computationally expensive to point that raycaster in many directions and intersect with all leaves. I'm not aware of a way to do "bulk" raycasting in three.js yet.
Separately, the lighting / shadows can compute visually shadow and lighting. But I'm not aware of a way to then easily measure out how much of a mesh is in shadow.
I am also interested in tree simulation -- I'm tinkering on a arborist/lumberjack game where you trim / cut down trees :)