Open FrankNiemeyer opened 10 months ago
This works, in principle, however it seems that pixels in between the vertices are simply interpolated between the vertices instead of using the actual texture information.
You're right, it's a naive implementation. I don't know what I was thinking when I published that API. I knew this would come back to bite me one day.
I don't have a quick fix for this I'm afraid. I'd need to go digging though vtkTexture and write a Python wrapper for it.
Thanks. Good to know it's not because I was doing something wrong. ;)
I need to display images (2D) as 3D objects. My idea was to use the images as textures for simple rectangles consisting of two triangles each.
I tried to use plain vtkPolyData for that as suggested .
I used the following code to test the basic idea:
This works, in principle, however it seems that pixels in between the vertices are simply interpolated between the vertices instead of using the actual texture information.
Is this by design or a bug? Is it possible to actually map the texture onto the polydata faces?