Render backing image vtkjs

Hi there,

I am looking to add some backing images to some polydata objects.

I currently have the images in png format & I can see that vtk js does not yet have a png image reader implemented.

Is there any alternative way in vtk js to render images in the scene?

Any help would be much appreciated

vtkTexture can use any image so I’m not sure what you are asking?

Ok thank you, are there any examples of this in the docs at all please?

I realise it might be obvious to a vtk veteran - i’m very new to it and finding a lot of the python examples make use of features that are not yet available in vtk js

All i need to do is just render a png file inside of vtk

The example using vtkTexture in vtk.js would be a good start.

Then you just use a plane as support for your picture rather than a sphere.