OsSetDynamicTextureURL

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
m
Line 1: Line 1:
 
  {{Template:Quicklinks}}
 
  {{Template:Quicklinks}}
 
   
 
   
{{content}}
+
<div id="WebKit-Editing-Delete-Container" style="-webkit-user-drag: none; -webkit-user-select: none; -webkit-user-modify: none; visibility: hidden; position: absolute; cursor: default; top: 0px; right: 0px; bottom: 0px; left: 0px;"><div id="WebKit-Editing-Delete-Outline" style="position: absolute; z-index: -1000000; top: -5px; right: -5px; bottom: -5px; left: -5px; border-top-width: 4px; border-right-width: 4px; border-bottom-width: 4px; border-left-width: 4px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgba(0, 0, 0, 0.597656); border-right-color: rgba(0, 0, 0, 0.597656); border-bottom-color: rgba(0, 0, 0, 0.597656); border-left-color: rgba(0, 0, 0, 0.597656); border-top-left-radius: 6px 6px; border-top-right-radius: 6px 6px; border-bottom-right-radius: 6px 6px; border-bottom-left-radius: 6px 6px; visibility: visible;"></div>[[Image:|30x30px]]</div>
+
{{content}}  
'''Threat Level:''' VeryLow
+
 
   
+
'''Threat Level:''' VeryLow  
 +
 
 +
<br> LSL: '''[[String]] osSetDynamicTextureURL( [[String]] dynamicID, [[Integer]] contentType, [[String]] url, [[String]] extraParams, [[Integer]] timer)'''<br> C#: '''[[String]] osSetDynamicTextureURL( [[String]] dynamicID, [[Int]] contentType, [[String]] url, [[String]] extraParams, [[Int]] timer)'''
 +
 
 +
=== Description  ===
 +
 
 +
Renders a web texture on the prim containing the script and returns the UUID of the newly created texture.
 +
 
 +
=== Parameters ===
  
LSL: '''[[string]]  osSetDynamicTextureURL( [[string]] dynamicID, [[integer]] contentType, [[string]] url, [[string]] extraParams, [[integer]] timer)'''<br />
 
C#:  '''[[string]]  osSetDynamicTextureURL( [[string]] dynamicID, [[int]] contentType, [[string]] url, [[string]] extraParams, [[int]] timer)'''
 
 
===Description===
 
Renders a web texture on the prim containing the script and returns the UUID of the newly created texture.
 
 
===Parameters===
 
 
 
{| border="1"
 
{| border="1"
|'''Name'''
 
|'''Description'''
 
|'''Remarks'''
 
 
|-
 
|-
|'''dynamicID'''
+
| '''Name'''
|UUID of already existing dynamic texture. Intended to accept UUID from a previous call to OsSetDynamicTextureXXXX functions in order to provide modification of an existing dynamic texture
+
| '''Description'''
 +
| '''Remarks'''
 +
|-
 +
| '''dynamicID'''  
 +
| UUID of already existing dynamic texture. Intended to accept UUID from a previous call to OsSetDynamicTextureXXXX functions in order to provide modification of an existing dynamic texture  
 
| NOT IMPLEMENTED YET
 
| NOT IMPLEMENTED YET
 
|-
 
|-
|'''contentType'''
+
| '''contentType'''  
|specifies the type of the '''data''' parameter.
+
| specifies the type of the '''data''' parameter.  
The following values are allowed:
+
The following values are allowed:  
 +
 
 
*image - the '''data''' parameter contains an URL.
 
*image - the '''data''' parameter contains an URL.
|
+
 
 +
|  
 
|-
 
|-
|'''url'''
+
| '''url'''  
|The URL of any image (including php scripts) that OpenSimulator can render.
+
| The URL of any image (including php scripts) that OpenSimulator can render.  
|
+
|  
 
|-
 
|-
|'''extraParams'''
+
| '''extraParams'''  
|additional optional parameters in the following format: [param]:[value],[param]:[value]
+
| additional optional parameters in the following format: [param]:[value],[param]:[value]  
Multiple parameters are separated by commas. The following ones are supported for [[OsSetDynamicTextureData | osSetDynamicTextureData]] and may also work here (can anyone confirm this?):
+
Multiple parameters are separated by commas. The following ones are supported for [[OsSetDynamicTextureData|osSetDynamicTextureData]] and may also work here (can anyone confirm this?):  
*width - width of the dynamic texture in pixels (example: width:256)
+
 
*height - height of the dynamic texture in pixels (example: height:256)
+
*width - width of the dynamic texture in pixels (example: width:256)  
*alpha - alpha (transparency) component of the dynamic texture. Values are from 0-clear to 255-solid, and ''false'' to turn off the alpha layer completely (example: alpha:255)
+
*height - height of the dynamic texture in pixels (example: height:256)  
*bgcolour - specifies the background color of the texture (example:   bgcolour:Red)
+
*alpha - alpha (transparency) component of the dynamic texture. Values are from 0-clear to 255-solid, and ''false'' to turn off the alpha layer completely (example: alpha:255)  
*setalpha
+
*bgcolour - specifies the background color of the texture (example: bgcolour:Red)  
*integer value - any integer value is treated like specifing alpha component
+
*setalpha  
|
+
*integer value - any integer value is treated like specifing alpha component
 +
 
 +
|  
 
|-
 
|-
|'''timer'''
+
| '''timer'''  
|specify a time interval to update the texture
+
| specify a time interval to update the texture  
|NOT IMPLEMENTED YET
+
| NOT IMPLEMENTED YET
 
|}
 
|}
+
 
