psychostudy
|
|
Group: Forum Members
Posts: 16,
Visits: 1,000
|
Hi, I have some questions regarding pictures/videos:
1) I know it's possible to have an /animate command for shapes and such, but is it possible to have an image move around (e.g. from point A to B)?
2) Is it possible to delay a video/image from appearing when starting a trial? and also to replace an image/video with another after a certain time?
thanks in advance for help.
|
|
|
Dave
|
|
Group: Administrators
Posts: 13K,
Visits: 104K
|
+xHi, I have some questions regarding pictures/videos: 1) I know it's possible to have an /animate command for shapes and such, but is it possible to have an image move around (e.g. from point A to B)? 2) Is it possible to delay a video/image from appearing when starting a trial? and also to replace an image/video with another after a certain time? thanks in advance for help. Re. #1: Yes, <picture> elements have an /animation attribute just like <shape> elements do, i.e. you can have a <picture> move from point A to B by using the points() function in its /animation attribute. Re. #2: Yes, you can control the point in time _when_ a given stimulus is displayed during a <trial> via the <trial>'s /stimulustimes attribute -- it does not matter whether the stimulus is a <text>, <picture> or <video>. <trial example> / stimulustimes = [0=fixation; 2000=sometextstimulus, anothertextstimulus; 5000=somevideo; ...] ... </trial> As for "replacing" a stimulus after a certain time, set up two stimulus elements, and then simply display the 2nd one over the 1st one at the appropriate time. This will work fine for static stimuli like <picture> elements, for <video>s it will depend on whether the 1st video is still running or not.
|
|
|
psychostudy
|
|
Group: Forum Members
Posts: 16,
Visits: 1,000
|
Alright, thank you that helped out! Another question, is it possible to have videos/ animated pictures on surveypages?
|
|
|
psychostudy
|
|
Group: Forum Members
Posts: 16,
Visits: 1,000
|
+xAlright, thank you that helped out! Another question, is it possible to have videos/ animated pictures on surveypages? also to add on:is it possible to delay/replace pictures in /surveypages?
|
|
|
Dave
|
|
Group: Administrators
Posts: 13K,
Visits: 104K
|
+x+xAlright, thank you that helped out! Another question, is it possible to have videos/ animated pictures on surveypages? also to add on:is it possible to delay/replace pictures in /surveypages? So, it is possible to have <surveypage>s display stimulus elements like <text>, <picture> and <video> elements in a _limited_ capacity, via the page's /stimulustimes or -frames, just like in a regular <trial> element: <surveypage mypage> / stimulustimes = [2000=a; 4000=b] </surveypage> <text a> / items = ("A") / position = (50%, 45%) </text> <text b> / items = ("B") / position = (50%, 55%) </text> You can also display images via by setting up <image> elements and displaying those via the page's /questions attribute, but there no delay is possible. Hope this helps!
|
|
|
psychostudy
|
|
Group: Forum Members
Posts: 16,
Visits: 1,000
|
Yep that did help indeed. Thanks again! Still, I gotta go back to an earlier question: There's no way to replace a <video> file with a <picture> file, is there (on a surveypage)?
|
|
|
Dave
|
|
Group: Administrators
Posts: 13K,
Visits: 104K
|
+xYep that did help indeed. Thanks again! Still, I gotta go back to an earlier question: There's no way to replace a <video> file with a <picture> file, is there (on a surveypage)? It would work the same way as in a <trial> element: I.e. you'd display the <video> first via the page's /stimulustimes and then, at some point later, when the video has ended, you'd display the <picture>. As in a <trial>, though, problems may arise if the video is still running at the time you display the <picture> -- basically, the <picture> would be overwritten by the <video> again, and not remain visible for long. If you could give me a clearer idea / description of what exactly you want the end result to look like (i.e. what is supposed to happen when, etc.) I should be able to tell you whether that's feasible to implement and how to go about it.
|
|
|
psychostudy
|
|
Group: Forum Members
Posts: 16,
Visits: 1,000
|
+xIf you could give me a clearer idea / description of what exactly you want the end result to look like (i.e. what is supposed to happen when, etc.) I should be able to tell you whether that's feasible to implement and how to go about it. Well basically it goes like this: The participants play an ultimatum game with some supposedly partner (it's all the computer) before, and afterwards they'll come to the surveypage where they should believe that the other player is making a feedback (on their actions in the game), and they have to answer questions regarding to that feedback. So my idea was to have some moving loading circle/bar , which afterwards will be replaced by the picture/feedback from the other "player", giving an illusion of the system waiting for the other player's response. So when the participants come to the page, there will be questions, and the "loading symbol", which should be replaced by a picture after like 3,4 seconds. I tried making the video end just before the picture appears, however, the video persists as a black square, partly covering the picture.
|
|
|
Dave
|
|
Group: Administrators
Posts: 13K,
Visits: 104K
|
+x+xIf you could give me a clearer idea / description of what exactly you want the end result to look like (i.e. what is supposed to happen when, etc.) I should be able to tell you whether that's feasible to implement and how to go about it. Well basically it goes like this: The participants play an ultimatum game with some supposedly partner (it's all the computer) before, and afterwards they'll come to the surveypage where they should believe that the other player is making a feedback (on their actions in the game), and they have to answer questions regarding to that feedback. So my idea was to have some moving loading circle/bar , which afterwards will be replaced by the picture/feedback from the other "player", giving an illusion of the system waiting for the other player's response. So when the participants come to the page, there will be questions, and the "loading symbol", which should be replaced by a picture after like 3,4 seconds. I tried making the video end just before the picture appears, however, the video persists as a black square, partly covering the picture. Are participants supposed to be able to respond to the questions _during_ the "loading circle" phase, or only after? If the latter, you could split things into two consecutive trials: (1) a <trial> that displays the loading screen, directly followed by a <surveypage> containing the static "result" image and questions. If the former, you _could_ use an animated GIF for the loading animation. GIFs are handled a bit differently than other types of videos / animations, and that should avoid the "black rectangle" problem: <surveypage feebackpage> / stimulustimes = [0=loading; 3000=playerresult] / questions = [1=q1; 2=q2] / showpagenumbers = false / showquestionnumbers = false </surveypage> <video loading> / items = ("circle.gif") / loop = false / position = (50%, 30%) </video> <text playerresult> / items = ("Imagine a static picture of the result here.") / size = (25%, 25%) / position = (50%, 30%) / vjustify = center </text> <radiobuttons q1> / caption = "Question #1" / options = ("Option A", "Option B") / position = (20%, 70%) </radiobuttons> <radiobuttons q2> / caption = "Question #2" / options = ("Option C", "Option D") / position = (40%, 70%) </radiobuttons>
|
|
|
psychostudy
|
|
Group: Forum Members
Posts: 16,
Visits: 1,000
|
Thanks a lot, the option with the gif works perfectly! Just a small remark: When the question is set on required (for radiobuttons in this case), and one attempts to continue without giving an answer, the picture (and any text added with /stimulustimes) disappear. Is this supposed to happen?
|
|
|