Last active
May 17, 2018 06:55
-
-
Save iandol/d2e6604fe844166de22b82c9bfd39f33 to your computer and use it in GitHub Desktop.
Testing dot motion on the Display++ — you need to download and install my `opticka` toolbox from https://github.com/iandol/opticka/archive/master.zip for this to run…
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% install https://github.com/iandol/opticka/archive/master.zip first | |
clear s d | |
% this sets up the PTB screen | |
s = screenManager('verbose',false,'blend',true,... | |
'bitDepth','FloatingPoint32Bit',... % try FloatingPoint32Bit EnableBits++Mono++Output EnableBits++Bits++Output | |
'debug',false,... % don't check for dropped frames etc. | |
'windowed', [],... %empty is full screen | |
'screen', [],... %empty chooses the highest avilable screen | |
'srcMode','GL_SRC_ALPHA', 'dstMode', 'GL_ONE_MINUS_SRC_ALPHA',... | |
'backgroundColour',[0.5 0.5 0.5]); %change background colour here | |
prepareScreen(s); | |
s.disableSyncTests = true; %used only for development! | |
%create a dots stimulus | |
d = dotsStimulus; | |
d.coherence = 1; | |
d.density = 1; | |
d.speed = 25; % speed is critical to reveal the artifacts | |
d.size = 25; | |
d.dotSize = 0.2; | |
d.colourType = 'randomBW'; %try 'simple', 'randomBW' and 'binary' | |
d.colour = [0.75 0.75 0.75]; %if colourType is simple use this colour | |
%run this stimulus | |
runTime = 25; | |
forceFullscreen = true; | |
d.run([], runTime, s, forceFullscreen) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment