You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am attempting to put together a bunch of reprojected images to form sort of a dollhouse view of a structure. At the moment I am just using one ImageVisual for each image and applying a MatrixTransform to give it the correct pose and scale. This is, of course, quite slow since I am using > 100 individual ImageVisuals.
I was hoping for some advise on what direction I might go in to solve this problem. I think this is typically done by using a mesh and providing face textures but I wasn't sure if VisPy supported this.
The other thing I want to do is something like back-face culling such that images are only visible from the "front". So if you move the camera around to the back the image is transparent.
The text was updated successfully, but these errors were encountered:
I've done something almost similar with a custom version of the ImageVisual. In my case I was showing a large image but only storing "sub-tiles" of the image in a Texture object. This involves defining vertex coordinates and texture coordinates for each sub-image and passing those to the GPU. You can see a simplified version of this in the ImageVisual when you tell it to subdivide your image in the methods that compute the coordinates.
I'm not sure how the culling would behave in these cases so maybe try one thing at a time?
Thanks @djhoese, this is helpful! I'll check that out. This wound up being deprioritized though so I may not be able to do so for a while. Will follow up here or PR if I find anything generally useful.
I am attempting to put together a bunch of reprojected images to form sort of a dollhouse view of a structure. At the moment I am just using one
ImageVisual
for each image and applying aMatrixTransform
to give it the correct pose and scale. This is, of course, quite slow since I am using > 100 individualImageVisuals
.I was hoping for some advise on what direction I might go in to solve this problem. I think this is typically done by using a mesh and providing face textures but I wasn't sure if VisPy supported this.
The other thing I want to do is something like back-face culling such that images are only visible from the "front". So if you move the camera around to the back the image is transparent.
The text was updated successfully, but these errors were encountered: