Difference between revisions of "Sky Mipmap Val (RW Section)"
Jump to navigation
Jump to search
m |
|||
| Line 8: | Line 8: | ||
}} | }} | ||
| − | '''Sky Mipmap''' - a section in DFF file, which is an extension for [[Texture (RW Section)|Texture]] and [[ | + | '''Sky Mipmap''' - a section in DFF file, which is an extension for [[Texture (RW Section)|Texture]] and [[Raster(RW Section)|Raster]] sections. This section is only used in PS2 models / textures (PS2-version of RenderWare engine is called 'Sky'). |
==Structure== | ==Structure== | ||
Revision as of 15:29, 11 September 2020
| Sky Mipmap Val | |
|---|---|
| RenderWare Stream Section | |
| Vendor | Criterion Games |
| Module | Toolkit |
| Module ID | 0x000001
|
| Identifier | 0x10
|
| Chunk ID | 0x00000110
|
| Versions | All |
| Hierarchy | |
| Parents: Texture (Extension) | |
| Children: None | |
| Extensions: None | |
| File Format | |
Sky Mipmap - a section in DFF file, which is an extension for Texture and Raster sections. This section is only used in PS2 models / textures (PS2-version of RenderWare engine is called 'Sky').
Structure
This section takes 4 bytes and consists of two parameters - "K" and "L". The "K" and "L" values control the way mipmap levels are selected by the Graphics Synthesizer.
12bits K-value - specifies the distance a polygon needs to be from the camera such that the pixel to texel ratio,
when rendered, is 1:1 assuming the polygon is flat on the screen.
It ranges within [-2048 ; 2047]. Divide it by 16 to get a real world coordinate.
2bits L-value - specifies the angle of inclination between the polygon and the camera viewwindow,
it's a 2-bit value where 0 says the angle is 0 degrees and 3 says it's 90 degrees.