|
|
How QCShow Works A QCShow presentation is built as a series of independent frames, which we call "slides." At their simplest, a slide consists of only one image and one sound file, choreographed by a governing script file. You'll see this structure in the sample script below. The advantages of constructing QCShow in this manner are several:
A Sample Script The van Gogh script below is an actual script file for a QCShow lecture. The file is complete, with the exception of some very similar code that has been excised for clarity in the middle of the script. Each section of the script will be explained in detail below. %info /name {em-clifford.qcshow} /version {1.0} /title {Evolution of the Early Martian} /title {Hydrosphere and Climate} /author {Stephen Clifford} /organization {Lunar and Planetary Institute,} /organization {Houston, Texas} /comments {Second Conference on Early Mars} /comments {Jackson Hole, Wyoming} /comments {October 14, 2004} /data {kbps 46 length 1541 filesize 7231972} %endinfo ========================================== %resource /resource {em-clifford001.jpg [71898] em-clifford001.ogg [18811]} /resource {em-clifford002.jpg [91392] em-clifford002.ogg [77838]} /resource {em-clifford003.jpg [51160] em-clifford003.ogg [82915]} /resource {em-clifford004.jpg [132201] em-clifford004.ogg [126728]} /resource {em-clifford005.jpg [54038] em-clifford005.ogg [64412]} /resource {em-clifford006.jpg [180114] em-clifford006.ogg [63392]} /resource {em-clifford007.jpg [138848] em-clifford007.ogg [88644]} /resource {em-clifford008.jpg [77415] em-clifford008.ogg [42291]} /resource {em-clifford009.jpg [74382] em-clifford009.ogg [176096]} /resource {em-clifford010.jpg [46386] em-clifford010.ogg [138152]} /resource {em-clifford011.jpg [58442] em-clifford011.ogg [87365]} /resource {em-clifford012.jpg [126423] em-clifford012.ogg [201968]} /resource {em-clifford013.jpg [152650] em-clifford013.ogg [91239]} /resource {em-clifford014.jpg [115436] em-clifford014.ogg [173416]} /resource {em-clifford015.jpg [125701] em-clifford015.ogg [80501]} /resource {em-clifford016.jpg [134063] em-clifford016.ogg [173636]} /resource {em-clifford017.jpg [70116] em-clifford017.ogg [366280]} /resource {em-clifford018.jpg [126423] em-clifford018.ogg [60778]} /resource {em-clifford019.jpg [54038] em-clifford019.ogg [73550]} /resource {em-clifford020.jpg [71229] em-clifford020.ogg [234340]} /resource {em-clifford021.jpg [93866] em-clifford021.ogg [23534]} /resource {em-clifford022.jpg [152085] em-clifford022.ogg [28045]} /resource {em-clifford023.jpg [72457] em-clifford023.ogg [73711]} /resource {em-clifford024.jpg [83248] em-clifford024.ogg [41770]} /resource {em-clifford025.jpg [79170] em-clifford025.ogg [28677]} /resource {em-clifford026.jpg [77415] em-clifford026.ogg [23598]} /resource {em-clifford027.jpg [69462] em-clifford027.ogg [88888]} /resource {em-clifford028.jpg [58731] em-clifford028.ogg [182034]} /resource {em-clifford029.jpg [52810] em-clifford029.ogg [115375]} /resource {em-clifford030.jpg [66229] em-clifford030.ogg [54237]} /resource {em-clifford031.jpg [65091] em-clifford031.ogg [97519]} /resource {em-clifford032.jpg [101090] em-clifford032.ogg [95421]} /resource {em-clifford033.jpg [122403] em-clifford033.ogg [50452]} /resource {em-clifford034.jpg [75653] em-clifford034.ogg [180235]} /resource {em-clifford035.jpg [127430] em-clifford035.ogg [158243]} /resource {em-clifford036.jpg [127381] em-clifford036.ogg [191005]} /resourceserver {http://www.myserver.org/lectures/earlymars/em-clifford/resources/} %endresource ========================================== %slide /play {em-clifford001.ogg} /image {0 0 em-clifford001.jpg} %endslide ========================================== %slide /play {em-clifford002.ogg} /image {0 0 em-clifford002.jpg} %endslide ========================================== %slide /play {em-clifford003.ogg} /image {0 0 em-clifford003.jpg} %endslide ========================================== %slide /play {em-clifford004.ogg} /image {0 0 em-clifford004.jpg} %endslide ========================================== %slide /play {em-clifford005.ogg} /image {0 0 em-clifford005.jpg} %endslide ========================================== • • • • ========================================== %slide /play {em-clifford034.ogg} /image {0 0 em-clifford034.jpg} %endslide ========================================== %slide /play {em-clifford035.ogg} /image {0 0 em-clifford035.jpg} %endslide ========================================== %slide /play {em-clifford036.ogg} /image {0 0 em-clifford036.jpg} %endslide ========================================== The Syntax and Structure of a van Gogh Script These few rules govern the syntax of a van Gogh script:
The Info Section %info /name {em-clifford.qcshow} /version {1.0} /title {Evolution of the Early Martian} /title {Hydrosphere and Climate} /author {Stephen Clifford} /organization {Lunar and Planetary Institute,} /organization {Houston, Texas} /comments {Second Conference on Early Mars} /comments {Jackson Hole, Wyoming} /comments {October 14, 2004} /data {kbps 46 length 1541 filesize 7231972} %endinfo The following verbs are used in the Info Section. Their order of appearance in the script is generally irrelevant except for those verbs which accumulate text (/title, /author, /organization, and /comments. The text for each of these verbs represents one printed line in the information display and will be presented in the order in which the verbs appear). /name {save name}If this verb is not present, QCShow will attempt to create its own file save name, but due to the vagaries of the several web browsers, the name can occasionally be quite strange. With this verb present, the specified name takes precedence and will be the name of the script file created on the local PC. Example:/version {version number} The Resource Section %resource /resource {em-clifford001.jpg [71898] em-clifford001.ogg [18811]} /resource {em-clifford002.jpg [91392] em-clifford002.ogg [77838]} /resource {em-clifford003.jpg [51160] em-clifford003.ogg [82915]} • • • • /resource {em-clifford035.jpg [127430] em-clifford035.ogg [158243]} /resource {em-clifford036.jpg [127381] em-clifford036.ogg [191005]} /resourceserver {http://www.myserver.org/lectures/earlymars/em-clifford/resources/} * %endresource Only two verbs are used in the Resource Section, /resource and /resourceserver. The resource list is a compilation of all of the image, sound and font files that appear in the current lecture. The list is considered terminated once the /resourceserver verb is encountered. Both verbs are mandatory. /resource {filename [optional filesize]} The list of image, sound and font files used in the current lecture is specified by a series of /resource verbs. Any number of files can be specified within the braces of a single verb, and any number of /resource verbs may be used to complete the list. The size of each file is optionally specified in bytes in brackets "[ ]" immediately following the file's name. If all of the files in the resource list have a filesize specified, the Player can calculate how many files must be downloaded before play can safely begin. If any single file is absent its filesize, the Player will simply resort to beginning play after all of the components of the first two slides have been downloaded. This latter strategy may not prove sufficient under low-bandwidth conditions. In this circumstance, the Player may need to pause frequently to gather more data before it can continue. If the specified files are not already locally present on the local PC, they are downloaded in the order in which appear in the /resource list. For optimal performance, that order should recapitulate the order in which they are called in the Slide Section below. The acceptable formats for image files are GIF, JPEG and BMP. The acceptable formats for audio files are OGG and WAV. Example:/resourceserver {directory URL} If any of the image, sound and font files used in the current lecture (as specified above in the /resource list) are not present on the local machine, either in the Player's cache or as part of a lecture folder, then the specified URL (universal resource locator) is used to indicate the directory on a remote server from which the missing files may be downloaded. The URL in this case is not specifying a single file but rather a directory (a "folder"), thus the URL will always end in a "/", the mark of a directory. Example: The Slides Section ========================================== %slide /play {em-clifford001.ogg} /image {0 0 em-clifford001.jpg} %endslide ========================================== %slide /play {em-clifford002.ogg} /image {0 0 em-clifford002.jpg} %endslide ========================================== %slide /play {em-clifford003.ogg} /image {0 0 em-clifford003.jpg} %endslide ========================================== Slides are defined as independent entities. All of the information necessary to create and play a slide is contained within the The specified sound file is begun to play. The acceptable formats for sound file are OGG and WAV, although a WAVE file would never likely be transmitted through the internet, simply due to its size. Example:/image {x y imagefilename} The upper-left corner of the image is placed on the screen at the specified x,y coordinates. The acceptable formats for an image file are GIF, JPG, JPEG and BMP, although a BMP bitmap would likely never be transmitted through the internet, simply due to its size. Example:The 800 x 600 pixel canvas is used for two reasons:
|