How can read PNG JPG image.
hi, i want to read some PNG image in my scene.
in VTK, we can just use
VTKPNGReader to read PNG image perfectly. but how can i read these iamges in iMSTK.
- i try to read PNG image in VTK ways, but it sames i can not convert
imageDatahere's my code
`vtkSmartPointer PNGreader = vtkSmartPointer::New();
- then i noticed that renderMaterial got a api
addtexturewhich can read PNG image.
i create a plan geometry. then i try to add a PNG image as texture, but nothing happend. here's my code
`auto planGeom = std::make_shared();
imstkNew texture("xxx.png", Texture::Type::Roughness);
imstkNew vm(planGeom, Mat);
thanks for any advice. hope you have a good day.