troisjs
✨ ThreeJS + VueJS 3 + ViteJS ⚡
- 💻 Examples (wip) : https://troisjs.github.io/ (sources)
- 📖 Doc (wip) : https://troisjs.github.io/guide/ (repo)
- 🚀 Codepen examples : https://codepen.io/collection/AxoWoz
I wanted to code something similar to react-three-fiber but for VueJS.
I started from scratch, I will rewrite some of my WebGL demos to see if this little toy can do the job.
Trois is a french word, it means Three.
Sponsors (Thanks 💙 !!!)
Contributors (Thanks 💙 !!!)
Usage (CDN)
TroisJS is really simple and easy to use :
<div id="app">
<renderer ref="renderer" antialias orbit-ctrl resize="window">
<camera :position="{ z: 10 }"></camera>
<scene>
<point-light :position="{ y: 50, z: 50 }"></point-light>
<box ref="box" :rotation="{ y: Math.PI / 4, z: Math.PI / 4 }">
<lambert-material></lambert-material>
</box>
</scene>
</renderer>
</div>
<script type="module">
import { createApp } from 'https://unpkg.com/troisjs@0.3.4/build/trois.module.cdn.min.js'
createApp({
mounted() {
const renderer = this.$refs.renderer
const box = this.$refs.box.mesh
renderer.onBeforeRender(() => {
box.rotation.x += 0.01
});
}
}).mount('#app')
</script>
Read more on https://troisjs.github.io/guide/
Related Packages
Version History
| Version | Released | License |
|---|---|---|
| 0.3.4 | ISC | |
| 0.3.3 | ISC | |
| 0.3.2 | ISC | |
| 0.3.1 | ISC | |
| 0.3.0 | ISC | |
| 0.2.3 | ISC | |
| 0.2.2 | ISC | |
| 0.2.1 | ISC | |
| 0.2.0 | ISC | |
| 0.1.19 | ISC | |
| 0.1.18 | ISC | |
| 0.1.17 | ISC | |
| 0.1.16 | ISC | |
| 0.1.15 | ISC | |
| 0.1.14 | ISC | |
| 0.1.13 | ISC | |
| 0.1.12 | ISC | |
| 0.1.11 | ISC | |
| 0.1.10 | ISC | |
| 0.1.9 | ISC | |
| 0.1.8 | ISC | |
| 0.1.7 | ISC | |
| 0.1.6 | ISC | |
| 0.1.5 | ISC | |
| 0.1.4 | ISC | |
| 0.1.3 | ISC | |
| 0.1.2 | ISC | |
| 0.1.1 | ISC | |
| 0.1.0 | ISC | |
| 0.0.9 | ISC |
Showing the latest 30 of 38. See every release on npm
Pre-releases (8)
| Version | Released | License |
|---|---|---|
| 0.3.0-beta.7 | ISC | |
| 0.3.0-beta.6 | ISC | |
| 0.3.0-beta.5 | ISC | |
| 0.3.0-beta.4 | ISC | |
| 0.3.0-beta.3 | ISC | |
| 0.3.0-beta.2 | ISC | |
| 0.3.0-beta.1 | ISC | |
| 0.3.0-beta.0 | ISC |