Second Life News 2014-23 #2

Coming Soon

Simon Linden is working a problem to fix a problem that leaves attachments appearing to still be attached. The problem is especially noticeable when a script removes an attachment after a region crossing. See SVC-7626Script object detachment doesn’t appear to remove worn object in the viewer. This is an older JIRA of a related problem. Apparently the actual JIRA being worked on got MOVED into the Linden’s private MAINT channel rather than cloned.

Server/Scripting UG 2014-23
Server/Scripting UG 2014-23

The apparent problem is some timing issue in how the servers send messages to viewers. Simon describes the problem as: 

Read more

Scripting Second Life Materials Testing

We have a new aspect of Materials arriving, the ability to script materials as we script textures (diffuse map).

Simon Linden has posted in the Server Beta UG agenda about the coming Materials Scripting feature to allow script control of the new Materials. Quoting:

  • LSL support for materials is in testing
    • Certain Aditi regions (DRTSIM-253 channel, presently) have LSL support for materials
      • Regions “roller-test102” and “roller-test103” are on this channel
      • This is still a work-in-progress – testing is still underway
    • Materials can be added to object faces with llSetPrimitiveParams() functions
      • [PRIM_SPECULAR, integer face, string texture, vector repeats, vector offsets, float rotation_in_radians, vector color, integer glossy, integer environment]
      • [PRIM_NORMAL, integer face, string texture, vector repeats, vector offsets, float rotation_in_radians]
      • [PRIM_ALPHA_MODE, integer face, integer alpha_mode, integer alpha_cutoff]
        • Valid alpha_mode options are PRIM_ALPHA_MODE_NONE, PRIM_ALPHA_MODE_BLEND, PRIM_ALPHA_MODE_MASK, PRIM_ALPHA_MODE_EMISSIVE
    • Materials can be read with the various llGetPrimitiveParams() functions
      • [PRIM_SPECULAR, integer face] returns [string texture, vector repeats, vector offsets, float rotation_in_radians, vector color, integer glossy, integer environment]
      • [PRIM_NORMAL, integer face] returns [string texture, vector repeats, vector offsets, float rotation_in_radians]
      • [PRIM_ALPHA_MODE, integer face] returns [integer alpha_mode, integer alpha_cutoff]
  • Behavior for both getting and setting materials parameters should basically correspond to behavior with PRIM_TEXTURE
  • The color vectors use 0.0-1.0 as the range, as with llSetColor()
  • The integer parameters for PRIM_SPECULAR correspond to the same values that you see in the build tool
  • Components of a material can be ‘reset’ as follows:
    • PRIM_NORMAL and PRIM_SPECULAR settings are set to ‘default’ values by setting the texture to NULL_KEY
    • PRIM_ALPHA_MODE settings are set to ‘default’ values by setting the alpha_mode to PRIM_ALPHA_MODE_BLEND
      • mask_cutoff is actually reset to 0 unless the alpha mode is PRIM_ALPHA_MODE_MASK
    • When PRIM_NORMAL, PRIM_SPECULAR, and PRIM_ALPHA_MODE settings are all set to ‘default’ values, the material is deleted from that prim face, and LI may be updated accordingly
  • Known issues
    • There is a viewer rendering issue, where the face will not be rendered and you’ll see log spam (BUG-6187),
      • If the viewer has ALM enabled
      • and a prim face has a material on it
      • and PRIM_ALPHA_MODE is PRIM_ALPHA_MODE_BLEND (this is the default after a material is added)
      • and the diffuse texture does not have an alpha channel (e.g. plywood)
    • The version currently on Aditi lacks proper throttling, so there could be performance issues if scripts behave badly

You can test this new code in ADITI regions; “roller-test102” and “roller-test103”. These are mainland regions (meaning they are running the code currently on the main grid) in the ADITI grid.

Read more

Second Life Materials Scripting 2014-21

What we can do to automate materials is limited by the lack of script functions to change materials. The legacy materials have scripting functions. Those however only change the older material properties. There is no script control for normal and specular maps.

Simon Linden is working on LSL functions for materials normal and specular maps. Maestro Linden has been testing them. This week (21) Simon did not see them ready for any testing in ADITI. But, that they have been working on them and playing with them is great news. 

Read more

Second Life News 2014-15 #2

Group Ban – Baker Linden is working toward getting Group Ban running grid wide in ADITI (preview/beta grid). He has a handful of small bugs to get fixed. Then he’ll figure out if he is going to be able to go to and RC Viewer or Project Viewer.

If all goes well in ADITI it will soon roll out to AGNI, the main grid, as an RC Server package. At that point people with large groups will be thrilled to get the feature.

Whirly & Jenna @ Server-Scripting UG 2014-15
Whirly & Jenna @ Server-Scripting UG 2014-15

Materials Functions for LSL – We currently cannot script material changes. People have been asking for Linden Scripting Language (LSL) functions to work with materials since before materials were released.

Today in the Server Scripting User Group Simon Linden said getting those functions implemented was pretty high on their to-do list. That still gives us no idea when we might see them, but it does give us hope that it’s going to get done.

Read more

Second Life LSL Changes

The Linden Scripting Language has gotten some new functions:

These are the last features Andrew Linden added before leaving. The features are active in all three RC channels now.

The point of these functions is the allow the uniform scaling of link sets. You can scale every item in a link set with one command. I imagine this will reduce the script complexity for a number of things in SL. 

Read more

Second Life News 2014-2

Recently we have seen a number of people complaining about getting disconnected, repeatedly. No one has determined if it is an SL problem or just problems local to the users being disconnected.

Viewers

The main release SL Viewer today is: 3.6.12-284506. I expect that to change this week.

The RC viewers are now:

We have more project viewers this week:

Read more