Back ] Home ] Next ]


Creating QTVR movies from Terragen

There are a number of tutorials on how to create QTVR movies from Terragen scenes. Most of these, however, use a basic script that is centred on your terrain which is not always the most interesting point of view. 

Render Control

  1. Note the X,Y,Z coordinates of the Camera Position in Terrain Units
  2. Set the Image Size with identical values for Width and Height
  3. Check the Camera Settings

Camera Settings

  1. Set the Zoom to 1 (90°)

Edit the script.

I use the following script, replacing XXX, YYY, ZZZ with the coordinates of your POV and setting the output filename and path..

initanim,"drive:\path\filename",1
;framenum,1
campos,XXX,YYY,ZZZ
tarpos,XXX,10000,ZZZ
camb,0
frend
;framenum,2
campos,XXX,YYY,ZZZ
tarpos,10000,YYY,ZZZ
camb,0
frend
;framenum,3
campos,XXX,YYY,ZZZ
tarpos,XXX,0,ZZZ
camb,0
frend
;framenum,4
campos,XXX,YYY,ZZZ
tarpos,0,YYY,ZZZ
camb,0
frend
;framenum,5
campos,XXX,YYY,ZZZ
tarpos,XXX,YYY,-10000
camb,0
frend
;framenum,6
campos,XXX,YYY,ZZZ
tarpos,XXX,YYY,10000
camb,0
frend

Create the QTVR

Most tutorials use utilities like Gocubic which take the images produced by the script above and create a QTVR file.  I prefer Panocube because it offers more customisation of the final QTVR, but since it uses equirectangular images, it requires an additional step of creating an equirectangular image first.  This is done using Panorama Tools with the following script:

p w4000 h2000 f2 v360 u0 n"TIFF"
m g1 i7
i n"cube0001.bmp"
o f0 y0 r0 p0 v90 a0 b0 c0 d0 e0 g0 t0
i n"cube0002.bmp"
o f0 y90 r0 p0 v90 a0 b0 c0 d0 e0 g0 t0
i n"cube0003.bmp"
o f0 y-180 r0 p0 v90 a0 b0 c0 d0 e0 g0 t0
i n"cube0004.bmp"
o f0 y-90 r0 p0 v90 a0 b0 c0 d0 e0 g0 t0
i n"cube0005.bmp"
o f0 y0 r0 p-90 v90 a0 b0 c0 d0 e0 g0 t0
i n"cube0006.bmp"
o f0 y0 r0 p90 v90 a0 b0 c0 d0 e0 g0 t0

The resulting TIFF file is then dragged onto Panocube for conversion.


Back ] Home ] Next ]


This page, its contents and style, are the responsibility of the author and do not represent the views, policies or opinions of The University of Melbourne. All photographs © Ben Kreunen 2000

Ben Kreunen <bernardk@unimelb.edu.au>
Department of Pathology
Last modified: 22-Feb-2004