Difference between revisions of "PRIM TEXGEN"
Jump to navigation
Jump to search
m |
m (naming collision) |
||
(10 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<onlyinclude>{{#if: | <onlyinclude>{{#if: | ||
{{#vardefine: | {{#vardefine:texgen_return|[ {{HoverLink|PRIM_TEXGEN_DEFAULT|(0) integer mode}} ]}} | ||
{{#vardefine:texgen_const|{{LSL Const|PRIM_TEXGEN|integer|22|c=Used to {{GetSet|{{{1|}}}|get|set|/}} the texture mapping mode of a prim's face}}}} | {{#vardefine:texgen_const|{{LSL Const|PRIM_TEXGEN|integer|22|c=Used to {{GetSet|{{{1|}}}|get|set|/}} the texture mapping mode of a prim's face}}}} | ||
Line 10: | Line 10: | ||
{{!}}- | {{!}}- | ||
{{!}} [ {{#var:texgen_const}} ] | {{!}} [ {{#var:texgen_const}} ] | ||
{{!}} {{#var: | {{!}} {{#var:texgen_return}} }} | ||
}}</onlyinclude>{{#if: | }}</onlyinclude>{{#if: | ||
{{LSL_Function/face|face|{{#var:texgen_const}}|!footer=*|return={{#var: | <noincude> | ||
{{:PRIM_TEXTURE|none}} | |||
</noincude> | |||
{{LSL_Function/face|face|{{#var:texgen_const}}|!footer=*}} | |||
{{#vardefine:caveats_set|{{#var:caveats}}{{#vardefine:caveats|}}}} | |||
{{#vardefine:issues_set|{{#var:issues}}{{#vardefine:issues|}}}} | |||
{{LSL_Function/face|face|{{#var:texgen_const}}|!footer=*|return={{#var:texgen_return}}}} | |||
{{#vardefine:caveats|{{#var:caveats}} | |||
{{#var:texture_mapping_caveat}}}} | |||
{{#vardefine:caveats_get|{{#var:caveats}}{{#vardefine:caveats|}}}} | |||
{{#vardefine:issues_get|{{#var:issues}}{{#vardefine:issues|}}}} | |||
}}{{LSL Constant | }}{{LSL Constant | ||
|inject-2={{LSL PrimitiveParam Categorize|Face}} | |||
|name=PRIM_TEXGEN | |name=PRIM_TEXGEN | ||
|type=integer | |type=integer | ||
|value=22 | |value=22 | ||
|desc=PRIM_TEXGEN is used to get and set the configure the texture mapping mode of the {{ | |desc=PRIM_TEXGEN is used to get and set the configure the texture mapping mode of the {{LSLP|face}}. | ||
{{LSL_Constants/PrimitiveParams/texgen|table=*|sortable=*}} | {{LSL_Constants/PrimitiveParams/texgen|table=*|sortable=*}} | ||
|pa={{LSL Constant/List|i_front=[& | |pa={{LSL Constant/List|i_front=[ {{#var:texgen_const}}, |i_end= ] | ||
|text=When used with [[llSetPrimitiveParams]] & [[ | |text=When used with [[llSetPrimitiveParams]], [[llSetLinkPrimitiveParams]] & [[llSetLinkPrimitiveParamsFast]] | ||
{{LSL Generic/Caveats|caveats={{#var:caveats_set}}{{#vardefine:caveats_set}}|issues={{#var:issues_set}}|title=*|h=4}} | |||
|toc=llSetPrimitiveParams | |||
|i1_type=integer|i1_name=face | |i1_type=integer|i1_name=face | ||
|i2_type=integer|i2_name=tg_type|i2_disp=mode}} | |i2_type=integer|i2_name=tg_type|i2_disp=mode}} | ||
|pb={{LSL Constant/List|i_front= | |pb={{LSL Constant/List|i_front=[ {{#var:texgen_const}}, |i_end= ] | ||
|r_front=Returns the list [ |r_end= ] | |r_front=Returns the list [ |r_end= ] | ||
|text= | |toc=llGetPrimitiveParams | ||
|text=When used with [[llGetPrimitiveParams]] & [[llGetLinkPrimitiveParams]] | |||
{{#var: | {{LSL Generic/Caveats|caveats={{#var:caveats_get}}{{#vardefine:caveats_get}}|issues={{#var:issues_get}}|title=*|h=4}} | ||
|i1_type=integer|i1_name=face | |i1_type=integer|i1_name=face | ||
|r1_type=integer|r1_name=tg_type|r1_disp=mode | |r1_type=integer|r1_name=tg_type|r1_disp=mode | ||
Line 44: | Line 63: | ||
{{LSL DefineRow||[[changed]]|}} | {{LSL DefineRow||[[changed]]|}} | ||
|location | |location | ||
|cat1 | |cat1 | ||
|cat2 | |cat2 | ||
|cat3 | |cat3 | ||
|cat4 | |cat4 | ||
}} | }} |
Latest revision as of 13:39, 7 June 2014
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Description
Constant: integer PRIM_TEXGEN = 22;The integer constant PRIM_TEXGEN has the value 22
PRIM_TEXGEN is used to get and set the configure the texture mapping mode of the face.
mode Constants | Description | ||||||
---|---|---|---|---|---|---|---|
PRIM_TEXGEN_DEFAULT | 0 | The texture repeats units are in texture repeats per face. | |||||
PRIM_TEXGEN_PLANAR | 1 | The texture repeats 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. |
llSetPrimitiveParams
[ PRIM_TEXGEN, integer face, integer mode ]• integer | face | – | face number or ALL_SIDES | |
• integer | mode | – | PRIM_TEXGEN_* flag |
When used with llSetPrimitiveParams, llSetLinkPrimitiveParams & llSetLinkPrimitiveParamsFast
Caveats
- If texture is missing from the prim's inventory and it is not a UUID or it is not a texture then an error is shouted on DEBUG_CHANNEL.
- If texture is a UUID then there are no new asset permissions consequences for the object.
- The resulting object develops no new usage restrictions that might have occurred if the asset had been placed in the prims inventory.
- In the default texture mapping mode the texture repeats units are in texture repeats per face. In the planar texture mapping mode the texture repeats 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.
- If face is ALL_SIDES then the PRIM_TEXGEN works on all sides.
- The PRIM_TEXGEN silently fails if its face value indicates a face that does not exist.
llGetPrimitiveParams
[ PRIM_TEXGEN, integer face ]Returns the list [ integer mode ]
• integer | face | – | face number or ALL_SIDES | ||
• integer | mode | – | PRIM_TEXGEN_* flag |
When used with llGetPrimitiveParams & llGetLinkPrimitiveParams
Caveats
- If face is ALL_SIDES then the PRIM_TEXGEN works on all sides.
- If face indicates a face that does not exist the PRIM_TEXGEN return is [ PRIM_TEXGEN_DEFAULT ]
Caveats
Related Articles
Constants
• | CHANGED_TEXTURE |
Functions
• | llSetPrimitiveParams | |||
• | llSetLinkPrimitiveParams | |||
• | llGetPrimitiveParams |
Events
• | changed |