home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 3 / Amiga Tools 3.iso / grafik / raytracing / rayshade-4.0.6.3 / doc / guide / transform.tex < prev    next >
LaTeX Document  |  1994-08-09  |  1.5 KB

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: transform.tex

ConfidenceProgramDetectionMatch TypeSupport
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 | 20 7b 54 72 61 6e 73 66 |\chapter| {Transf|
|00000010| 6f 72 6d 61 74 69 6f 6e | 73 7d 0a 0a 7b 5c 52 61 |ormation|s}..{\Ra|
|00000020| 79 73 68 61 64 65 7d 20 | 73 75 70 70 6f 72 74 73 |yshade} |supports|
|00000030| 20 74 68 65 20 61 70 70 | 6c 69 63 61 74 69 6f 6e | the app|lication|
|00000040| 20 6f 66 20 6c 69 6e 65 | 61 72 20 74 72 61 6e 73 | of line|ar trans|
|00000050| 66 6f 72 6d 61 74 69 6f | 6e 73 20 74 6f 20 6f 62 |formatio|ns to ob|
|00000060| 6a 65 63 74 73 0a 61 6e | 64 20 74 65 78 74 75 72 |jects.an|d textur|
|00000070| 65 73 2e 20 20 49 66 20 | 6d 6f 72 65 20 74 68 61 |es. If |more tha|
|00000080| 6e 20 6f 6e 65 20 74 72 | 61 6e 73 66 6f 72 6d 61 |n one tr|ansforma|
|00000090| 74 69 6f 6e 20 69 73 20 | 73 70 65 63 69 66 69 65 |tion is |specifie|
|000000a0| 64 2c 20 74 68 65 0a 74 | 6f 74 61 6c 20 72 65 73 |d, the.t|otal res|
|000000b0| 75 6c 74 69 6e 67 20 74 | 72 61 6e 73 66 6f 72 6d |ulting t|ransform|
|000000c0| 61 74 69 6f 6e 20 69 73 | 20 63 6f 6d 70 75 74 65 |ation is| compute|
|000000d0| 64 20 61 6e 64 20 61 70 | 70 6c 69 65 64 2e 0a 0a |d and ap|plied...|
|000000e0| 5c 62 65 67 69 6e 7b 64 | 65 66 6b 65 79 7d 7b 74 |\begin{d|efkey}{t|
|000000f0| 72 61 6e 73 6c 61 74 65 | 7d 7b 5c 65 76 65 63 7b |ranslate|}{\evec{|
|00000100| 64 65 6c 74 61 7d 7d 0a | 54 72 61 6e 73 6c 61 74 |delta}}.|Translat|
|00000110| 65 20 28 6d 6f 76 65 29 | 20 62 79 20 7b 5c 65 6d |e (move)| by {\em|
|00000120| 20 64 65 6c 74 61 7d 2e | 0a 5c 65 6e 64 7b 64 65 | delta}.|.\end{de|
|00000130| 66 6b 65 79 7d 0a 0a 5c | 62 65 67 69 6e 7b 64 65 |fkey}..\|begin{de|
|00000140| 66 6b 65 79 7d 7b 72 6f | 74 61 74 65 7d 7b 5c 65 |fkey}{ro|tate}{\e|
|00000150| 76 65 63 7b 61 78 69 73 | 7d 20 24 5c 74 68 65 74 |vec{axis|} $\thet|
|00000160| 61 24 7d 0a 52 6f 74 61 | 74 65 20 63 6f 75 6e 74 |a$}.Rota|te count|
|00000170| 65 72 2d 63 6c 6f 63 6b | 77 69 73 65 20 61 62 6f |er-clock|wise abo|
|00000180| 75 74 20 74 68 65 20 67 | 69 76 65 6e 20 61 78 69 |ut the g|iven axi|
|00000190| 73 20 62 79 20 24 5c 74 | 68 65 74 61 24 20 64 65 |s by $\t|heta$ de|
|000001a0| 67 72 65 65 73 2e 0a 5c | 65 6e 64 7b 64 65 66 6b |grees..\|end{defk|
|000001b0| 65 79 7d 0a 0a 5c 62 65 | 67 69 6e 7b 64 65 66 6b |ey}..\be|gin{defk|
|000001c0| 65 79 7d 7b 73 63 61 6c | 65 7d 7b 5c 65 76 65 63 |ey}{scal|e}{\evec|
|000001d0| 7b 76 7d 7d 0a 53 63 61 | 6c 65 20 62 79 20 7b 5c |{v}}.Sca|le by {\|
|000001e0| 65 6d 20 76 7d 2e 0a 5c | 65 6e 64 7b 64 65 66 6b |em v}..\|end{defk|
|000001f0| 65 79 7d 0a 41 6c 6c 20 | 74 68 72 65 65 20 73 63 |ey}.All |three sc|
|00000200| 61 6c 69 6e 67 20 63 6f | 6d 70 6f 6e 65 6e 74 73 |aling co|mponents|
|00000210| 20 6d 75 73 74 20 62 65 | 20 6e 6f 6e 2d 7a 65 72 | must be| non-zer|
|00000220| 6f 2c 20 65 6c 73 65 20 | 64 65 67 65 6e 65 72 61 |o, else |degenera|
|00000230| 74 65 20 6d 61 74 72 69 | 63 65 73 0a 77 69 6c 6c |te matri|ces.will|
|00000240| 20 72 65 73 75 6c 74 2e | 0a 0a 5c 62 65 67 69 6e | result.|..\begin|
|00000250| 7b 64 65 66 6b 65 79 7d | 7b 74 72 61 6e 73 66 6f |{defkey}|{transfo|
|00000260| 72 6d 7d 7b 5c 65 76 65 | 63 7b 72 6f 77 31 7d 20 |rm}{\eve|c{row1} |
|00000270| 5c 65 76 65 63 7b 72 6f | 77 32 7d 20 5c 65 76 65 |\evec{ro|w2} \eve|
|00000280| 63 7b 72 6f 77 33 7d 20 | 5b 5c 65 76 65 63 7b 64 |c{row3} |[\evec{d|
|00000290| 65 6c 74 61 7d 5d 7d 0a | 41 70 70 6c 79 20 74 68 |elta}]}.|Apply th|
|000002a0| 65 20 67 69 76 65 6e 20 | 33 2d 62 79 2d 33 20 74 |e given |3-by-3 t|
|000002b0| 72 61 6e 73 66 6f 72 6d | 61 74 69 6f 6e 20 6d 61 |ransform|ation ma|
|000002c0| 74 72 69 78 2e 20 20 49 | 66 20 67 69 76 65 6e 2c |trix. I|f given,|
|000002d0| 20 7b 5c 65 6d 20 64 65 | 6c 74 61 7d 0a 73 70 65 | {\em de|lta}.spe|
|000002e0| 63 69 66 69 65 73 20 61 | 20 74 72 61 6e 73 6c 61 |cifies a| transla|
|000002f0| 74 69 6f 6e 20 76 65 63 | 74 6f 72 2e 0a 5c 65 6e |tion vec|tor..\en|
|00000300| 64 7b 64 65 66 6b 65 79 | 7d 0a 0a 54 72 61 6e 73 |d{defkey|}..Trans|
|00000310| 66 6f 72 6d 61 74 69 6f | 6e 73 20 73 68 6f 75 6c |formatio|ns shoul|
|00000320| 64 0a 62 65 20 73 70 65 | 63 69 66 69 65 64 20 69 |d.be spe|cified i|
|00000330| 6e 20 74 68 65 20 6f 72 | 64 65 72 20 69 6e 20 77 |n the or|der in w|
|00000340| 68 69 63 68 20 74 68 65 | 79 20 61 72 65 20 74 6f |hich the|y are to|
|00000350| 20 62 65 20 61 70 70 6c | 69 65 64 0a 69 6d 6d 65 | be appl|ied.imme|
|00000360| 64 69 61 74 65 6c 79 20 | 66 6f 6c 6c 6f 77 69 6e |diately |followin|
|00000370| 67 20 74 68 65 20 69 74 | 65 6d 20 74 6f 0a 62 65 |g the it|em to.be|
|00000380| 20 74 72 61 6e 73 66 6f | 72 6d 65 64 2e 20 20 46 | transfo|rmed. F|
|00000390| 6f 72 20 65 78 61 6d 70 | 6c 65 3a 0a 0a 5c 62 65 |or examp|le:..\be|
|000003a0| 67 69 6e 7b 76 65 72 62 | 61 74 69 6d 7d 0a 20 20 |gin{verb|atim}. |
|000003b0| 20 20 20 20 20 20 2f 2a | 0a 20 20 20 20 20 20 20 | /*|. |
|000003c0| 20 20 2a 20 45 6c 6c 69 | 70 73 6f 69 64 2c 20 72 | * Elli|psoid, r|
|000003d0| 6f 74 61 74 65 64 20 63 | 75 62 65 0a 20 20 20 20 |otated c|ube. |
|000003e0| 20 20 20 20 20 2a 2f 0a | 20 20 20 20 20 20 20 20 | */.| |
|000003f0| 73 70 68 65 72 65 20 31 | 2e 20 30 20 30 20 30 20 |sphere 1|. 0 0 0 |
|00000400| 20 20 73 63 61 6c 65 20 | 32 2e 20 31 2e 20 31 2e | scale |2. 1. 1.|
|00000410| 20 74 72 61 6e 73 6c 61 | 74 65 20 30 20 30 20 2d | transla|te 0 0 -|
|00000420| 32 2e 35 0a 20 20 20 20 | 20 20 20 20 62 6f 78 20 |2.5. | box |
|00000430| 30 20 30 20 30 20 2e 35 | 20 2e 35 20 2e 35 0a 20 |0 0 0 .5| .5 .5. |
|00000440| 20 20 20 20 20 20 20 20 | 20 20 72 6f 74 61 74 65 | | rotate|
|00000450| 20 30 20 30 20 31 20 34 | 35 20 72 6f 74 61 74 65 | 0 0 1 4|5 rotate|
|00000460| 20 31 20 30 20 30 20 34 | 35 20 74 72 61 6e 73 6c | 1 0 0 4|5 transl|
|00000470| 61 74 65 20 30 20 30 20 | 32 2e 35 0a 5c 65 6e 64 |ate 0 0 |2.5.\end|
|00000480| 7b 76 65 72 62 61 74 69 | 6d 7d 0a 0a 54 72 61 6e |{verbati|m}..Tran|
|00000490| 73 66 6f 72 6d 61 74 69 | 6f 6e 73 20 6d 61 79 20 |sformati|ons may |
|000004a0| 61 6c 73 6f 20 62 65 20 | 61 70 70 6c 69 65 64 20 |also be |applied |
|000004b0| 74 6f 20 74 65 78 74 75 | 72 65 73 3a 0a 0a 5c 62 |to textu|res:..\b|
|000004c0| 65 67 69 6e 7b 76 65 72 | 62 61 74 69 6d 7d 0a 20 |egin{ver|batim}. |
|000004d0| 20 20 70 6c 61 6e 65 20 | 30 20 30 20 2d 34 20 20 | plane |0 0 -4 |
|000004e0| 30 20 30 20 31 0a 20 20 | 20 20 20 74 65 78 74 75 |0 0 1. | textu|
|000004f0| 72 65 20 63 68 65 63 6b | 65 72 20 72 65 64 20 73 |re check|er red s|
|00000500| 63 61 6c 65 20 32 20 32 | 20 32 20 72 6f 74 61 74 |cale 2 2| 2 rotat|
|00000510| 65 20 30 20 30 20 31 20 | 34 35 0a 5c 65 6e 64 7b |e 0 0 1 |45.\end{|
|00000520| 76 65 72 62 61 74 69 6d | 7d 0a 0a 4e 6f 74 65 20 |verbatim|}..Note |
|00000530| 74 68 61 74 20 74 72 61 | 6e 73 66 6f 72 6d 61 74 |that tra|nsformat|
|00000540| 69 6f 6e 20 70 61 72 61 | 6d 65 74 65 72 73 20 6d |ion para|meters m|
|00000550| 61 79 20 62 65 20 73 70 | 65 63 69 66 69 65 64 20 |ay be sp|ecified |
|00000560| 75 73 69 6e 67 0a 61 6e | 69 6d 61 74 65 64 20 65 |using.an|imated e|
|00000570| 78 70 72 65 73 73 69 6f | 6e 73 2c 20 63 61 75 73 |xpressio|ns, caus|
|00000580| 69 6e 67 20 74 68 65 20 | 74 72 61 6e 73 66 6f 72 |ing the |transfor|
|00000590| 6d 61 74 69 6f 6e 73 20 | 74 68 65 6d 73 65 6c 76 |mations |themselv|
|000005a0| 65 73 0a 74 6f 20 62 65 | 20 61 6e 69 6d 61 74 65 |es.to be| animate|
|000005b0| 64 2e 20 20 53 65 65 20 | 41 70 70 65 6e 64 69 78 |d. See |Appendix|
|000005c0| 20 42 20 66 6f 72 20 66 | 75 72 74 68 65 72 20 64 | B for f|urther d|
|000005d0| 65 74 61 69 6c 73 2e 0a | |etails..| |
+--------+-------------------------+-------------------------+--------+--------+