Autoplay and sequencer with DevalVR 

This is an example page to show the "autoplay" and "sequencefile" parameters in DevalVR plugin. These parameters are used to configure automatic movements in panoramas.

The "autoplay " parameter sets the time delay to begin the automatic rotation of panorama. If "autoplay" is set to 0, the autorotation is disabled. Another values specifies the time delay in seconds.

The automatic rotation begins when the time passes without pressing any key or mouse button. The mouse left button or any key (cursor key or zoom key) interrupts the autorotation. Also, you can use the "Autoplay" button in the tools bar to begin and stop the autorotation.

The DevalVR viewer provides a way to configure pre-saved rotation sequences. That sequence of movements will be saved in a sequence file. To create a sequence file, you can use DevalVR player. This file can be used after to reproduce all camera movements in automatic mode.

Load a panorama in the player and push the "Save sequence" button , you must choose a file name to save the sequence. After, rotate and zoom the panorama as you want, and push the "Save sequence" button again  to finish. Wait 5 seconds to view the last saved sequence in standalone player.

The "sequencefile" parameter sets the file name of sequence configuration file. When the time delay passes (configured in "autoplay" parameter), the plugin will execute the rotations and zooms sequence. 

Actualization:

From 0,5,1,0 version, it exists a new parameter to set the delay time only for the first autorotation. With parameter "firstautoplay "can be defined a first delay time and the percentage loaded to begin this delay time.

This is an example with a sequence file and "autoplay" to 6 seconds. First autoplay begins when panorama is 50% loaded with a delay of 0 seconds.


Photography by Jeffrey Martin www.panopticpictures.com

This is the HTML code:


<OBJECT codeBase='http://www.devalvr.com/instalacion/plugin/devalocx.cab#version=0,2,9,14'
classid=clsid:5D2CF9D0-113A-476B-986F-288B54571614
style='WIDTH: 400; HEIGHT: 300' width='400' height='300'>

<PARAM NAME="src" VALUE="panorama.mov">
<PARAM NAME="firstautoplay" VALUE="0, 50">
<PARAM NAME="autoplay" VALUE="6">
<PARAM NAME="sequencefile" VALUE="sequence.txt">

<EMBED TYPE='application/x-devalvrx'
PLUGINSPAGE='http://www.devalvr.com/instalacion/plugin/install.html' 

src="panorama.mov"
firstautoplay="0, 50"
autoplay="6"
sequencefile="sequence.txt"

width='400' height='300'></EMBED>
</OBJECT>
 

 

Sequence files syntax

Sequence files are simple plain text files with basic defined instructions. A sequence is composed by a number of defined camera positions. Then, the camera is moved to all positions sequentially. It exist several instructions to define these camera positions:

TIME = number of seconds
TILT = absolute rotation of X axis in degrees
PAN = absolute rotation of Y axis in degrees
FOV = field of view value in degrees

The TIME instruction defines a new camera position. This instruction is used to set the time that camera takes to move from the previous position to the next. If the position is the first one in the file, this value is the time to move from current camera position to first defined point in the sequence file.

Only TIME instruction is required to define a new camera position. If any other value is absent, this value is defined equal to the value of the previous camera position.

To leave the camera some time without any movement, write only TIME instruction with the value in seconds. The camera will move from previous point to the next point (with same pan, tilt and fov values) in this time, result is that camera does not move in the defined time.

NOTE: TILT, PAN and FOV instructions define absolute values (not increments). When the camera is moved from any position to the next, the shortest path is chosen.

Example:


 TIME = 3.5
 TILT = 0 
 PAN = 60
 FOV = 45.0
 
 TIME = 2
 TILT = 20
 
 TIME = 3
 
 TIME = 5
 PAN = 120 
 FOV = 20
  

In this example:

1 - camera moves to tilt=0, pan=60, fov=45 in 3.5 seconds
2 - camera moves to tilt=20, pan=60, fov=45 in 2 seconds
3 - camera wait 3 seconds in current position
4 - camera moves to tilt=20, pan=120, fov=20 in 5 seconds
5 - repeat from point 1