Annotation of researchv8dc/cmd/view2d/howto, revision 1.1

1.1     ! root        1: OPTIONS NOT DOCUMENTED ON THE MAN PAGE
        !             2: 
        !             3: view2d -Tc:
        !             4:   -B   use blue background
        !             5:   -SF  download one frame at a time  (hence, arbitrarily long movies)
        !             6:        GO? s   snaps camera
        !             7:        GO? 4   skips 4 frames forward;  default=1
        !             8:   -SMn like -SF, but "snap n" after each frame
        !             9:   -SA  "autopilot"  like -SF, but keeps going
        !            10:   -b   don't show blank frame
        !            11:   -mf file   color map is taken from file, which has n lines (where n is
        !            12:        the number of colors, specified by -cn).  Each line has three integers
        !            13:        from 0 to 255 for red, green, and blue.
        !            14:        For a sample program, see /n/bowell/src/cmd/view2d/makemap.c.
        !            15:   -mg  use grey rather than color
        !            16:   -mr  use red to blue, omitting green
        !            17:   -v   verbose
        !            18:   -vc    print colors
        !            19:   -w   warmstart
        !            20:   -D   debugging   (don't write on /dev/cv0)
        !            21: 
        !            22: view2d -Tp:
        !            23:    -clx,x,x,x  sets contour levels at x, x, x, and x.   up to 8 levels allowed.
        !            24: 
        !            25: view2d -Th  produces a halftone image on the 202
        !            26:       regrid -nNX,NY ... | view2d -Th | panther /usr/ehg/bin/half NX NY
        !            27:   Panther half takes NX=NY=300 by default.
        !            28:   The default number of levels is 10, but can be changed by view2d -cN.
        !            29: 
        !            30: /n/bowell/src/cmd/view2d/rksmith/rkstri.c
        !            31:    reads triangle formats and converts to grids
        !            32: 
        !            33: antial -c20 | level -ma    produces antialiased movies
        !            34:   
        !            35: -----------------------------------------------------------------------
        !            36: 
        !            37: ............
        !            38: . commands .
        !            39: ............
        !            40: 
        !            41: flood r g b          fill screen.  0 <= r,g,b <= 255
        !            42: snap n   take n exposures of what is currently on the display  (default n=1)
        !            43: xhair    interactive pan and zoom.   Type ? for help.
        !            44: view2d, regrid, vdata    {see man pages}
        !            45: 
        !            46: 
        !            47: ..........
        !            48: . titles .
        !            49: ..........
        !            50: view2d -vc ... 2>movie.color
        !            51: title movie.color movie.text >t
        !            52: flood; dcv -r t
        !            53: 
        !            54: 
        !            55: .................
        !            56: . making slides .
        !            57: .................
        !            58: 
        !            59:   mount the Contax 35mm camera on the Dunn using two bolts, hand tight
        !            60:   plug in the cord from the Contax to the Dunn
        !            61:   wiggle stretch cord where it plugs into Contax; this is flaky!
        !            62:   set switch G to 1 on the logic board inside the Dunn on the right side
        !            63:      (unlock the panel by giving a quarter-turn to a screw, reaching
        !            64:      through from the left hand side of the Dunn.)
        !            65: POWER   on the Dunn
        !            66: RESET
        !            67:   reset exposure counter
        !            68:   set aperture to f/5.6 for Ektachrome ASA 100 film
        !            69: FOCUS mode
        !            70: EXPOSE      hit again when it times out
        !            71: display typical image
        !            72: adjust camera lens focus
        !            73:     slide eyepiece into viewing position if necessary
        !            74: if necessary, adjust VERT and HORIZ POS knobs inside the Dunn cabinet
        !            75:      There is a lock tab on the side of the knob.
        !            76: NORMAL mode
        !            77: RESET
        !            78: RESET
        !            79: EXPOSE
        !            80: slide eyepiece out of the way
        !            81: open camera back by pulling on rewind lever
        !            82: load film an inch onto sprocket and takeup spool
        !            83:    see the refrigerator or Theo's "Princeton" drawer
        !            84: close back
        !            85: film advance indicator should be at S
        !            86: set motor drive to C
        !            87: advance film until indicator is 1
        !            88: set shutter speed to B at rewind knob
        !            89: 
        !            90: view2d -Sf ...
        !            91:    answer s for those frames you want slides of
        !            92:    answer 6 to skip forward six frames
        !            93: 
        !            94:   12-exp Polaroid cassette allows 13 or 14 exposures
        !            95:   momentarily press R level on drive
        !            96:   rewind manually
        !            97: 
        !            98: Photo Express Ltd at the Short Hills Mall (near Altmans)
        !            99:   will develop Ektachrome in one hour, for $8.95/36exp
        !           100: 
        !           101: -----------------------------------------------------------------------
        !           102: 
        !           103: .................
        !           104: . making movies .
        !           105: .................
        !           106: 
        !           107: Prepare an outline and makefile as in /n/swift/usr/ehg/cur/view2d/sample.make.
        !           108: Movies are projected at 24 frames/second; there are 40 frames/foot-of-film;
        !           109: a standard film roll is 100 feet.
        !           110: 
        !           111: regrid your data files to the desired number of frames
        !           112: 
        !           113: Making a movie ties up the display for a long time;  check with
        !           114: ehg to make sure you're not getting in somebody's way.
        !           115: 
        !           116: We currently use 7247 or 7291 film.  (The two emulsions are similar, and
        !           117:   can be processed together.)  Often there will be film already in
        !           118:   the Bolex animation camera.
        !           119: Mount bracket using the same two bolts from the Contax camera bracket.
        !           120:   (Never remove the brackets from the cameras!)
        !           121:   The necessary 3/16" allen wrench is in the plastic Bolex bag; if it
        !           122:   is gone, check Joe's drawer in the network lab.
        !           123:   The high part of the bracket should be towards the rear of the Dunn.
        !           124: Plug in the cord from the Bolex to the Dunn.
        !           125: Set switch G on the logic board inside the panel on the right side.
        !           126: 
        !           127: POWER
        !           128: set f/4; adjust baffle
        !           129: In dim light (since the film spool is not sealed!), open Bolex case.
        !           130: Focus using prism held in focal plane
        !           131:   hit expose button, switch on motor, and focus   (about .32 ft)
        !           132:    as necessary, turn off motor, then repeat.
        !           133:   verify that film advance and shutter are working correctly
        !           134:   (to reset phase of shutter, use needle-nose pliars on drive shaft)
        !           135:   An eye loupe is in the plastic camera bag.
        !           136: Stash prism and loupe; reinstall pressure plate.  Do not lose these small parts!
        !           137: To thread film:
        !           138:    Be sure that the film winds off the spool as indicated by the arrows.
        !           139:    "squeeze things together" says Lynn
        !           140:    turn on motor to verify that film is advancing properly
        !           141:    replace cover
        !           142: set two buttons to "normal", hit reset
        !           143: advance 5 feet using switch on motor drive
        !           144:   (film footage indicator moves from "ft" to "0")
        !           145:   may have to hit RESET occasionally as camera self-triggers
        !           146: hit reset
        !           147: nohup make&
        !           148: cut film and send to TVC Labs
        !           149:      TVC Labs
        !           150:      311 W. 43rd St
        !           151:      New York  NY  10036
        !           152:      800-225-6566
        !           153: The running purchase order number is 164-802.  Send the invoice to Chris.
        !           154: Enclose a letter with the negative asking "develop using normal processing and
        !           155: make a dailies print; return by first class mail the negative, print, spool,
        !           156: and can to ..."    Your home address is probably faster than the Labs mailroom.
        !           157: When the print returns, use a split reel and moviola in Lillian's office
        !           158: to transfer to a normal reel.  16mm projectors are available from CIB x2122.
        !           159: 
        !           160: artistic suggestions from Lillian:
        !           161: snap 2 is ok;  snap 3 gives noticeable jerkiness
        !           162: fade up title in about 8 to 16 frames
        !           163: leave 85 frames for the first line of text, less for extra lines
        !           164: 
        !           165: 
        !           166: -----------------------------------------------------------------------
        !           167: 
        !           168: 4x5 Polacolor
        !           169:   set f/4
        !           170:   load on L
        !           171:   pull for processing on P
        !           172:      wait 2 min for developing
        !           173: 
        !           174: -----------------------------------------------------------------------
        !           175: 
        !           176: 
        !           177: ****************
        !           178: * frame buffer *     swift  /dev/cv0
        !           179: ****************
        !           180: 
        !           181: 
        !           182: hardware
        !           183:   Raster Technologies Model One/20  controller
        !           184:     512 * 512 * 3 * 8-bit image planes
        !           185:     3 * 256 * 8 color lookup tables
        !           186:     RS170 RGB output
        !           187:     DMA interface
        !           188:   Hitachi monitor
        !           189:   Dunn camera
        !           190: 
        !           191: --------------------------
        !           192: 
        !           193: coordinate system:
        !           194:   lower left of screen = (0,0),  upper right = (511,511)
        !           195: 
        !           196: cvinit(1);     at start of each program.      0 for warm start.
        !           197: 
        !           198: cvflush();   flush i/o buffer.
        !           199: 
        !           200: image(data,x0,y0,x1,y1,bank)  write 8-bit image
        !           201:   data   char[x1-x0+1][y1-y0+1]
        !           202:     stored as if a Fortran array with d(i,j) at x=i, y=j,
        !           203:        (scan rows left to right, starting with bottom row)
        !           204:     maximum image size is 128^2.
        !           205:   x0,y0,x1,y1  coordinates of lower left and upper right of window
        !           206:   bank  3-bit value  (red,green,blue)  indicating banks to be written
        !           207: 
        !           208: lutrte(bank)  set which bank drives the display
        !           209:   bank  0x0   each bank indexes its own color table
        !           210:         0x7E  red drives all
        !           211:         0x75  green drives all
        !           212:         0x53  blue drives all
        !           213: 
        !           214: cvmap(map,maxi,zero)
        !           215:   char *map;   /* string describing kind of map */
        !           216:   int maxi;    /* indices from 0 through maxi */
        !           217:   int zero;    /* currently unused */
        !           218:  map=ffile   read triples from file
        !           219:      r       blue-to-red  (for 8 bit in; gamma corrected)
        !           220:      s       spectrum     (for 8 bit in; gamma corrected)
        !           221:      n       normal map (for 24 bin in; not gamma corrected)
        !           222:      g       normal map (for 24 bin in; gamma corrected)
        !           223: 
        !           224: cvload(n,x,y);   load coordinate register n.     0<=n<=63
        !           225:    creg 4  coordinates of center of screen    (useful for panning)
        !           226: zoom(fact)
        !           227:   fact = 1, 2, 4, or 8    (to see 512, 256, 128, or 64 -size images)
        !           228: 
        !           229: cvvalue(r,g,b)    set current color
        !           230: 
        !           231: cvflood()     erase screen
        !           232:  

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.