is it possible to use vtkDistanceToCamera to keep an actor size fixed without using vtkGlyph3D


First of all, there’s this example : that shows how to keep 2 arrows size fixed, whatever the camera zoom level using vtkDistanceToCamera and vtkGlyph3D.

I took this last example and I successfully replaced the arrows by a PNG image file texture mapped on a plane. I used this example to create the PNG glyphs :

My question is : Is there another way other than using vtkGlyph3D to use vtkDistanceToCamera to keep the PNG image size fixed (or even a vtkArrowSource).


The answer is yes, I have to use a vtkGlyph3DMapper instead of vtkPolyDataMapper.