UV Animations: Difference between revisions

Minor Mode6 translation scale fix
>Aruki
imported>Jackoalan
(Minor Mode6 translation scale fix)
 
(3 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 11 animation types across those four games.
'''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:_Convoluted reflection mode|Convoluted reflection mode]]
| [[#Mode_7:_Cylinder Environment|Cylinder Environment]]
| 2
| 2
| {{check}}
| {{check}}
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.50000001,
<pre>0.5, 0.0, 0.0, ModelMatrix[0][3] * 0.050000001,
0.0, 0.0, 0.5, ModelMatrix[1][3] * 0.5</pre>
0.0, 0.0, 0.5, ModelMatrix[1][3] * 0.050000001</pre>


==== Mode 7: Convoluted reflection mode ====
==== Mode 7: Cylinder Environment ====


Mode 7 takes two parameters and generates both a texture matrix and a post-transform matrix. Feel free to come up with a name for it.
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.
Anonymous user