In the example ChartsOn3DScene
a 2D Chart is displayed on top of a 3D scene which can be interacted with.
I’m trying to do something similar, but instead of displaying a Chart, to show an image, which persists and does not change position or scale as the user interacts with the cube.
My naive attempt shows what I do not want to happen, which is that the image is included in the 3D scene and rotates with the cube
I’m using Python, but going between C++ and Python examples are fairly straight forward, my modification to the example is
image = vtk.vtkImageMandelbrotSource() image.Update() imageActor = vtk.vtkImageActor() imageActor.GetMapper().SetInputConnection(image.GetOutputPort()) renderer.AddActor(imageActor)