Dynamic textures

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
m (Robot: Cosmetic changes)
Line 5: Line 5:
 
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 | drawing 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, you have to turn on any cache. If not, you'll see complete white texture. Flotsam cache performs better than cenome cache(default).
 
NOTE: If you use this feature, you have to turn on any cache. If not, you'll see complete white texture. Flotsam cache performs better than cenome cache(default).
Line 11: Line 11:
 
{| width="100%"
 
{| width="100%"
 
| valign="top" width="50%"|'''Graphics Primitive Drawing Functions'''
 
| valign="top" width="50%"|'''Graphics Primitive Drawing Functions'''
*[[osDrawEllipse]] (None)
+
* [[osDrawEllipse]] (None)
*[[osDrawImage]] (None)
+
* [[osDrawImage]] (None)
*[[osDrawLine]] (None)
+
* [[osDrawLine]] (None)
*[[osDrawRectangle]] (None)
+
* [[osDrawRectangle]] (None)
*[[osDrawFilledRectangle]] (None)
+
* [[osDrawFilledRectangle]] (None)
*[[osDrawPolygon]] (None)
+
* [[osDrawPolygon]] (None)
*[[osDrawFilledPolygon]] (None)
+
* [[osDrawFilledPolygon]] (None)
*[[osMovePen]] (None)
+
* [[osMovePen]] (None)
*[[osSetPenColor]] (None)
+
* [[osSetPenColor]] (None)
*[[osSetPenSize]] (None)
+
* [[osSetPenSize]] (None)
*[[osSetPenCap]] (None)
+
* [[osSetPenCap]] (None)
  
  
 
'''Text Drawing Functions'''
 
'''Text Drawing Functions'''
*[[osDrawText]] (None)
+
* [[osDrawText]] (None)
*[[osSetFontSize]] (None)
+
* [[osSetFontSize]] (None)
*[[osGetDrawStringSize]] (VeryLow)
+
* [[osGetDrawStringSize]] (VeryLow)
  
  
 
'''Dynamic Texture Creation Functions'''
 
'''Dynamic Texture Creation Functions'''
*[[osSetDynamicTextureURL]] (VeryLow)
+
* [[osSetDynamicTextureURL]] (VeryLow)
*[[osSetDynamicTextureURLBlend]] (VeryLow)
+
* [[osSetDynamicTextureURLBlend]] (VeryLow)
*[[osSetDynamicTextureURLBlendFace]] (VeryLow)
+
* [[osSetDynamicTextureURLBlendFace]] (VeryLow)
*[[osSetDynamicTextureData]] (VeryLow)
+
* [[osSetDynamicTextureData]] (VeryLow)
*[[osSetDynamicTextureDataBlend]] (VeryLow)
+
* [[osSetDynamicTextureDataBlend]] (VeryLow)
*[[osSetDynamicTextureDataBlendFace]] (VeryLow)
+
* [[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#Rectangle|Rectangle]]
+
* [[Drawing commands#Rectangle|Rectangle]]
*[[Drawing commands#FillRectangle|FillRectangle]]
+
* [[Drawing commands#FillRectangle|FillRectangle]]
*[[Drawing commands#Polygon|Polygon]]
+
* [[Drawing commands#Polygon|Polygon]]
*[[Drawing commands#FillPolygon|FillPolygon]]
+
* [[Drawing commands#FillPolygon|FillPolygon]]
*[[Drawing commands#Image|Image]]
+
* [[Drawing commands#Image|Image]]
*[[Drawing commands#LineTo|LineTo]]
+
* [[Drawing commands#LineTo|LineTo]]
*[[Drawing commands#MoveTo|MoveTo]]
+
* [[Drawing commands#MoveTo|MoveTo]]
*[[Drawing commands#PenColour|PenColour]]
+
* [[Drawing commands#PenColour|PenColour]]
*[[Drawing commands#PenSize|PenSize]]
+
* [[Drawing commands#PenSize|PenSize]]
*[[Drawing commands#PenCap|PenCap]]
+
* [[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:OSSL]]
 
[[Category:Scripting]]
 
[[Category:Scripting]]

Revision as of 19:59, 3 March 2012

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.

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, you have to turn on any cache. If not, you'll see complete white texture. Flotsam cache performs better than cenome cache(default).

Graphics Primitive Drawing Functions


Text Drawing Functions


Dynamic Texture Creation Functions

Graphics Primitive Drawing Commands


Text Drawing Commands

Personal tools
General
About This Wiki