Jump to content

KT Kingsley

Resident
  • Posts

    1,071
  • Joined

  • Last visited

Posts posted by KT Kingsley

  1. See http://wiki.secondlife.com/wiki/LlGetListLength#LSO_Optimizations

    Quote

    A faster and lighter (in bytecode) way to determine the length of a list is to do a not-equals compare with a null list. This works because the list not-equals compare returns the difference between the lengths, meaning that it returns the same result as llGetListLength(), minus the overhead in bytecode, and performance penalty of calling a non-native function. Note: This optimization is much less beneficial time-wise in Mono as Mono's llGetListLength function is almost twice as fast, however the bytecode saving is still about 30 bytes.

     

    • Like 3
  2. Write a script that will distinguish between a single click (touch) on an object, a double click, and a long click.

    Write a script for a calculator or keypad of some sort. For the output display you might use simple chat, floating text, or a series of linked prims. If you go for the linked prims, use only a single texture for all the digits and characters. Or, find or make a mesh panel with, say, eight faces, side by side, or find or make one of those tortured prims that present several similar faces to the viewer (hint: Xyzzy Text). For the body and buttons use only a single prim and a single texture (hint: llDetectedTouchUV). Add a key click sound.

    Send an email from one object to another, or from an in-world object to your own email address.

    Make a pair of objects act as an HTTP server and a client.

  3. Take two photos, one using your preferred choice of lighting and windlight, the other using Ambient Dark windlight and with point lights turned off (local lights in graphics preferences). The photo taken using Ambient Dark will be black except for any objects set to full bright. You can use this in your preferred photo editor as the basis of a mask to darken the full bright objects.

    • Like 3
  4. How do I specify a vector value for a debug setting when using the --set command line switch?

    For example, I'd like to set CameraOffsetRearView to <-2.5, 0.0, 0.5> at startup, but I haven't been able to figure out the correct format.

    --set CameraOffsetRearView <-2.5, 0.0, 0.5> doesn't work.

    Thanks

    Edit... (in lieu of any apparent reply mechanism)

    1. How do I reply to an answer in this forum?

    2. Ansariel, both your suggestions produce a parsing error.

    I have found, however, that --set CameraOffsetRearView -2.5/0.0/0.5 parses ok, but results in a 0, 0, 0 value for the setting.

×
×
  • Create New...