Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set PointsMaterial vertexColors default to 0 to display proper color #206

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jshahbazi
Copy link

The vertexColors default is currently set to 2, which makes the color always black regardless of what the color property is set to. Setting the value to 0 allows the proper color to be shown.

@nhz2
Copy link

nhz2 commented Nov 1, 2021

Thank you for figuring out how to get the right color to show for point clouds of uniform color.

However, I tried it out, and setting vertexColors to 0 will also prevent each point from having a unique color, like in the example in demo.ipynb

colors = reinterpret(RGB{Float32}, points); # use the xyz value as rgb color
setobject!(vis[:pointcloud], PointCloud(points, colors))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants