regl | threlte | |
---|---|---|
7 | 25 | |
5,106 | 1,812 | |
0.3% | 3.5% | |
2.8 | 9.9 | |
about 2 months ago | 6 days ago | |
JavaScript | Svelte | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
regl
-
What is your experience with JavaScript libraries for 3D graphics?
Author of Threlte here 👋 with two cents about Three.js: It's exceptionally well written in terms of rigid and consistent interfaces that allow frameworks such as Threlte to exist to make wrappers/renderers that are as slim as possible. This is due to it being strictly OO but definitely something i would make top priority when creating a new 3D library. Personally I find regl also very interesting with a completely different approach than Babylon or Three.js.
-
What webGL framework to start with?
If you go to https://github.com/regl-project/regl , you'll see the last commit was made literally yesterday.
-
I Created a library to very easily include many types of Procedural Noise functions in your WebGL Shaders! Can be used for anything really, I use them for HeightMap generation. GitHub in comments
You can create a HTML Canvas with a WebGL context (I suggest using a library like Ogl or Regl )and run the functions exported by this library in a fragment shader, then save the current frame by a method like this or any other.
- Regl – Fast Functional WebGL
-
Smooth voxel terrain: isosurface extraction with marching cubes and surface nets
The author, Mikola Lysenko, is a remarkable engineer. He's wildly prolific, but I my favorite project of his is regl[1], which is an unparalleled WebGL library. I think it might be the best-in-class example of all OpenGL libraries, though I have admittedly fallen behind on the state-of-the-art of desktop OpenGL.
[1] https://github.com/regl-project/regl
-
I wrote a WebGL library for people who like to write their own shaders!
bit like regl?
-
Just released a new, free WebXR experience
Thanks! I made it with regl: https://github.com/regl-project/regl
threlte
-
Show HN: 3D Framework for the Web. Built on Svelte and Three.js
Thanks! Threlte is "just" offering a declarative way to express Three.js. If you know how the `` component and its props and event handlers work, you can use the Three.js documentation for everything else.
Apart from that with Threlte I personally practice documentation-driven-development, so ecosystem packages are exhaustively documented. If you're missing something, let us know via an issue[1] or on Discord[2].
Accessibility is a topic we didn't care enough yet to be perfectly honest. Accessibility doesn't stop at screen readers though, it's about contrast, size, colors, motion, reachability, and so much more that we cannot provide and are a consumer topic. Naturally WebGL apps suffer from being practically invisible to screenreaders. There are workarounds[3] but essentially this has to be solved by consumers of Threlte (devs) and hopefully by browser vendors at some point in the future.
[1] https://github.com/threlte/threlte/issues
[2] http://chat.threlte.xyz
[3] https://github.com/pmndrs/react-three-a11y
-
Mario meets Pareto: multi-objective optimization of Mario Kart builds
more specifically it's using the svelte wrapper of three.js called Threlte: https://threlte.xyz/
- Threlte: A Three.js component library for Svelte
- A Three.js component library for Svelte
-
What is your experience with JavaScript libraries for 3D graphics?
Three.js is great when there is a layer between me and it's API. Been playing with https://threlte.xyz/ and really enjoying it.
-
Is there a way to improve the performance of this visual element in Svelte?
Maybe try https://threlte.xyz/
-
threejs and interactive meshes
Now this is a very high level overview and a lot of really important stuff is missing. Things like event propagation, pointermissed events, different event targets, a super clean syntax and more is all implemented in Threlte 6's interactivity plugin. Check out the code here.
-
SvelteKit GPT-4 Plug-in RFC
GPT-4 is a fantastic tool for coding, really looking forward to using it with the latest Svelte docs. Perhaps consider adding the documentation for Threlte?
-
When building scenes do you use any visual tool or just do it all in code?
) with complex functionality, since the app needed a graphics pipeline and I wanted to write one up myself. The next page I made did not need a pipeline, so I opted to use Threlte (a Svelte version of react-three-fiber) to make the code simpler to write and easier to maintain. If a scene you want to create has a lot of different meshes, materials, animations, etc. you might be best off using Blender to get it looking perfect. You can export from Blender as .gltf files which can be imported into Three. If you want a more specialized solution, I'd need to know your use case a little better. How are you building the scenes?
-
I made a 3D Chess board integrated with Lichess using Svelte/Threlte
Hey, awesome work! Check out gltf.report for a quick and easy tool that can resize textures, prune objects and weld/simplify geometry. I’m not sure what Threlte version you’re using, but starting from Threlte 6 which is coming in the next weeks we’re recommending @threlte/gltf for the best possible gltf workflow. Check out our Discord if you need any help!
What are some alternatives?
ogl - Minimal WebGL Library
flowbite-svelte - Official Svelte components built for Flowbite and Tailwind CSS
curv - a language for making art using mathematics
kit-docs - Documentation integration for SvelteKit.
Phaser - Phaser is a fun, free and fast 2D game framework for making HTML5 games for desktop and mobile web browsers, supporting Canvas and WebGL rendering. [Moved to: https://github.com/phaserjs/phaser]
three-graces-svelte-cubed
Microcosm - Re-implementation of Terence M. Welsh's screensaver for the browser
threejs-volumetric-spotlight - Volumetric spotlight with three.js
plotly.js - Open-source JavaScript charting library behind Plotly and Dash
rapier - 2D and 3D physics engines focused on performance.
matrix - matrix (web-based green code rain, made with love)
three-minifier - Minify THREE.js