Difference between revisions of "LlGetTextureScale"

From Second Life Wiki
Jump to navigation Jump to search
(Hopefully clarified what ALL_SIDES does for this function...)
Line 7: Line 7:
|return_text=that is the texture scale of '''side''' in the x and y components.
|return_text=that is the texture scale of '''side''' in the x and y components.
|spec= In the default texture mapping mode the scale units are in texture repeats per face. In the planar texture mapping mode the scale units are in texture repeats per half meter. This is in contrast to the in-world editing tool, in which the planar texture scaling units are repeats per meter.
|spec= In the default texture mapping mode the scale units are in texture repeats per face. In the planar texture mapping mode the scale units are in texture repeats per half meter. This is in contrast to the in-world editing tool, in which the planar texture scaling units are repeats per meter.
|caveats
|caveats=* ALL_SIDES seems to return the scale of the *first* face, not an average or other function of all the faces.  It acts much like if it were called with side=0. 
|constants
|constants
|examples
|examples

Revision as of 06:14, 7 February 2008

Summary

Function: vector llGetTextureScale( integer side );

Returns a vector that is the texture scale of side in the x and y components.

• integer side face number or ALL_SIDES

If side is ALL_SIDES then the function works on all sides.

Specification

In the default texture mapping mode the scale units are in texture repeats per face. In the planar texture mapping mode the scale units are in texture repeats per half meter. This is in contrast to the in-world editing tool, in which the planar texture scaling units are repeats per meter.

Caveats

  • The function silently fails if its side value indicates a face that does not exist.
  • ALL_SIDES seems to return the scale of the *first* face, not an average or other function of all the faces. It acts much like if it were called with side=0.
All Issues ~ Search JIRA for related Bugs

Examples

See Also

Functions

•  llScaleTexture

Deep Notes

Search JIRA for related Issues

Signature

function vector llGetTextureScale( integer side );