If you have some time to spare tomorrow: I’ll be talking about #Astro and #Svelte at the Svelte Berlin meetup. And there will be a talk about #Threlte, which is a ThreeJs wrapper for Svelte.
Join in person or join the livestream. https://lu.ma/urubdd54?locale=en-GB
Svelte CoP in Berlin · Luma

[German below] Everyone likes Svelte, even if it still hasn't made it into the job descriptions (not even here at CharITé). Let's talk more about it, exchange…

Stole some sleep time this week to play with #D3+ #Svelte + #ThreeJS (using #Threlte)

I'm almost done re-creating the zoomable Circlepacking example #dataviz (originally rendered as SVG).

Now, I may have to do some performance measurements (and lot of code clean :D )

Three.js + Svelte = Threlte and Version 6 is finally stable! It comes with this amazingly slick documentation page: https://threlte.xyz/

Just look at how smooth the scroll based animation is 😋

A basic scene with interaction, animation and shadows is not even 40 lines of code 🤯

Try it out: https://stackblitz.com/run?file=src%2Fexample%2FScene.svelte

#Threlte #Svelte #SvelteJS #3D #animation

Threlte

Threlte – Rapidly build interactive 3D apps for the web

Threlte

@nrennie

Shout out to this interactive climate spiral graph version created with #svelte, #layercake, #threlte, #d3 and#gsap by Yi Zhe Ang:

https://svelte.dev/repl/05de947c5aa34f959a6f9ddefa18b7f9?version=3.52.0

After the thing loaded and the animation is done you can interact with the rotating spiral (includes dragging and zooming)!

Global Climate Spiral in Three.js • REPL • Svelte

I added a new tutorial on #3d #dataViz powered by #threlte

Find it in the learning section:
https://awesome-svelte-and-d3.netlify.app/learning

#awesomeSvelteAndD3

Awesome Svelte & D3

Learn about great data visualization projects and underlying techniques.

Wanted to learn some more threlte and rapier, so I continued working on my moto game.

using prismatic joints for the forks and rear suspension worked great. just needed to limit the travel and configure the force based motor of that joint. so it always tries to be at it's maximum.

I'm still having troubles with friction. when landing the bike seems to stop in it's tracks.

any suggestions on how to fix that?

https://labs.leon.id/2023-01-moto

#gamedev #threlte #rapier #threejs #moto

Moto

This weekends lab was playing around with svelte + threlte (three.js) + rapier (physics)

Generates a map from three.js Shape, then extrudes with ExtrudeGeometry.

Uses a polyline collider for simplicity.

first used a couple of cylinder colliders for the wheels, but the bike was getting stuck in the mesh, so tried switching to the ball collider and now it works much better.

the suspension could be better 😀

https://labs.leon.id/moto

#gamedev #threlte #threejs #rapier #indiegame #webdev

Moto

Asteroids

Fly your ship and shoot down all the asteroids!

Do you know how many satellites are orbiting around earth? And how close they are?

Check out this #scrollytelling piece to find out: https://three-satellites.vercel.app/

Made by Stefan Reifenberg (https://stefanreifenberg.com) with #svelte and #threlte

Earth's satellites

Wrote a small proof-of-principle for drawing 2D #scatterplot using #threlte (#threejs for #svelte). See here: https://jandot.github.io/posts/basic_threlte/
Basic scatterplots in Threlte

Svelte is great for data visualisation, but for larger datasets the simple declarative approach to drawing <circle>-s inside an <svg> doesn’t cut it anymore. Other libraries like three.js are capable of handling more data, but they are written for 3D visualisation instead of 2D plots. Below, I show a proof-of-concept for a three.js-based 2D scatterplot with 5,000 points. Figure 1. The final image…​ For installation of svelte-kit and threlte, I refer to their own websites.