Skip to content

PointCloud2 broken in v0.18.0 #213

Closed
@drigz

Description

@drigz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions