Welcome! Log In Create A New Profile

Advanced

Dot motion depth

Posted by Cat 
Dot motion depth
March 22, 2021 06:34PM
Hello Jaewon & community,

I am curious if random dot motion will ever support a Z-axis for movement. I understand that this might be difficult, but I don't believe a possible implementation currently exists.

PsyT has the moglDrawDots3D function, but my team already uses ML2 extensively and would rather stick with it.

I appreciate any tips you might have.
Re: Dot motion depth
March 23, 2021 10:14PM
Can you describe what kind of stimulus you want to present? The function you mentioned is implemented by exposing 3D APIs, which I think just makes things complicated for most people. If what you want is a simple 3D effect, we don't need 3D APIs. Try the attached example. Turn on the mouse input or the simulation mode.

-----

Update: The example is included in the package now. See the "task\runtime v2\30 optical flow" directory.
Re: Dot motion depth
March 30, 2021 04:02PM
Thank you Jaewon for the examples. We will take a closer look at them.
To answer your question, we are interested in creating circular and radial pattern of random dots, as shown in the attached image. These pattern is also called optical flow. We wonder how we can easily generate these in the framework of ml2. Much appreciated!
best,
Haoran
Attachments:
open | download - circular and radial motion example.png (48.3 KB)
Re: Dot motion depth
March 31, 2021 11:03PM
There are more examples in the new package. See the "task\runtime v2\30 optical flow" directory. You can do many things with imagination and a little bit of math.

Re: Dot motion depth
April 09, 2021 09:55PM
Thank you, Jaewon. These adapters were clear and served their purposes. We did update them to interface better with properties such as DotColor.

The National Institute of Mental Health (NIMH) is part of the National Institutes of Health (NIH), a component of the U.S. Department of Health and Human Services.