Hi Chris,
After updating to the latest Nightly build version of MWorks, we’ve noticed a change in the way our parametric shapes are displayed. There’s a small boundary line that appears along the right and bottom borders of the shapes at certain sizes. I’ve attached a video of our task where you can see this issue.
We’re using the following code to display our stimulus:
stimulus_group target_stimulus {
stimulus/parametric_shape target_para_stimulus(
alpha_multiplier = stimulus_alpha_multiplier
vertices = shape_list[stimulus_id-1]
color = stimulus_color_r, stimulus_color_g, stimulus_color_b
x_size = stimulus_size
vertex_coord_range = stimulus_vertex_range
use_antialiasing = true
margin_pixels = 1
max_size_x = 20
max_size_y = 20
rotation = stimulus_rotation
x_position = stimulus_x; y_position = stimulus_y
deferred = yes)
}
queue_stimulus (target_stimulus[stimulus_type])
update_display ()
We use both queue_stimulus and live_queue_stimulus to display our stimuli across different protocols.
Do you think this issue could be caused by the update? And if so, how can we fix it? Thanks for your help!
Best,
Ahmad
Hi Ahmad,
Thanks for reporting this. I can reproduce the issue on my system, too.
I did make a few changes relatively recently that may have caused this problem. Let me investigate and get back to you.
Cheers,
Chris
Thanks again for your support.
Hi Ahmad,
I think I’ve figured this out. It looks like a recent change exposed an older error in the parametric shape drawing code.
I’m pretty sure I’ve fixed the problem, but I want to take a little time to make sure I got it right (and to fix any other stimulus types with similar problems). I will try to get the fix in to the nightly build early next week.
Cheers,
Chris
Hi Chris,
Thank you for your quick response!
We are at a critical moment to collect data right now. If the issue might not be resolved by early next week, would you recommend rolling back to the last nightly build version as a temporary solution?
Thank you again!
Best,
Chuyi
Hi Chuyi,
The change that exposed the parametric shape drawing bug has been in the nightly build since late May, so you’ll need a build from before then. Probably the best thing would be to use the MWorks 0.13 release build.
Cheers,
Chris
Thank you for the info Chris!
Hi Ahmad & Chuyi,
This issue should be fixed in the current nightly build. When you have a chance, can you please try it out and confirm that the problem is gone?
Thanks,
Chris
Hi Chris,
Thank you for your email! The problem has been resolved by the current nightly build, and everything is now working smoothly.
Thank you for your time!
Best,
Chuyi