Is it possible for a single ImageStim object change its texture to another stored in video memory?
Some background, I’m porting an experiment over to PsychoPy from a PyOpenGL+GLFW implementation to take advantage of its feature set. The original experiment (in PyOpenGL) presents images in quick succession at the same location to make a movie. These images were loaded from the hard drive prior to the start of trials and the texture handles returned by glGenTextures were stored. The program would simply change the texture handle to the next one in the sequence to change the image. ImageStim seems to only present a single texture that is specified upon initializing it. It might not be feasible to create in excess 10,000 of ImageStim objects to do what I’ve previously done. Due to the requirements of the project, textures must be loaded into video memory. They cannot be made into a movie beforehand.
I looked at the ImageStim code and I’m prepared the modify for my needs if there is no quick solution.