Dynamic textures

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
(Page created.)
 
 
(16 intermediate revisions by 6 users not shown)
Line 1: Line 1:
Dynamic textures allow scripts to create images on the fly, combining graphics loaded from the World Wide Web with text, lines, ellipses and filled or unfilled rectangles. The textures thus created are temporary, maintained by the individual region in which they are created, and are not permanently stored in the [[Asset Server]].
+
{{Quicklinks}}
 +
 
 +
Dynamic textures allow scripts to create images on the fly, combining graphics loaded from the World Wide Web with text, lines, ellipses and filled or unfilled rectangles. The textures thus created are temporary, maintained by the individual region in which they are created, and are not permanently stored in the asset service.
  
 
In general, one creates a string containing a list of [[Drawing commands]] and parameters, either directly or with the aid of one of the "convenience" drawing functions listed below, then passes this string as a parameter to one of the osSetDynamicTexture* commands.
 
In general, one creates a string containing a list of [[Drawing commands]] and parameters, either directly or with the aid of one of the "convenience" drawing functions listed below, then passes this string as a parameter to one of the osSetDynamicTexture* commands.
 +
 +
In the list below, the [[threat level]] of each function is indicated in parentheses after the function name. There is no threat level associated with the [[drawing commands]].
 +
 +
NOTE: If you use this feature, simulator-side asset caching has to be active (this is the default setting).
 +
 
{| width="100%"
 
{| width="100%"
 
| valign="top" width="50%"|'''Graphics Primitive Drawing Functions'''
 
| valign="top" width="50%"|'''Graphics Primitive Drawing Functions'''
*[[osDrawEllipse]]
+
* [[osDrawEllipse]] (None)
*[[osDrawFilledRectangle]]
+
* [[osDrawImage]] (None)
*[[osDrawImage]]
+
* [[osDrawLine]] (None)
*[[osDrawLine]]
+
* [[osDrawRectangle]] (None)
*[[osDrawRectangle]]
+
* [[osDrawFilledRectangle]] (None)
*[[osMovePen]]
+
* [[osDrawPolygon]] (None)
*[[osSetPenColour]]
+
* [[osDrawFilledPolygon]] (None)
*[[osSetPenSize]]
+
* [[osMovePen]] (None)
 +
* [[osSetPenColor]] (None)
 +
* [[osSetPenSize]] (None)
 +
* [[osSetPenCap]] (None)
  
  
 
'''Text Drawing Functions'''
 
'''Text Drawing Functions'''
*[[osDrawText]]
+
* [[osDrawText]] (None)
*[[osSetFontSize]]
+
* [[osSetFontSize]] (None)
*[[osGetDrawStringSize]]
+
* [[osGetDrawStringSize]] (VeryLow)
  
  
 
'''Dynamic Texture Creation Functions'''
 
'''Dynamic Texture Creation Functions'''
*[[osSetDynamicTextureURL]]
+
* [[osSetDynamicTextureURL]] (VeryLow)
*[[osSetDynamicTextureURLBlend]]
+
* [[osSetDynamicTextureURLBlend]] (VeryLow)
*[[osSetDynamicTextureURLBlendFace]]
+
* [[osSetDynamicTextureURLBlendFace]] (VeryLow)
*[[osSetDynamicTextureData]]
+
* [[osSetDynamicTextureData]] (VeryLow)
*[[osSetDynamicTextureDataBlend]]
+
* [[osSetDynamicTextureDataBlend]] (VeryLow)
*[[osSetDynamicTextureDataBlendFace]]
+
* [[osSetDynamicTextureDataBlendFace]] (VeryLow)
 
| valign="top" width="50%"|'''Graphics Primitive Drawing Commands'''
 
| valign="top" width="50%"|'''Graphics Primitive Drawing Commands'''
*[[Drawing commands#Ellipse|Ellipse]]
+
* [[Drawing commands#Ellipse|Ellipse]]
*[[Drawing commands#FillRectangle|FillRectangle]]
+
* [[Drawing commands#Rectangle|Rectangle]]
*[[Drawing commands#Image|Image]]
+
* [[Drawing commands#FillRectangle|FillRectangle]]
*[[Drawing commands#LineTo|LineTo]]
+
* [[Drawing commands#Polygon|Polygon]]
*[[Drawing commands#MoveTo|MoveTo]]
+
* [[Drawing commands#FillPolygon|FillPolygon]]
*[[Drawing commands#PenColour|PenColour]]
+
* [[Drawing commands#Image|Image]]
*[[Drawing commands#PenSize|PenSize]]
+
* [[Drawing commands#LineTo|LineTo]]
*[[Drawing commands#Rectangle|Rectangle]]
+
* [[Drawing commands#MoveTo|MoveTo]]
 +
* [[Drawing commands#PenColour|PenColour]]
 +
* [[Drawing commands#PenSize|PenSize]]
 +
* [[Drawing commands#PenCap|PenCap]]
 +
 
  
  
 
'''Text Drawing Commands'''
 
'''Text Drawing Commands'''
*[[Drawing commands#FontName|FontName]]
+
* [[Drawing commands#FontName|FontName]]
*[[Drawing commands#FontProp|FontProp]]
+
* [[Drawing commands#FontProp|FontProp]]
*[[Drawing commands#FontSize|FontSize]]
+
* [[Drawing commands#FontSize|FontSize]]
*[[Drawing commands#Text|Text]]
+
* [[Drawing commands#Text|Text]]
 
|}
 
|}
 +
 +
[[Category:OSSL]]
 +
[[Category:Scripting]]

Latest revision as of 07:58, 22 April 2014

Dynamic textures allow scripts to create images on the fly, combining graphics loaded from the World Wide Web with text, lines, ellipses and filled or unfilled rectangles. The textures thus created are temporary, maintained by the individual region in which they are created, and are not permanently stored in the asset service.

In general, one creates a string containing a list of Drawing commands and parameters, either directly or with the aid of one of the "convenience" drawing functions listed below, then passes this string as a parameter to one of the osSetDynamicTexture* commands.

In the list below, the threat level of each function is indicated in parentheses after the function name. There is no threat level associated with the drawing commands.

NOTE: If you use this feature, simulator-side asset caching has to be active (this is the default setting).

Graphics Primitive Drawing Functions


Text Drawing Functions


Dynamic Texture Creation Functions

Graphics Primitive Drawing Commands


Text Drawing Commands

Personal tools
General
About This Wiki