Error linking shader FRAGMENT varying vertexIDVSOutput does not match any VERTEX varying

Hello,

My goal is to add a widget manager to my renderer.

const widgetManager = vtkWidgetManager.newInstance();
widgetManager.setRenderer(this.renderer);

Everything works well at first. However, as soon as a Polydata (with getVerts().setData(vertex) added to it) is added, an error is returned saying:
Error linking shader FRAGMENT varying vertexIDVSOutput does not match any VERTEX varying

I tried to replicate the error using a minimal configuration, but I could not.

Any help would be much appreciated!

Vertices are “references” to points. Did you also add points to your vtkPolyData ? poly.setPoints(…)`

Yes, I am using polydata.getPoints().setData(allXYZ) to add points, but it still returns the same error.

It is possible that the issue comes from the hardware picking. Adding a widget manager adds a hardware picker into the renderer.
Recently the hardware picker has been improved. It wouldn’t be surprising if it does not support vertices (only lines and polys).

It might be worthwile to try a version of VTK.js BEFORE the MR 2369 and see if it still fails.

I tried two versions: v24.12.1 and v24.13.1. The same error is thrown.

Here is the console logs in case it helps:

I have just noticed that this happens only SphereMapper is used.