threlte
three-minifier
threlte | three-minifier | |
---|---|---|
25 | 4 | |
2,100 | 178 | |
16.8% | - | |
9.9 | 0.0 | |
2 days ago | almost 2 years ago | |
Svelte | JavaScript | |
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.
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!
three-minifier
- Webpack bundle over 1mb. How should I reduce?
-
threlte v5.0 is here! A completely new developer experience that is faster, more powerful, and incredibly flexible.
Unfortunately it's not that easy. While in this component there are only two imports happening, these two imports will still have an impact on your bundle size that is larger than the actual two files imported. This is the nature of three.js. A popular tool to minify three.js for production is this minifier. It's an interesting topic for sure but our goal is not to market threlte against other frameworks but to cooperate. There's a lot of tooling that threlte is able to benefit from in the react-three-fiber ecosystem and there's the intention from both sides to do so. One of the first candidates for this could be gltfjsx. For me personally using Svelte over React is huge.
-
Smartest way to import modules via CDN?
I agree. It’s not the question asked but a good advice in any case. THREE is massive and bundlers can treeshake some of it off. The dynamic import you’re doing is not treeshakeable. There’s this minifier which I can recommend.
-
Creating a game in Three.js
This means you don’t need to manually refresh the browser every time you make a change, which saves a lot of time. It also means we can use plugins like three-minifier, which reduces the size of our bundle when we deploy it.
What are some alternatives?
flowbite-svelte - Official Svelte components built for Flowbite and Tailwind CSS
webpack-glsl-loader - A webpack loader for glsl shaders - includes support for nested imports.
kit-docs - Documentation integration for SvelteKit.
xdm - Just a *really* good MDX compiler. No runtime. With esbuild, Rollup, and webpack plugins
three-graces-svelte-cubed
heat-cube - "Heat" cube made with Three.js
threejs-volumetric-spotlight - Volumetric spotlight with three.js
threejs-rocket-game - Creating a game in ThreeJS with no prior knowledge
rapier - 2D and 3D physics engines focused on performance.
gltfjsx - 🎮 Turns GLTFs into JSX components
threlte - A three.js component library for Svelte. [Moved to: https://github.com/threlte/threlte]
threejs-dem-visualizer - Visualizing ASTER and LANDSAT satellite data using THREE.js