# develop-25 9603 March 1996 — source transcripts, page 2

[Canonical transcript page](https://www.vintageapple.net/transcripts/media/va-develop-25-9603-march-1996-1b3ae7/2)

## Transcribed source material

Machine transcriptions and image descriptions; uncertain copy may be marked [illegible]. Verify against the linked originals. Historical rights remain with the original owners.

These are transcribed excerpts, not the full publications. Open the originals for remaining pages.

### PDF page 12

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-develop-25-9603-march-1996-1b3ae7/2#scan-2e4a18f3533ce6b9e0326e0ba2874ebb0209592a8cdfc972e4a44b6e0658c11d)

Transcribed text:

For panoramic movies, we set the field of view to 74°. This matches the horizontal
field of view of a 15mm lens for our image. We specify the horizontal rather than
vertical field of view since our image is taller than it is wide (768 x 512 pixels), and
QuickDraw 3D requires the field of view to be specified as that of the shorter side of
the image (whether width or height). We calculate the horizontal field of view based
on the size of our image and the known vertical field of view of a 15mm lens (97°, as
specified in Chapter 9 of the QuickTime VR ATS documentation).
READING IN THE MODEL
For the model to be read from a 3DMF file, you must first create 3D file and storage
objects associated with that file. Once they’ve been created, you build up the model
by reading in all the drawable objects from the file and adding them to a group, as
shown in Listing 4.
If the model includes any lighting, we use those lights; otherwise we create our own
lighting for the model.
d e v e l o p   Issue 25   March 1996 10
Listing 3.   Creating the rendering camera
TQ3CameraObject   MyNewCamera(CWindowPtr   theWindow)
{
TQ3ViewAngleAspectCameraData   perspectiveData;
TQ3CameraObject   camera;
//   For   object   movies,   we   set   the   field   of   view   to   30   degrees   (or
//   30.0*kQ3Pi/180.0   radians).   For   panoramic   movies,   we   set   it   to
//   74   degrees   (or   74*kQ3Pi/180.0   radians).   QuickDraw   3D   requires
//   angles   to   be   in   radians,   while   QuickTime   VR   requires   them   to
//   be   in   degrees.
float   fieldOfView   =   30.0*kQ3Pi/180.0;
TQ3Status   returnVal   =   kQ3Failure;
//   Assign   default   placement.
perspectiveData.cameraData.placement.cameraLocation   =   kMyDefaultFrom;
perspectiveData.cameraData.placement.pointOfInterest   =   kMyDefaultTo;
perspectiveData.cameraData.placement.upVector   =   kMyDefaultUp;
perspectiveData.cameraData.range.hither   =   kMyDefaultHither;
perspectiveData.cameraData.range.yon   =   kMyDefaultYon;
//   Assign   standard   view   port.
perspectiveData.cameraData.viewPort.origin.x   =   -1.0;
perspectiveData.cameraData.viewPort.origin.y   =   1.0;
perspectiveData.cameraData.viewPort.width   =   2.0;
perspectiveData.cameraData.viewPort.height   =   2.0;
perspectiveData.fov   =   fieldOfView;
perspectiveData.aspectRatioXToY   =
(float)   (theWindow->portRect.right   -   theWindow->portRect.left)   /
(float)   (theWindow->portRect.bottom   -   theWindow->portRect.top);
camera   =   Q3ViewAngleAspectCamera_New(&perspectiveData);
return   (camera);
}

Reading notes: Source describes panoramic field of view and QuickDraw 3D code listings; no advertised products or prices are present. The line 'd e v e l o p Issue 25 March 1996 10' is a spaced-out running header and may be a page-layout artifact.

Printed dates: March 1996

Languages: English

[Original PDF page 12](https://www.vintageapple.net/files/057f3b271dd172e2ccee763289d49c661356130ae4ab004c2d8eeb54c33f017d/develop-25_9603_March_1996.pdf#page=12)

[Previous transcribed scans](https://www.vintageapple.net/transcripts/media/va-develop-25-9603-march-1996-1b3ae7/1.md)
