Scripting Features

  • Search existing ideas before submitting
  • Use support.secondlife.com for customer support issues
  • Keep posts on-topic
Thank you for your ideas!
Feature Request: Dynamic Audio Propagation & Adaptive Audio Physics for Second Life
I would like to propose the introduction of a Dynamic Audio Propagation and Adaptive Audio Physics system within Second Life's scripting capabilities. Second Life has evolved considerably over the years, with creators developing increasingly sophisticated environments, vehicles, combat systems, military simulations, roleplay experiences, and interactive communities. However, one area that could significantly improve immersion is environmental audio simulation. Currently, audio experiences are largely limited by conventional positional audio and distance-based attenuation. While these systems provide basic spatial awareness, they do not fully replicate how sound behaves in the physical world. Introducing advanced audio propagation through scripting would give creators the ability to develop environments where sound interacts dynamically with the surrounding world. The objective would be to make audio a physically responsive component of Second Life rather than simply an effect played at a particular location. Dynamic Environmental Audio Propagation The proposed system would allow scripted sounds to interact with environmental geometry and surrounding objects. Potential capabilities could include: Sound Occlusion: Walls, buildings, terrain, doors, and other solid objects would reduce or block sounds depending on their physical properties. Sound Attenuation: Audio volume would dynamically change based on distance, environmental obstructions, and surrounding structures. Sound Reflection: Interior environments could simulate basic sound reflections and reverberation. Sound Absorption: Different materials could influence how much sound is absorbed or reflected. Directional Audio: Sounds could originate from specific directions, allowing listeners to identify the approximate location of events. Environmental Reverberation: Large buildings, tunnels, hangars, underground facilities, and enclosed spaces could have distinctive acoustic characteristics. For example, a vehicle engine operating outside a hangar would sound noticeably different to someone standing inside the building compared to someone standing directly beside the vehicle. Likewise, gunfire occurring inside an enclosed structure would have different acoustic characteristics from gunfire occurring in an open field. Adaptive Audio Physics for Vehicles One of the biggest potential applications would be vehicle development. Second Life has an active vehicle development community, with creators producing everything from automobiles and motorcycles to aircraft, helicopters, naval vessels, and complex military vehicles. Dynamic audio propagation could substantially improve these experiences. Potential applications include: Engine sounds that dynamically attenuate based on distance and environmental obstructions. Aircraft engines that become progressively quieter as aircraft gain altitude or travel away. Helicopter rotor noise that can be heard across considerable distances, with appropriate environmental attenuation. Vehicle interiors that provide a different acoustic experience from the exterior. Engine sounds that are muffled when heard through vehicle body panels. Realistic reverberation when operating vehicles inside garages, tunnels, hangars, and enclosed facilities. Doppler effects for fast-moving vehicles. Directional exhaust and engine audio. This would allow vehicle creators to develop much more convincing audio experiences without having to rely entirely on complicated workarounds or multiple overlapping sound emitters. Applications Within the Second Life Military Community (SLMC) The Second Life Military Community (SLMC) is another area that could benefit tremendously from this functionality. Military communities frequently develop elaborate combat environments, military installations, training facilities, vehicles, weapons systems, and simulated battlefield experiences. Audio is an important component of situational awareness and immersion. Potential applications include: Combat Environments Gunfire that sounds different depending on whether it originates indoors or outdoors. Explosions that produce environmental reverberation. Muffled gunfire heard through building walls. Distant artillery and aircraft sounds with appropriate attenuation. Directional audio that allows participants to identify the general direction of incoming sounds. Different acoustic characteristics for enclosed rooms, corridors, and large industrial spaces. Military Vehicles Tank and armored vehicle engines that sound different from inside and outside the vehicle. Helicopter and aircraft audio that changes based on distance and environmental conditions. Interior vehicle audio that accounts for insulation and structural obstruction. Naval vessels with distinct interior and exterior acoustic environments. These additions would make military roleplay, organized operations, training exercises, and simulated combat environments significantly more immersive. Benefits to Other Second Life Communities Although military communities and vehicle developers would benefit substantially, this feature would have applications throughout Second Life. Roleplay Communities Cities, police departments, emergency services, hospitals, and other roleplay environments could implement realistic sirens, dispatch systems, public announcements, and environmental sounds. Entertainment and Events Concert venues, clubs, theaters, and live entertainment locations could benefit from improved acoustic environments, directional audio, and simulated room reverberation. Residential and Architectural Development Builders could create homes, offices, industrial facilities, and commercial environments with more realistic acoustic characteristics. Horror and Exploration Experiences Creators could use sound propagation to create suspense, environmental awareness, and more immersive exploration experiences. Aviation and Naval Communities Aircraft, airports, ships, ports, and other transportation environments could benefit from distance-based audio propagation, Doppler effects, and environmental acoustics. Proposed Scripting Functionality Ideally, this functionality would be exposed through new LSL scripting functions or an expanded audio API. For example, Linden Lab could consider introducing functions conceptually similar to: llSetSoundPropagation() – Enables or disables advanced environmental audio propagation. llSetSoundOcclusion() – Controls how surrounding geometry affects sound transmission. llSetSoundReverb() – Configures environmental reverberation. llSetSoundAbsorption() – Configures sound absorption characteristics. llSetSoundDoppler() – Enables or configures Doppler effects. llSetSoundAttenuation() – Configures advanced distance and obstruction-based attenuation. These are proposed function names, not existing LSL functions. Creators could potentially configure different audio profiles for individual objects, vehicles, buildings, and environmental systems. An additional possibility would be allowing objects to define acoustic properties such as: Concrete Metal Wood Glass Fabric Earth Water Insulated materials The viewer could then calculate how these surfaces affect audio propagation. Performance and Implementation Considerations I recognize that implementing advanced audio physics across a virtual world with potentially thousands of simultaneous users and objects would present technical challenges. However, this functionality could potentially be introduced through an optional, scalable system. Possible implementation approaches include: Client-side audio calculations to minimize simulator workload. Configurable audio propagation distances. Limited sound-ray calculations or simplified occlusion checks. Optional acoustic zones established by creators. Performance limits on the number of simultaneously simulated sound sources. Compatibility with existing LSL audio functions. Viewer-side controls allowing users to disable advanced audio processing if necessary. An incremental implementation would also be perfectly reasonable. Even basic sound occlusion, environmental reverberation, and improved distance attenuation would represent a substantial improvement. Why This Matters for the Future of Second Life Second Life is a platform where creators are constantly finding new ways to push the boundaries of what is possible through scripting, building, and user-generated content. Communities have developed sophisticated vehicle systems, combat frameworks, military organizations, interactive environments, and elaborate roleplay experiences. However, audio technology has considerable room for improvement compared to the complexity that creators are now achieving in other areas. Dynamic audio propagation would open the door to entirely new possibilities for content creation. It would allow creators to develop environments that not only look and function realistically but also sound realistic. This would benefit existing communities while potentially attracting new creators interested in simulation, vehicle development, architectural design, military roleplay, and immersive entertainment. My recommendation is that Linden Lab consider introducing an optional Dynamic Audio Propagation and Adaptive Audio Physics API as part of Second Life's future scripting development. This would be a meaningful expansion of LSL's capabilities and another step toward giving creators greater control over the virtual environments they build. Second Life has always been defined by what its residents can create. Giving those residents more advanced tools to simulate the world around them would only strengthen that philosophy.
2
Add a Text Rendering Method
Add a new function LSL function named llRenderText or similar, which allows users to dynamically render text, with limited but flexible formatting, onto the face of their choosing. Concept: // Signature llRenderText(integer face, string text, list params); // Basic example llRenderText(ALL_FACES, "Lorem ipsum...", [ FONT_ALIGN, "right", FONT_WEIGHT, "bold", FONT_FAMILY, "sans serif" ]); Rationale Text is ubiquitous, yet Second Life has no way for users to display text other than uploading a texture, setting floating text using llSetText , or using relatively resource intensive solution such as XyText/Furware/et al. This absence precludes interesting features, such as being able to create a responsive interactive terminal in Second Life, HUDs with dynamic text, etc. A scripted and efficient text solution that displays on the face of a prim/mesh would give Second Life the biggest bang for the buck: Limited in scope (easier to implement than grand UI-creation ideas) Easy to kitbash into existing and new creations For inspiration, you can look to how the Text Display widget is implemented in the Playstation game Dreams. It has limited options: a finite number of fonts and formatting options, but the fact that it can be combined with other content makes it rather powerful. Other details Font color, opacity, glow, etc are controlled by prim properties (Example: setting face color to red sets font color to red) Questions Should the background always be transparent? Creators could put another prim behind the text display face to give it a background, or it could be a property of the render params. Possible Parameters FONT_WEIGHT FONT_STYLE FONT_FAMILY FONT_VERTICAL_ALIGN FONT_HORIZONTAL_ALIGN FONT_TEXT_WRAP FONT_LINE_HEIGHT FONT_SIZE Possible Features Markdown / rich text
37
·
tracked
Feature Request: Enable Publicly Synchronized X/Y/Z Avatar Hover Offsets
SUMMARY Please extend Second Life's existing avatar hover-height functionality to support publicly synchronized three-dimensional positional adjustments (X/Y/Z), particularly for fine-tuning seated avatar positions without modifying furniture or animations. ## The existing XYZ support While developing the [SEBASTYNE] Community Viewer, we discovered that Second Life's viewer code already contains much of the infrastructure needed to handle three-dimensional hover offsets. Specifically: LLVOAvatarSelf::setHoverOffset() accepts an LLVector3 , meaning it can represent X, Y, and Z offsets. LLVOAvatar::parseAppearanceMessage() receives an AppearanceHover.HoverHeight value as an LLVector3 , rather than a single floating-point number. The avatar rendering code applies the three-dimensional hover vector, allowing horizontal as well as vertical visual displacement. However, LLVOAvatarSelf::sendHoverHeight() submits only hover_offset[2] (the Z component) through the AgentPreferences capability, using the scalar hover_height field. In other words, the avatar appearance system already accommodates XYZ values, but the existing viewer-to-simulator interface only provides a supported way to submit Z. The additional X/Y components are effectively inaccessible through the normal hover-height adjustment mechanism. ## Experimental findings We implemented working local X/Y adjustments in the [SEBASTYNE] Community Viewer, allowing seated avatars to move in precise 1 cm and 5 cm increments. These adjustments render correctly in the local viewer but are not visible to other residents. By comparison, vertical hover-height adjustments synchronize successfully. We also tested two experimental AgentPreferences payload formats: Additional X/Y fields: The simulator returned HTTP success, but the resulting avatar appearance update contained zero horizontal offsets. Full XYZ vector: Replacing the scalar hover-height value with a vector caused the request to fail. These findings suggest that the current simulator capability does not expose support for submitting horizontal offsets, even though the appearance message and viewer rendering code can represent them. ## Requested functionality Please provide an officially supported viewer-to-simulator method for submitting horizontal avatar hover offsets alongside the existing vertical offset. Ideally, this would: Accept three-dimensional X/Y/Z offsets. Synchronize those offsets through avatar appearance updates so other viewers can render them. Preserve existing Z-only functionality and compatibility with older viewers. Allow small, precise adjustments while seated, without altering the underlying furniture or animation. Include appropriate limits and safeguards. ## Why this matters Furniture and animations frequently require minor positional corrections because avatars vary in proportions, body shapes, and animation configurations. Being able to move a seated avatar a few centimetres forward, backward or sideways would substantially improve compatibility with existing Second Life content. Currently, such corrections often require furniture-specific scripts, modifying objects or changing animations. A standardized XYZ hover-offset capability would allow viewer developers to offer universal positioning controls, without requiring changes to millions of existing furniture items. ## Technical question for Linden Lab **Given that AppearanceHover.HoverHeight is already represented as a three-dimensional vector, could the existing AgentPreferences capability be extended to accept and rebroadcast X/Y components, rather than restricting outgoing adjustments to Z?** Alternatively, could another supported capability expose these positional offsets? This appears to be a promising opportunity to extend functionality already partially represented in the viewer and avatar appearance protocol.
2
·
tracked
New LSL llAnimeshEnabled(integer enabled); Toggle Animesh Property on/off
New LSL function that allows scripts to toggle an object’s Animesh property state at runtime. llAnimeshEnabled(integer enabled); ## Overview Currently, enabling Animesh on an object significantly increases its land impact, even when the object is idle. In contrast, a comparable non-Animesh object—especially one with well-optimized geometry and materials—can often remain at a land impact of 1. At the same time, Animesh animation itself is already fully script-driven. Functions like: llStartObjectAnimation(string anim) llStopObjectAnimation(string anim) llGetObjectAnimationNames() allow scripts to control animation playback dynamically. However, these functions only operate after an object is already in an Animesh-enabled state. This creates a structural limitation: creators can control what an object does, but not whether it needs to be Animesh at all at a given moment. ## How Animesh Currently Works Animesh objects function by associating a skeleton with a rigged mesh linkset. When a script plays an animation, the skeleton drives deformation of the mesh. Importantly: An object does nothing by default when set to Animesh Animations must be explicitly triggered via script The visual position of the mesh is driven by the skeleton and active animations, not strictly the object’s base transform This means Animesh is fundamentally an on-demand animation system , but it is currently forced to be always enabled at the object level , regardless of whether animations are playing. ## Problem There is currently no way to: Disable Animesh when no animations are running Return an object to a low land impact idle state Dynamically enable Animesh only when animation is required As a result, creators must choose between: Keeping Animesh permanently enabled (high land impact, unnecessary overhead) Building complex systems involving object swapping, rez/re-rez logic, or duplicate assets ## Use Case There is a strong need for objects that can dynamically transition between static and animated states. For example: A robot or pet that remains dormant until activated Creatures that only animate when a user is nearby Props that “wake up” briefly to perform an action Environmental elements that animate only during interaction In all of these cases, the object does not need continuous skeletal evaluation. ## Expected Behavior enabled = TRUE - Enables Animesh on the object - Allows use of llStartObjectAnimation and related functions enabled = FALSE - Disables Animesh - Stops all active animations - Returns the object to static mesh behavior - Restores lower land impact where applicable ## Benefits Land Impact Optimization Objects only incur Animesh cost when actively animating Performance Efficiency Reduces unnecessary skeletal evaluation on idle objects Cleaner Content Architecture Eliminates the need for duplicate objects or rez-based workarounds Better Alignment with Existing API Design Complements existing animation control functions by adding missing state control ## Additional Considerations State transitions should preserve: - Object transform - Linkset integrity - Script execution state Simulator safeguards may be needed: - Throttling or cooldown on toggling - Permissions checks to prevent abuse Documentation should clarify: - Effects on physics and collision - Bounding box changes - Interaction with pathfinding and attachments
2
·
tracked
Load More
→