INTRODUCTION TO QTVR

Review skills check: Making an interactive image pan

1) Before beginning this exercise you need to create an image in Photoshop: Specs: 72dpi, size approx. 1280x480 pixels.

2) Open Director. Create a single frame movie that measures 320 by 240 pixels. Import your image file. Save movie as pandemo.dir in a folder titled QTVR_demo.

3) Drag your image file into the score in sprite channel 12.

4) Write a frame behavior script that makes the image pan to the right when the mouse touches the right edge of the image, and pans to the left when the mouse approaches the left edge of the image.

5) Finished? Add a script that makes the image pan up and down in addition to left and right.

6) Can you make the image move diagonally when your mouse enters the corners of the image?

7) Test and save this movie (pandemo.dir)

 

MAKING A QTVR MOVIE

1) Double click application Make QTVR Panorama.

2) Find your Photoshop file (it should be vertically oriented) and open. You may get an alert about your image not being in the correct proportions but proceed anyway. Then quit the application "Make QTVR Panorama."

3) In whatever folder that your image was stored you now have two new files. One is a movie file and one is a "tiled" movie of your image. The QTVR movie has a .snm extension. The movie I showed in class was named bodypan.pct.snm because the original image I used was named bodypan.pct.

4) You can double click on your movie to play around with it in the QTVRPlayer.

 

USING QTVR IN DIRECTOR

1) Open Director. Import your QTVR movie and drop in score Channel 1.

2) There is a very useful function associated with QTVR called the swing function. Try using this sample script below that we looked at in class.

3) Play around with different paramenters for the swing function. Save at least one demo movie.

 

USING THE SWING FUNCTION

on exitFrame me

--elements of swing function: four parameters

--swing (sprite(whichsprite), pan, tilt, fieldOfView, speed)

-- pan refers to horizontal position, can be set to 180 to view the opposite "side" of the panorama. (360 is all the way around)

-- EXAMPLE: sprite(1).pan=180

-- tilt refers to how you look at the upper and lower edges of a QTVR movie -setting the tilt to a positive integer tilts the viewing frame up

-- EXAMPLE: sprite(1).tilt= -100

-- fieldOfView refers to how much you are zoomed in on a QTVR movie, lower numbers bring you very close and

-- numbers over 100 bring you out to a fisheye perspective -- EXAMPLE: sprite1.fieldofview = 10

-- speed refers to how fast the swing occurs, can be set between 1 and 10, 1 is slowest

-- this property can only be set as part of the swing function

-- THIS is NOT VALID: sprite(1).speed=10

swing (sprite(1), sprite(1).pan + 20, random(100)-50, random(100), 10)

go the frame

end