Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
archiv:opensim:downloads:scripts:dynamic_texture [2024/01/24 16:39] – Externe Bearbeitung 127.0.0.1 | archiv:opensim:downloads:scripts:dynamic_texture [Unbekanntes Datum] (aktuell) – Externe Bearbeitung (Unbekanntes Datum) 127.0.0.1 | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
+ | ===== Dynamic Texture ===== | ||
+ | |||
+ | Dieses Script kann Bilder im Format bmp, gif und jpg auf Webseiten auf Prims abbilden. Die URL´s der Bilder können im Script leicht an die persönlichen Bedürfnisse angepasst werden. Mit Klick auf das Prim werden die Bilder angezeigt. Lässt sich beispielsweise für Webcams gut nutzen. | ||
+ | |||
+ | < | ||
+ | //cs | ||
+ | // kinoc test script | ||
+ | // each touch advances to the next picture | ||
+ | integer picindex=0; | ||
+ | LSL_Types.list urlarray = [] ; | ||
+ | public void default_event_state_entry() | ||
+ | { | ||
+ | llSay( 0, "cs osSetDynamicTextureURL Tester" | ||
+ | urlarray.Add(" | ||
+ | urlarray.Add(" | ||
+ | urlarray.Add(" | ||
+ | urlarray.Add(" | ||
+ | urlarray.Add(" | ||
+ | urlarray.Add(" | ||
+ | } | ||
+ | |||
+ | public void default_event_touch_start(integer total_number) | ||
+ | { | ||
+ | llSay( 0, " | ||
+ | string dynamicID=""; | ||
+ | integer refreshRate = 600; | ||
+ | string contentType=" | ||
+ | picindex = (picindex+1) % urlarray.Length; | ||
+ | string srcURL = urlarray.GetSublist(picindex, | ||
+ | string URLTexture=osSetDynamicTextureURL(dynamicID, | ||
+ | if (llStringLength(URLTexture)> | ||
+ | { | ||
+ | llSay(0," | ||
+ | llSetTexture(URLTexture, | ||
+ | } | ||
+ | } | ||
+ | </ | ||