Description
We were unable to display a PointCloud2 with v0.18.0 and THREE r88 or v89. There is an error on the console:
THREE.ShaderMaterial: attributes should now be defined in THREE.BufferGeometry instead.
and no point cloud is visible (Chrome on OS X) or it is barely visible (Chrome on Linux).
We were able to resolve this by replacing the THREE.ShaderMaterial
in ROS3D.Particles
with a THREE.PointsMaterial
. Is there a reason it's not using a PointsMaterial
? It would be much simpler than including a shader. It would also resolve #195 as PointsMaterial
doesn't require a texture, although it does allow one. However, I'm not sure if PointsMaterial
allows each point to have its own color.
@DLu, do you know if PointsMaterial
will work for PointCloud2
?
If you'd like to switch to a PointsMaterial
we can send a pull request.