psychopy.org | Reference | Downloads | Github

OpenGL calls to multiple psychopy windows

Hello,

(Sorry if this is a dumb question but I am new to using OpenGL calls in Psychopy.)

I am creating something similar to Kathia’s 3D dot field but I am using multiple psychopy windows (win1, win2). I would like to be able to draw the dot field in win1 or win2. Currently, it seems to default to just win1.

What is the best way to assign gl.GL_POINTS to a specific window?

With psychopy stimuli I would update the stim.win=win2. It is not really clear to me how to connect the opengl code to the psychopy window.

Best,

Daryn

PS - I have tried applying the eye transforms for the specific window just before the gl code but I get the feeling that I need to attach the GL_POINTS stim to the window more directly.