develop-25 9603 March 1996
From the originals
13 scansMachine-transcribed text and image descriptions. Check the linked original for uncertain words or fine print.
These are transcribed pages from the documents, not the full publications. Open the original for the remaining pages.
PDF page 12
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