VTK.js: Is there actor limit for HardwareSelector?


I have a lot of actors in the renderer. When a number reaches around 150, HardwareSelector still returns selection object, but selection.getProperties().prop returns null, not the picked actor.
What could be the reason for this?

I created a codepen example: https://codepen.io/raimonds-vilums/pen/oKOMap
See the console log for the results.

I suspect this is because of rounding errors when color values are converted from int to float and back.
In HardwareSelector/index.js:
setPropColorValueFromInt() => getPixelData() => convert()

Based on experiment, I’ll use the following hack in getPixelInformation():

if (actorid % 256 > 143) {
  actorid -= 256;

Thanks! I have a fix, should be merged soon. See https://github.com/Kitware/vtk-js/pull/1185

Thanks, it works now! :+1: