129
edits
No edit summary |
No edit summary |
||
Line 170: | Line 170: | ||
[[Image:CapturyAxis.png|thumb|left|Coordinate Axis of the Performance Platform]] | [[Image:CapturyAxis.png|thumb|left|Coordinate Axis of the Performance Platform]] | ||
<br style="clear:both"> | <br style="clear:both"> | ||
*Using position x as the condition. If user stand | |||
*Using position y as the condition. If user stand close to the | *Using position x as the condition. If user stand in the center of the platform, the speed will be slowest. The farther away from the center user stand, the faster the movie play. | ||
*Using position y as the condition. If user stand at the side close to the Video Wall, the movie will play as usual, if else the movie will reverse. | |||
<source lang="Java" line start= "4"> | <source lang="Java" line start= "4"> | ||
int play; //Declare a value to judge play or reverse the video | int play; //Declare a value to judge play or reverse the video | ||
Line 192: | Line 193: | ||
*Pay attention that if the movie play to the end, it must be reversed. And if the movie reverse to the beginning, it must play as usual. | *Pay attention that if the movie play to the end, it must be reversed. And if the movie reverse to the beginning, it must play as usual. | ||
<source lang="Java" line start= "26"> | <source lang="Java" line start= "26"> | ||
if( | if(x < -50 && getFrame() < (getLength() - 1)){ | ||
play = 1; | play = 1; | ||
myMovie.play(); | myMovie.play(); | ||
Line 201: | Line 202: | ||
} | } | ||
float newSpeed = map(abs(y)/10, 0, 150, 0*play, 2*play); //abs() to have absolute position value | |||
float newSpeed = map( | |||
myMovie.speed(newSpeed); | myMovie.speed(newSpeed); | ||
</source> | </source> | ||
== Let's Enjoy The Example File== | == Let's Enjoy The Example File == | ||
Thanks for your attention to this tutorial, and feel free to debug and improve it. | Thanks for your attention to this tutorial, and feel free to debug and improve it. | ||
*Here is the complete code for this tutorial uploading on GitHub: [https://github.com/Yunbaby1028/WoolsWorld.git Complete Code of Wool's World]<br> | *Here is the complete code for this tutorial uploading on GitHub: [https://github.com/Yunbaby1028/WoolsWorld.git Complete Code of Wool's World]<br> | ||
*Example File including the movie is shared on Dropbox: [https://www.dropbox.com/sh/f8jcuw03nekoelz/AABeKONtJAI1vfNK4tWSZ3dTa?dl=0 Example File of Wool's World] | *Example File including the movie is shared on Dropbox: [https://www.dropbox.com/sh/f8jcuw03nekoelz/AABeKONtJAI1vfNK4tWSZ3dTa?dl=0 Example File of Wool's World] | ||
== Demonstration == | |||
[http://www.example.com link Controlling the Video in Processing with Captury] |
edits