Closed austinchkuo closed 1 year ago
This appears to have be an issue with the z coordinate setting for 2D vertices in different mgl functions = mglMetalDots had a setting of 0 and milLines2 had a setting of 1. Now, they both have the same setting of 0 and the ordering comes out as expected.
On mgl2.0, calling mglGluDisk and mglFixationCross in some order draws a fixation cross and a disk in the proper order they are called. For example, calling mglGluDisk to draw a disk and then calling mglFixationCross to draw a cross will draw the cross on top of the disk, while calling mglFixationCross first will draw the cross under the disk.
However, in mglMetal, the disk is always drawn on top of the cross no matter the order of the function calls.
A related type of issue is also clearly apparent when calling mglRetinotopy using mglMetal, where the fixation cross is obscured as soon as the task is started, while calling mglRetinotopy in mgl2.0 correctly displays the fixation cross on top of the retinotopy stimuli.