You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Operating System: Mac OS Ventura 13.5 (Intel core i5 Macbook Pro)
Description
I am trying to use k3d to plot a point cloud with RGB values for every point. I've managed to get the drawable object and even exported an HTML (as that is my final goal for all the point cloud data I have). The problem I'm facing is not an error but more of a question. Is there a way I can include multiple arrays in the drawable object (when I call k3d.points(..., colors=[])) and toggle through the different stored color arrays after rendering, in the ipywidget menu (something like toggling through various shader options in the dropdown menu)?
The way I have been doing it so far is plotting multiple point clouds with the same xyz locations but different color arrays, which works for small point clouds; but the file I'm working with has ~3 Million points, and the HTML file is already at a size of ~52MB. I would like to minimize the size, and use the fact that the positions of the data are same across all the different point clouds I'm plotting. I also wanted to extend this to meshes I'm plotting, where I have to input the color arrays for every vertex (i.e., I was wondering if there was a way to provide multiple color arrays to the function that generates the drawable (e.g., k3d.mesh()) so that I can toggle through them after rendering, without the need to render multiple meshes and toggle their visibility).
The text was updated successfully, but these errors were encountered:
At this moment K3D have limited option to handle your case. I do that by entering to JS API level and there I do that kind of operation. I will try to add example for that
Description
I am trying to use k3d to plot a point cloud with RGB values for every point. I've managed to get the drawable object and even exported an HTML (as that is my final goal for all the point cloud data I have). The problem I'm facing is not an error but more of a question. Is there a way I can include multiple arrays in the drawable object (when I call
k3d.points(..., colors=[])
) and toggle through the different stored color arrays after rendering, in the ipywidget menu (something like toggling through various shader options in the dropdown menu)?The way I have been doing it so far is plotting multiple point clouds with the same xyz locations but different color arrays, which works for small point clouds; but the file I'm working with has ~3 Million points, and the HTML file is already at a size of ~52MB. I would like to minimize the size, and use the fact that the positions of the data are same across all the different point clouds I'm plotting. I also wanted to extend this to meshes I'm plotting, where I have to input the color arrays for every vertex (i.e., I was wondering if there was a way to provide multiple color arrays to the function that generates the drawable (e.g.,
k3d.mesh()
) so that I can toggle through them after rendering, without the need to render multiple meshes and toggle their visibility).The text was updated successfully, but these errors were encountered: