Difference between revisions of "NiTexturingPropertySetTextureCenterOffset"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>DragoonWraith
(New page: This is a command from NifSE. '''Syntax''' (bool:success) NiTexturingPropertySetTextureCenterOffset StringMap:offset short:texSlot short:nifID ''short:blockID'' (boo...)
 
imported>DragoonWraith
Line 19: Line 19:
== See Also ==
== See Also ==


* [[NiTexturingPropertyGetCenterOffset]]
* [[NiTexturingPropertyGetTextureCenterOffset]]


[[Category:NifSE|TexturingPropertySetTextureCenterOffset]]
[[Category:NifSE|TexturingPropertySetTextureCenterOffset]]
[[Category:NifSE (NiTexturingProperty)|SetTextureCenterOffset]]
[[Category:NifSE (NiTexturingProperty)|SetTextureCenterOffset]]

Revision as of 16:06, 21 January 2011

This is a command from NifSE.

Syntax

(bool:success) NiTexturingPropertySetTextureCenterOffset StringMap:offset short:texSlot short:nifID short:blockID
(bool:success) NiTexPropSetTexCenOff StringMap:offset short:texSlot short:nifID short:blockID

Sets how much the the texture used by the specified NiTexturingProperty in the given slot is offset in each direction. The texture slots range from 0 to NiTexturingPropertySetTextureCount, and the possible choices are given below. See NiTexturingPropertySetTextureCount for more details.

The passed StringMap must have the following format:

map["u"] = offset in the U coordinate direction
map["v"] = offset in the V coordinate direction

Returns -1 if the function fails for whatever reason.

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

See Also