ChangeLog

  • 15 May 2013

Fixed a bug regarding setting the Glow parameter under 0 or over 1, contrary to color vectors LSL does not automatically limit to bounds but instead throws a warning on the debug channel. Added bounds checking for the Glow parameter so that the warning does not pop-up.

About

This is a glasses engine that is flexible enough for a series of glasses designed by Wizardry and Steamworks. Some glasses such as the Carbon Glasses support a monogram, a customisation that adds a letter to either the frame or the lens of the glasses and some of them act upon the environment when the colours of the lens change using RLV. On the big lines however, the glass engine incorporates the following general features:

  • changing the opacity, brightness, glow and color of the lenses
  • resizing the glasses
  • tilt and auto-tilt (putting the glasses up on the avatar's head; auto mode senses an avatar in the vicinity and automatically puts the glasses up)

Glasses

Exports

Animation

When the glasses are tilted up or put back down, the following animation is triggered:

The animation is royalty-free, and you have full permission to use it in SL, OpenSim or otherwise.

Monogram

Some glasses contain a monogram feature and require a notecard named "Monogram" to be placed in the inventory of the glasses in the root where the main script resides.

A=2f2c1770-a598-71bc-54d7-910fe7a9eeb4
B=e62de6d1-9a9f-ae7b-86bd-743bd3d4d61f
C=608cb93e-9166-66a5-118b-4f9ae59c15b5
D=660bd0d8-a58a-f529-c819-8abe16f5ca2e
E=81b8c117-debd-87c7-35a6-b26784fa943a
F=0bca57db-2ae7-5a48-c4fe-ee713ea8e2a8
G=f0286bf5-b27a-2704-bec9-9ebd58f111a1
H=ad1b6ce9-058c-7068-d2b1-c8051d68efa9
I=8ddae9d4-0d17-a70e-4887-23e75ad59c11
J=e4d43e91-fa17-b493-8d64-762282ceb9d4
K=e05d16d5-93dd-56f5-9a38-451ad3db21db
L=bcdfc046-6094-2884-c104-3accb1f74b0f
M=ffcb42f7-8597-5ef1-938e-dc6c03b3b6d1
N=c76b331d-5ed0-908e-3102-0f1a94e64460
O=60b143a9-bc65-481c-7d0a-b3cc46b7d4c0
P=a9214e8f-0dd5-7937-f6a6-729eed2a89de
Q=edbd3fd3-06f6-500e-36bd-fb833d5fb0e4
R=c414287c-0f6d-764c-d31a-0c3d27a9e372
S=0c968729-9305-84f7-f061-2f6045d32938
T=26a2cc05-9609-66ff-bbe9-ec82a87aa7cf
U=1f3cc4d9-662a-c90c-5cb4-8a94f7c8693e
V=027fd711-333f-348f-890d-70e5a793da70
W=9e6a9f8f-8ca9-b972-d81f-88f6248ca683
X=359195b9-d2e5-22c4-de1c-284ec348beb9
Y=e933af52-0d71-fe2a-fb2c-bebb80a6bfa7
Z=ed21543d-ea82-00d0-4752-328831f87dd3

Technical

During the design of the glasses we used several Wizardry and Steamworks technologies, namely:

  • The key-value data language in order to store variables over attach, detach and restart events. Due to SVC-3429, it is the first time that we use the key-value data language to store settings in a linked primitive.
  • The ASCII progress bar coupled with the percent-to-gradient function are used to read the monogram data dynamically and then we use the pretty menu system to generate the menu. In doing so, we avoid storing the sculpture data in memory.
  • Since SVC-1945 makes llSetPos ineffective, we have to restart the script for the tilt. The persistent storage takes care to memorize settings so that they are available on script restart.

Index


secondlife/glasses.txt · Last modified: 2022/11/24 07:45 by 127.0.0.1

Access website using Tor Access website using i2p Wizardry and Steamworks PGP Key


For the contact, copyright, license, warranty and privacy terms for the usage of this website please see the contact, license, privacy, copyright.