UV Animations: Difference between revisions
Minor Mode6 translation scale fix
>Aruki No edit summary |
imported>Jackoalan (Minor Mode6 translation scale fix) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
'''UV animations''' are used to animate texture coordinates. They're present in the material data of the Metroid Prime trilogy and Donkey Kong Country Returns. There are | '''UV animations''' are used to animate texture coordinates. They're present in the material data of the Metroid Prime trilogy and Donkey Kong Country Returns. There are 13 animation types across those four games. | ||
{{research|moderate|Modes 8/10/11/12/13 are unknown}} | {{research|moderate|Modes 8/10/11/12/13 are unknown}} | ||
Line 129: | Line 129: | ||
|- | |- | ||
| 7 | | 7 | ||
| [[#Mode_7: | | [[#Mode_7:_Cylinder Environment|Cylinder Environment]] | ||
| 2 | | 2 | ||
| {{check}} | | {{check}} | ||
Line 145: | Line 145: | ||
|- | |- | ||
| 10 | | 10 | ||
| {{unknown| | | {{unknown|[[#Mode_10:_Another_reflection_mode|Another reflection mode]]}} | ||
| 0 | | 0 | ||
| {{nocheck}} | | {{nocheck}} | ||
Line 237: | Line 237: | ||
The texture matrix is simply the model matrix, with the translation values set to 0. The post-transform matrix is set to the following: | The texture matrix is simply the model matrix, with the translation values set to 0. The post-transform matrix is set to the following: | ||
<pre>0.5, 0.0, 0.0, ModelMatrix[0][3] * 0. | <pre>0.5, 0.0, 0.0, ModelMatrix[0][3] * 0.050000001, | ||
0.0, 0.0, 0.5, ModelMatrix[1][3] * 0. | 0.0, 0.0, 0.5, ModelMatrix[1][3] * 0.050000001</pre> | ||
==== Mode 7: | ==== Mode 7: Cylinder Environment ==== | ||
Mode 7 takes two parameters and generates both a texture matrix and a post-transform matrix | Mode 7 takes two parameters and generates both a texture matrix and a post-transform matrix, projecting the UVs onto the surface of a cylinder, used almost exclusively on pipes. | ||
The texture matrix is generated the same way as in mode 0; translation is ignored. | The texture matrix is generated the same way as in mode 0; translation is ignored. |