A Pointcloud component for A-Frame.
npm install aframe-pointcloud-componentA Point Cloud component for A-Frame.
!gif
| Property | Description | Default Value |
| -------- | ----------- | ------------- |
| src | path to a .ply file | "". Mandatory |
| texture | path to a .png file | "". Optional |
| size | size of the rendered points | 1 |
| opacity | opacity of the rendered points | 1 |
| size | size of the rendered points | 1 |
| depthWrite | When using a texture it can be useful to disable the depth writing in order to avoid creating z-index artifacts. | true |
You might have to also adjust the scale, position and rotation properties in order to fit the point cloud to your scene.
The best way to adjust this properties is by using the awesome a-frame inspector (press Crtl+Alt+I in the scene window).
Take a look at the included example.
#### Browser
Install and use by directly including the browser files:
``html
#### npm
Install via npm:
`bash
npm install aframe-pointcloud-component
`Then require and use.
`js
require('aframe');
require('aframe-pointcloud-component');
``