Difference between revisions of "Sky Mipmap Val (RW Section)"
Jump to navigation
Jump to search
m (→Structure) |
m |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | {{RW Section|Sky Mipmap Val| | + | {{RW Section |
+ | | NAME = Sky Mipmap Val | ||
+ | | VENDORNAME = Criterion Games | ||
+ | | MODULENAME = Toolkit | ||
+ | | MODULEID = 000001 | ||
+ | | IDENTIFIER = 10 | ||
+ | | PARENTS = [[Texture (RW Section)|Texture]] ''([[Extension (RW Section)|Extension]])'', [[Raster (RW Section)|Raster]] ''([[Extension (RW Section)|Extension]])'' | ||
+ | }} | ||
− | '''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== | ||
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. | 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, | 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. | when rendered, is 1:1 assuming the polygon is flat on the screen. | ||
Line 11: | Line 19: | ||
2bits L-value - specifies the angle of inclination between the polygon and the camera viewwindow, | 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. | it's a 2-bit value where 0 says the angle is 0 degrees and 3 says it's 90 degrees. | ||
+ | |||
+ | {{N|SA|VC|3}} |
Latest 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), Raster (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.