home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: LaTeX Document
(document/latex).
You can browse this item here: intro.tex
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| LaTeX Document (document/latex)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| LaTeX document text
| default
| |
99%
| file
| LaTeX document, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 5c 63 68 61 70 74 65 72 | 7b 49 6e 74 72 6f 64 75 |\chapter|{Introdu|
|00000010| 63 74 69 6f 6e 7d 0a 5c | 70 61 67 65 6e 75 6d 62 |ction}.\|pagenumb|
|00000020| 65 72 69 6e 67 7b 61 72 | 61 62 69 63 7d 0a 0a 54 |ering{ar|abic}..T|
|00000030| 68 69 73 20 64 6f 63 75 | 6d 65 6e 74 20 64 65 73 |his docu|ment des|
|00000040| 63 72 69 62 65 73 20 7b | 5c 72 61 79 73 68 61 64 |cribes {|\rayshad|
|00000050| 65 7d 20 69 6e 20 65 6e | 6f 75 67 68 20 64 65 74 |e} in en|ough det|
|00000060| 61 69 6c 20 74 6f 20 65 | 6e 61 62 6c 65 0a 74 68 |ail to e|nable.th|
|00000070| 65 20 74 65 63 68 6e 69 | 63 61 6c 2d 6d 69 6e 64 |e techni|cal-mind|
|00000080| 65 64 20 74 6f 0a 73 69 | 74 20 64 6f 77 6e 20 61 |ed to.si|t down a|
|00000090| 6e 64 20 72 65 6e 64 65 | 72 20 73 6f 6d 65 20 69 |nd rende|r some i|
|000000a0| 6d 61 67 65 73 2e 20 20 | 49 6e 20 69 74 73 20 63 |mages. |In its c|
|000000b0| 75 72 72 65 6e 74 20 66 | 6f 72 6d 2c 0a 69 74 20 |urrent f|orm,.it |
|000000c0| 69 73 20 74 72 75 6c 79 | 20 61 20 64 72 61 66 74 |is truly| a draft|
|000000d0| 2c 20 61 6e 64 20 65 76 | 65 6e 20 74 68 65 6e 0a |, and ev|en then.|
|000000e0| 6d 6f 72 65 20 6f 66 20 | 61 20 72 65 66 65 72 65 |more of |a refere|
|000000f0| 6e 63 65 20 6d 61 6e 75 | 61 6c 20 74 68 61 6e 20 |nce manu|al than |
|00000100| 61 20 70 72 6f 70 65 72 | 20 75 73 65 72 27 73 20 |a proper| user's |
|00000110| 67 75 69 64 65 2e 0a 0a | 54 68 69 73 20 64 6f 63 |guide...|This doc|
|00000120| 75 6d 65 6e 74 20 64 6f | 65 73 20 6e 6f 74 20 70 |ument do|es not p|
|00000130| 72 6f 76 69 64 65 20 61 | 6e 79 20 6b 69 6e 64 20 |rovide a|ny kind |
|00000140| 6f 66 20 74 68 6f 72 6f | 75 67 68 20 69 6e 74 72 |of thoro|ugh intr|
|00000150| 6f 64 75 63 74 69 6f 6e | 0a 74 6f 20 74 68 65 20 |oduction|.to the |
|00000160| 62 61 73 69 63 73 20 6f | 66 20 63 6f 6d 70 75 74 |basics o|f comput|
|00000170| 65 72 20 67 72 61 70 68 | 69 63 73 20 6f 72 20 72 |er graph|ics or r|
|00000180| 61 79 20 74 72 61 63 69 | 6e 67 2e 0a 54 68 65 72 |ay traci|ng..Ther|
|00000190| 65 20 61 72 65 20 6d 61 | 6e 79 20 6f 74 68 65 72 |e are ma|ny other|
|000001a0| 20 65 78 63 65 6c 6c 65 | 6e 74 20 73 6f 75 72 63 | excelle|nt sourc|
|000001b0| 65 73 20 66 6f 72 20 74 | 68 69 73 20 6b 69 6e 64 |es for t|his kind|
|000001c0| 20 6f 66 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 2e | of info|rmation.|
|000001d0| 0a 54 68 65 20 74 65 63 | 68 6e 69 63 61 6c 20 61 |.The tec|hnical a|
|000001e0| 6e 64 20 63 6f 64 69 6e | 67 20 64 65 74 61 69 6c |nd codin|g detail|
|000001f0| 73 20 6f 66 20 7b 5c 72 | 61 79 73 68 61 64 65 7d |s of {\r|ayshade}|
|00000200| 20 61 6e 64 0a 69 74 73 | 20 6c 69 62 72 61 72 69 | and.its| librari|
|00000210| 65 73 20 77 69 6c 6c 20 | 62 65 20 64 6f 63 75 6d |es will |be docum|
|00000220| 65 6e 74 65 64 20 65 6c | 73 65 77 68 65 72 65 2e |ented el|sewhere.|
|00000230| 0a 0a 5c 73 65 63 74 69 | 6f 6e 7b 47 65 74 74 69 |..\secti|on{Getti|
|00000240| 6e 67 20 53 74 61 72 74 | 65 64 7d 0a 0a 54 68 65 |ng Start|ed}..The|
|00000250| 20 62 65 73 74 20 77 61 | 79 20 74 6f 20 6c 65 61 | best wa|y to lea|
|00000260| 72 6e 20 68 6f 77 20 74 | 6f 20 75 73 65 20 7b 5c |rn how t|o use {\|
|00000270| 72 61 79 73 68 61 64 65 | 7d 20 69 73 20 74 6f 20 |rayshade|} is to |
|00000280| 64 69 76 65 20 72 69 67 | 68 74 20 69 6e 20 61 6e |dive rig|ht in an|
|00000290| 64 0a 73 74 61 72 74 20 | 6d 61 6b 69 6e 67 20 70 |d.start |making p|
|000002a0| 69 63 74 75 72 65 73 2e | 20 20 53 74 75 64 79 20 |ictures.| Study |
|000002b0| 74 68 65 20 65 78 61 6d | 70 6c 65 0a 69 6e 70 75 |the exam|ple.inpu|
|000002c0| 74 20 66 69 6c 65 73 20 | 74 68 61 74 20 61 72 65 |t files |that are|
|000002d0| 20 70 61 63 6b 61 67 65 | 64 20 77 69 74 68 20 7b | package|d with {|
|000002e0| 5c 72 61 79 73 68 61 64 | 65 7d 2e 20 20 52 75 6e |\rayshad|e}. Run|
|000002f0| 20 74 68 65 6d 20 74 68 | 72 6f 75 67 68 0a 7b 5c | them th|rough.{\|
|00000300| 72 61 79 73 68 61 64 65 | 7d 20 74 6f 20 73 65 65 |rayshade|} to see|
|00000310| 20 77 68 61 74 20 74 68 | 65 20 69 6d 61 67 65 73 | what th|e images|
|00000320| 20 74 68 65 79 20 70 72 | 6f 64 75 63 65 20 6c 6f | they pr|oduce lo|
|00000330| 6f 6b 20 6c 69 6b 65 2e | 0a 43 68 61 6e 67 65 20 |ok like.|.Change |
|00000340| 74 68 65 20 69 6e 70 75 | 74 20 66 69 6c 65 73 3b |the inpu|t files;|
|00000350| 20 6d 6f 76 65 20 74 68 | 65 20 63 61 6d 65 72 61 | move th|e camera|
|00000360| 2c 0a 63 68 61 6e 67 65 | 20 74 68 65 20 66 69 65 |,.change| the fie|
|00000370| 6c 64 20 6f 66 20 76 69 | 65 77 2c 20 6d 6f 64 69 |ld of vi|ew, modi|
|00000380| 66 79 20 73 75 72 66 61 | 63 65 20 70 72 6f 70 65 |fy surfa|ce prope|
|00000390| 72 74 69 65 73 2c 20 61 | 6e 64 20 73 65 65 20 77 |rties, a|nd see w|
|000003a0| 68 61 74 20 64 69 66 66 | 65 72 65 6e 63 65 73 0a |hat diff|erences.|
|000003b0| 79 6f 75 72 20 63 68 61 | 6e 67 65 73 20 6d 61 6b |your cha|nges mak|
|000003c0| 65 2c 20 61 6c 6c 20 74 | 68 65 20 77 68 69 6c 65 |e, all t|he while|
|000003d0| 20 72 65 66 65 72 72 69 | 6e 67 20 74 6f 20 74 68 | referri|ng to th|
|000003e0| 65 20 61 70 70 72 6f 70 | 72 69 61 74 65 20 70 6f |e approp|riate po|
|000003f0| 72 74 69 6f 6e 73 0a 6f | 66 20 74 68 69 73 20 64 |rtions.o|f this d|
|00000400| 6f 63 75 6d 65 6e 74 2e | 20 20 42 72 6f 77 73 65 |ocument.| Browse|
|00000410| 20 74 68 72 6f 75 67 68 | 20 74 68 65 20 69 6e 64 | through| the ind|
|00000420| 69 76 69 64 75 61 6c 20 | 63 68 61 70 74 65 72 73 |ividual |chapters|
|00000430| 0a 74 6f 20 73 65 65 20 | 77 68 61 74 20 7b 5c 72 |.to see |what {\r|
|00000440| 61 79 73 68 61 64 65 7d | 20 63 61 6e 20 61 6e 64 |ayshade}| can and|
|00000450| 20 63 61 6e 6e 6f 74 20 | 64 6f 2e 20 20 54 68 65 | cannot |do. The|
|00000460| 20 7b 5c 72 61 79 73 68 | 61 64 65 7d 20 71 75 69 | {\raysh|ade} qui|
|00000470| 63 6b 20 72 65 66 65 72 | 65 6e 63 65 0a 67 75 69 |ck refer|ence.gui|
|00000480| 64 65 20 6d 61 79 20 61 | 6c 73 6f 20 68 65 6c 70 |de may a|lso help|
|00000490| 20 79 6f 75 20 73 6f 72 | 74 20 6f 75 74 20 73 79 | you sor|t out sy|
|000004a0| 6e 74 61 63 74 69 63 61 | 6c 20 6e 61 73 74 69 65 |ntactica|l nastie|
|000004b0| 73 2e 0a 0a 54 68 72 6f | 75 67 68 6f 75 74 20 74 |s...Thro|ughout t|
|000004c0| 68 69 73 20 74 65 78 74 | 2c 20 74 68 65 20 7b 5c |his text|, the {\|
|000004d0| 74 74 20 74 79 70 65 77 | 72 69 74 65 72 7d 20 74 |tt typew|riter} t|
|000004e0| 79 70 65 20 73 74 79 6c | 65 20 69 73 20 75 73 65 |ype styl|e is use|
|000004f0| 64 20 74 6f 20 69 6e 64 | 69 63 61 74 65 0a 6b 65 |d to ind|icate.ke|
|00000500| 79 77 6f 72 64 73 20 61 | 6e 64 20 6f 74 68 65 72 |ywords a|nd other|
|00000510| 20 69 74 65 6d 73 20 74 | 68 61 74 20 73 68 6f 75 | items t|hat shou|
|00000520| 6c 64 20 62 65 20 70 61 | 73 73 65 64 0a 64 69 72 |ld be pa|ssed.dir|
|00000530| 65 63 74 6c 79 20 74 6f | 20 7b 5c 72 61 79 73 68 |ectly to| {\raysh|
|00000540| 61 64 65 7d 2e 20 20 57 | 68 65 72 65 20 61 70 70 |ade}. W|here app|
|00000550| 72 6f 70 72 69 61 74 65 | 2c 0a 69 74 65 6d 73 20 |ropriate|,.items |
|00000560| 69 6e 20 61 6e 20 7b 5c | 65 6d 20 69 74 61 6c 69 |in an {\|em itali|
|00000570| 63 5c 2f 7d 20 73 74 79 | 6c 65 20 69 6e 64 69 63 |c\/} sty|le indic|
|00000580| 61 74 65 0a 70 6c 61 63 | 65 73 20 77 68 65 72 65 |ate.plac|es where|
|00000590| 20 79 6f 75 20 73 68 6f | 75 6c 64 20 70 72 6f 76 | you sho|uld prov|
|000005a0| 69 64 65 20 61 6e 20 61 | 70 70 72 6f 70 72 69 61 |ide an a|ppropria|
|000005b0| 74 65 20 6e 75 6d 62 65 | 72 20 6f 72 20 73 74 72 |te numbe|r or str|
|000005c0| 69 6e 67 2e 0a 0a 56 65 | 63 74 6f 72 73 2c 20 77 |ing...Ve|ctors, w|
|000005d0| 68 69 63 68 20 63 6f 6e | 73 69 73 74 20 6f 66 20 |hich con|sist of |
|000005e0| 74 68 72 65 65 20 6e 75 | 6d 65 72 69 63 61 6c 20 |three nu|merical |
|000005f0| 76 61 6c 75 65 73 2c 20 | 61 72 65 20 69 6e 64 69 |values, |are indi|
|00000600| 63 61 74 65 64 20 62 79 | 0a 61 6e 20 61 72 72 6f |cated by|.an arro|
|00000610| 77 20 6f 76 65 72 20 61 | 20 6e 61 6d 65 20 77 72 |w over a| name wr|
|00000620| 69 74 74 65 6e 20 69 6e | 20 69 74 61 6c 69 63 20 |itten in| italic |
|00000630| 74 79 70 65 20 73 74 79 | 6c 65 2c 20 65 2e 67 2e |type sty|le, e.g.|
|00000640| 2c 20 5c 65 76 65 63 7b | 76 65 63 74 6f 72 7d 2e |, \evec{|vector}.|
|00000650| 0a 49 74 65 6d 73 20 65 | 6e 63 6c 6f 73 65 64 20 |.Items e|nclosed |
|00000660| 62 65 74 77 65 65 6e 20 | 7b 5c 74 74 20 5b 7d 20 |between |{\tt [} |
|00000670| 61 6e 64 20 7b 5c 74 74 | 20 5d 7d 20 63 68 61 72 |and {\tt| ]} char|
|00000680| 61 63 74 65 72 73 20 69 | 6e 64 69 63 61 74 65 0a |acters i|ndicate.|
|00000690| 74 68 61 74 20 73 70 65 | 63 69 66 79 69 6e 67 20 |that spe|cifying |
|000006a0| 74 68 6f 73 65 20 69 74 | 65 6d 73 20 69 73 20 6f |those it|ems is o|
|000006b0| 70 74 69 6f 6e 61 6c 2e | 0a 43 6f 6d 70 6c 65 78 |ptional.|.Complex|
|000006c0| 20 63 6f 6e 73 74 72 75 | 63 74 69 6f 6e 73 20 74 | constru|ctions t|
|000006d0| 68 61 74 20 61 72 65 0a | 64 65 73 63 72 69 62 65 |hat are.|describe|
|000006e0| 64 20 65 6c 73 65 77 68 | 65 72 65 20 69 6e 20 74 |d elsewh|ere in t|
|000006f0| 68 65 20 74 65 78 74 2c | 20 73 75 63 68 20 61 73 |he text,| such as|
|00000700| 20 73 75 72 66 61 63 65 | 20 6f 72 20 6f 62 6a 65 | surface| or obje|
|00000710| 63 74 20 73 70 65 63 69 | 66 69 63 61 74 69 6f 6e |ct speci|fication|
|00000720| 2c 0a 61 72 65 20 64 65 | 6e 6f 74 65 64 20 62 79 |,.are de|noted by|
|00000730| 20 65 6e 63 6c 6f 73 69 | 6e 67 20 64 65 73 63 72 | enclosi|ng descr|
|00000740| 69 70 74 69 76 65 20 74 | 65 78 74 20 62 65 74 77 |iptive t|ext betw|
|00000750| 65 65 6e 20 0a 7b 5c 74 | 74 20 24 3c 24 7d 20 61 |een .{\t|t $<$} a|
|00000760| 6e 64 20 7b 5c 74 74 20 | 24 3e 24 7d 20 63 68 61 |nd {\tt |$>$} cha|
|00000770| 72 61 63 74 65 72 73 2e | 0a 0a 5c 73 65 63 74 69 |racters.|..\secti|
|00000780| 6f 6e 7b 41 20 53 69 6d | 70 6c 65 20 45 78 61 6d |on{A Sim|ple Exam|
|00000790| 70 6c 65 7d 0a 0a 42 65 | 63 61 75 73 65 20 7b 5c |ple}..Be|cause {\|
|000007a0| 72 61 79 73 68 61 64 65 | 7d 20 70 72 6f 76 69 64 |rayshade|} provid|
|000007b0| 65 73 20 61 20 64 65 66 | 61 75 6c 74 20 63 61 6d |es a def|ault cam|
|000007c0| 65 72 61 20 64 65 73 63 | 72 69 70 74 69 6f 6e 2c |era desc|ription,|
|000007d0| 20 73 75 72 66 61 63 65 | 20 70 72 6f 70 65 72 74 | surface| propert|
|000007e0| 69 65 73 2c 0a 61 6e 64 | 20 61 20 64 65 66 61 75 |ies,.and| a defau|
|000007f0| 6c 74 20 6c 69 67 68 74 | 0a 73 6f 75 72 63 65 2c |lt light|.source,|
|00000800| 20 69 74 20 69 73 20 65 | 61 73 79 20 74 6f 20 63 | it is e|asy to c|
|00000810| 6f 6e 73 74 72 75 63 74 | 20 73 68 6f 72 74 20 69 |onstruct| short i|
|00000820| 6e 70 75 74 20 66 69 6c | 65 73 20 74 68 61 74 20 |nput fil|es that |
|00000830| 61 6c 6c 6f 77 20 79 6f | 75 20 74 6f 0a 65 78 70 |allow yo|u to.exp|
|00000840| 65 72 69 6d 65 6e 74 20 | 77 69 74 68 20 6f 62 6a |eriment |with obj|
|00000850| 65 63 74 73 2c 20 74 65 | 78 74 75 72 65 73 2c 20 |ects, te|xtures, |
|00000860| 61 6e 64 20 74 72 61 6e | 73 66 6f 72 6d 61 74 69 |and tran|sformati|
|00000870| 6f 6e 73 2e 0a 49 66 20 | 79 6f 75 20 68 61 76 65 |ons..If |you have|
|00000880| 6e 27 74 20 61 6c 72 65 | 61 64 79 20 72 75 6e 20 |n't alre|ady run |
|00000890| 7b 5c 72 61 79 73 68 61 | 64 65 7d 20 6f 6e 20 6f |{\raysha|de} on o|
|000008a0| 6e 65 20 6f 66 20 74 68 | 65 20 65 78 61 6d 70 6c |ne of th|e exampl|
|000008b0| 65 20 69 6e 70 75 74 20 | 66 69 6c 65 73 2c 0a 79 |e input |files,.y|
|000008c0| 6f 75 20 6d 69 67 68 74 | 20 77 61 6e 74 20 74 6f |ou might| want to|
|000008d0| 20 74 72 79 20 70 72 6f | 64 75 63 69 6e 67 20 61 | try pro|ducing a|
|000008e0| 6e 20 69 6d 61 67 65 20 | 75 73 69 6e 67 20 74 68 |n image |using th|
|000008f0| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 69 6e 70 75 |e follow|ing inpu|
|00000900| 74 3a 0a 0a 5c 62 65 67 | 69 6e 7b 76 65 72 62 61 |t:..\beg|in{verba|
|00000910| 74 69 6d 7d 0a 20 20 20 | 73 70 68 65 72 65 20 32 |tim}. |sphere 2|
|00000920| 20 30 20 30 20 30 0a 5c | 65 6e 64 7b 76 65 72 62 | 0 0 0.\|end{verb|
|00000930| 61 74 69 6d 7d 0a 0a 49 | 66 20 79 6f 75 20 61 72 |atim}..I|f you ar|
|00000940| 65 20 72 75 6e 6e 69 6e | 67 20 7b 5c 72 61 79 73 |e runnin|g {\rays|
|00000950| 68 61 64 65 7d 20 6f 6e | 20 61 20 55 4e 49 58 5c |hade} on| a UNIX\|
|00000960| 66 6f 6f 74 6e 6f 74 65 | 7b 55 4e 49 58 20 69 73 |footnote|{UNIX is|
|00000970| 20 61 20 74 72 61 64 65 | 6d 61 72 6b 0a 6f 66 20 | a trade|mark.of |
|00000980| 41 54 5c 26 54 20 42 65 | 6c 6c 20 4c 61 62 6f 72 |AT\&T Be|ll Labor|
|00000990| 61 74 6f 72 69 65 73 7d | 2d 6c 69 6b 65 20 6d 61 |atories}|-like ma|
|000009a0| 63 68 69 6e 65 2c 20 74 | 68 65 20 63 6f 6d 6d 61 |chine, t|he comma|
|000009b0| 6e 64 3a 0a 5c 62 65 67 | 69 6e 7b 76 65 72 62 61 |nd:.\beg|in{verba|
|000009c0| 74 69 6d 7d 0a 20 20 65 | 63 68 6f 20 22 73 70 68 |tim}. e|cho "sph|
|000009d0| 65 72 65 20 32 20 30 20 | 30 20 30 22 20 7c 20 72 |ere 2 0 |0 0" | r|
|000009e0| 61 79 73 68 61 64 65 20 | 3e 20 73 70 68 65 72 65 |ayshade |> sphere|
|000009f0| 2e 72 6c 65 0a 5c 65 6e | 64 7b 76 65 72 62 61 74 |.rle.\en|d{verbat|
|00000a00| 69 6d 7d 0a 73 68 6f 75 | 6c 64 20 70 72 6f 64 75 |im}.shou|ld produ|
|00000a10| 63 65 20 61 6e 20 69 6d | 61 67 65 20 6f 66 20 61 |ce an im|age of a|
|00000a20| 20 73 70 68 65 72 65 2e | 0a | sphere.|. |
+--------+-------------------------+-------------------------+--------+--------+