Scatter markers disappear after rotation when the number of elements are multiples of 256
I've just come across ipyvolume, and want to say thank you for creating such an impressive package.
I encounter a strange bug though, that the scatter elements disappear after using mouse to rotate the scene, if and only if the number of elements are multiples of 256 (i.e., for 256, 512, 25600, etc., but not for 128, 255, 257, etc.). The following snippet should repeat this peculiar behavior on macOS 10.14, Anaconda 2019.03, Python 3.7, ipyvolume 0.5.2.
import ipyvolume as ipv
from numpy.random import randn
N = 256*7 # The multiplier can be other integer...
ipv.figure()
ipv.scatter(randn(N), randn(N), randn(N))
ipv.show()
Can anyone else replicate this unexpected behavior? Thank you for trying!
Same issue.
Same here.
Thanks for reporting this, the same seen in #289 I think. Thanks for your patience on this, I have spend a considerable amount of time on this already, but haven't been able to find the reason for this.
My hope is that if we use the new InstanceMesh, see
- https://github.com/mrdoob/three.js/pull/17505
- https://github.com/maartenbreddels/ipyvolume/issues/276
The problem will resolve itself, a possible workaround is to append (x, y, z) = NaN NaN NaN to it the positions.