===Notes===
+
=== Notes ===
+
 
The '''dynamicID''' parameter is not implemented. The value passed will be ignored.
+
The '''dynamicID''' parameter is not implemented. The value passed will be ignored.  
+
 
The '''timer''' parameter is not implemented. The value passed will be ignored. Instead, you can use a timer event and recall the function to get the same effect.
+
The '''timer''' parameter is not implemented. The value passed will be ignored. Instead, you can use a timer event and recall the function to get the same effect.  
+
 
===Examples===
+
=== Examples ===
+
 
*[[Web image on a prim]]
+
*[[Web image on a prim]]  
*Script [[OsSetDynamictextureURL_example2 | osWeatherMap.lsl]] from the standard OpenSimulator Library.
+
*Script [[OsSetDynamictextureURL example2|osWeatherMap.lsl]] from the standard OpenSimulator Library.
+
 
===See Also===
+
=== See Also ===
+
 
*[[osSetDynamicTextureURLBlend]]
+
*[[OsSetDynamicTextureURLBlend]]  
*[[osSetDynamicTextureURLBlendFace]]
+
*[[OsSetDynamicTextureURLBlendFace]]  
*[[osSetDynamicTextureData]]
+
*[[OsSetDynamicTextureData]]  
*[[osSetDynamicTextureDataBlend]]
+
*[[OsSetDynamicTextureDataBlend]]  
*[[osSetDynamicTextureDataBlendFace]]
+
*[[OsSetDynamicTextureDataBlendFace]]
 +
 
 +
[[Category:OSSL_functions_without_example]] [[Category:OSSL]]

Revision as of 16:47, 5 June 2011


Threat Level: VeryLow


LSL: String osSetDynamicTextureURL( String dynamicID, Integer contentType, String url, String extraParams, Integer timer)
C#: String osSetDynamicTextureURL( String dynamicID, Int contentType, String url, String extraParams, Int timer)

Contents

Description

Renders a web texture on the prim containing the script and returns the UUID of the newly created texture.

Parameters

Name Description Remarks
dynamicID UUID of already existing dynamic texture. Intended to accept UUID from a previous call to OsSetDynamicTextureXXXX functions in order to provide modification of an existing dynamic texture NOT IMPLEMENTED YET
contentType specifies the type of the data parameter.

The following values are allowed:

  • image - the data parameter contains an URL.
url The URL of any image (including php scripts) that OpenSimulator can render.
extraParams additional optional parameters in the following format: [param]:[value],[param]:[value]

Multiple parameters are separated by commas. The following ones are supported for osSetDynamicTextureData and may also work here (can anyone confirm this?):

  • width - width of the dynamic texture in pixels (example: width:256)
  • height - height of the dynamic texture in pixels (example: height:256)
  • alpha - alpha (transparency) component of the dynamic texture. Values are from 0-clear to 255-solid, and false to turn off the alpha layer completely (example: alpha:255)
  • bgcolour - specifies the background color of the texture (example: bgcolour:Red)
  • setalpha
  • integer value - any integer value is treated like specifing alpha component
timer specify a time interval to update the texture NOT IMPLEMENTED YET

Notes

The dynamicID parameter is not implemented. The value passed will be ignored.

The timer parameter is not implemented. The value passed will be ignored. Instead, you can use a timer event and recall the function to get the same effect.

Examples

See Also

Personal tools
General
About This Wiki