Difference between revisions of "NiTexturingPropertySetTextureCount"
imported>DragoonWraith (New page: This is a command from NifSE. '''Syntax''' (bool:success) NiTexturingPropertySetTextureCount short:texCount short:nifID ''short:blockID'' (bool:success) NiTexPropSet...) |
imported>DragoonWraith |
||
Line 5: | Line 5: | ||
(bool:success) NiTexPropSetTexCount short:texCount short:nifID ''short:blockID'' | (bool:success) NiTexPropSetTexCount short:texCount short:nifID ''short:blockID'' | ||
Sets the number of texture slots that the [[:Category:NifSE (NiTexturingProperty)|<tt>NiTexturingProperty</tt>]] specified by <tt>blockID</tt> has open. Each slot has a specific meaning to the NIF - slot 0 is always the base map, slot 4 is always the glow map, etc. If a given slot is open, all slots below it must be also, so knowing the number of slots open also indicates which slots are open. For example, a texture count of 5 will mean that the <tt>NiTexturingProperty</tt> uses the base, dark, detail, gloss, and glow maps. There are a maximum of 12 types of textures, so 12 is the maximum value that | Sets the number of texture slots that the [[:Category:NifSE (NiTexturingProperty)|<tt>NiTexturingProperty</tt>]] specified by <tt>blockID</tt> has open. Each slot has a specific meaning to the NIF - slot 0 is always the base map, slot 4 is always the glow map, etc. If a given slot is open, all slots below it must be also, so knowing the number of slots open also indicates which slots are open. For example, a texture count of 5 will mean that the <tt>NiTexturingProperty</tt> uses the base, dark, detail, gloss, and glow maps. There are a maximum of 12 types of textures, so 12 is the maximum value that should be passed. | ||
Returns 0 if the function fails for whatever reason, 1 otherwise. | Returns 0 if the function fails for whatever reason, 1 otherwise. |
Latest revision as of 12:33, 21 January 2011
This is a command from NifSE.
Syntax
(bool:success) NiTexturingPropertySetTextureCount short:texCount short:nifID short:blockID (bool:success) NiTexPropSetTexCount short:texCount short:nifID short:blockID
Sets the number of texture slots that the NiTexturingProperty specified by blockID has open. Each slot has a specific meaning to the NIF - slot 0 is always the base map, slot 4 is always the glow map, etc. If a given slot is open, all slots below it must be also, so knowing the number of slots open also indicates which slots are open. For example, a texture count of 5 will mean that the NiTexturingProperty uses the base, dark, detail, gloss, and glow maps. There are a maximum of 12 types of textures, so 12 is the maximum value that should be passed.
Returns 0 if the function fails for whatever reason, 1 otherwise.
The default value of blockID, 0, indicates the NIF's root, a NiNode. NiNode blocks are not derived from NiTexturingProperty, so this function will always require an explicit blockID.
Texture Slots
- BASE_MAP = 0 - a.k.a. the color map
- DARK_MAP = 1
- DETAIL_MAP = 2
- GLOSS_MAP = 3
- GLOW_MAP = 4
- BUMP_MAP = 5
- NORMAL_MAP = 6
- UNKNOWN2_MAP = 7
- DECAL_0_MAP = 8
- DECAL_1_MAP = 9
- DECAL_2_MAP = 10
- DECAL_3_MAP = 11