vue-gl

Vue.js components rendering 3D graphics reactively via three.js
8,863 682
Install
npm install vue-gl
Latest Version:1.0.0
Vue:2
License:MIT
Last Updated:Mar 29, 2024
Links: GitHub  ·  npm
Maintainer: h-ikeda

VueGL

Vue.js components rendering 3D WebGL graphics reactively with three.js.

NPM
Financial Contributors on Open Collective

Usage

<!-- Load scripts -->
<script src="https://unpkg.com/vue"></script>
<script src="https://unpkg.com/three"></script>
<script src="https://unpkg.com/vue-gl"></script>

<!-- Define canvas and objects -->
<vgl-renderer id="my-canvas">
  <template #scene>
    <vgl-scene>
      <vgl-mesh>
        <template #geometry>
          <vgl-sphere-geometry></vgl-sphere-geometry>
        </template>
        <template #material>
          <vgl-mesh-basic-material></vgl-mesh-basic-material>
        </template>
      </vgl-mesh>
    </vgl-scene>
  </template>
  <template #camera>
    <vgl-perspective-camera position="spherical" :position-radius="5"></vgl-perspective-camera>
  </template>
</vgl-renderer>

<!-- Register components and start vue -->
<script>
  new Vue({ el: "#my-canvas", components: VueGL });
</script>

See the documentation for more information.

Available components

Components reference shows a list of available core components. Example components reference also introduces additional components you can use immediately.

The list of components not implemented yet can be found at this project.

Contribution

Are you interested in enhance this product? We're really glad and thanks a lot!
See Contributing guidelines to get started.

Code Contributors

This project exists thanks to all the people who contribute. [Contribute].

Financial Contributors

Become a financial contributor and help us sustain our community. [Contribute]

Individuals

Organizations

Support this project with your organization. Your logo will show up here with a link to your website. [Contribute]

License

FOSSA Status

Related Packages

@tresjs/core

Declarative ThreeJS using Vue Components

1,355,627 3,774
vue-force-graph

Vue component for 2D, 3D, VR and AR force directed graphs

17,517 29
@tresjs/cientos

Collection of useful helpers and fully functional, ready-made abstractions for T...

993,536 3,774
@tresjs/post-processing

Post-processing library for TresJS

386,088 3,771

Version History

Version Released License
1.0.0 MIT
0.23.1 MIT
0.23.0 MIT
0.22.1 MIT
0.22.0 MIT