LightShare

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
m (Robot: Cosmetic changes)
Line 6: Line 6:
  
 
=== The regionwindlight Database Table ===
 
=== The regionwindlight Database Table ===
A database table "[[Regionwindlight|regionwindlight]]" is used to store the settings.  
+
A database table "[[regionwindlight]]" is used to store the settings.  
  
 
=== OpenSim.ini Settings ===
 
=== OpenSim.ini Settings ===
Line 25: Line 25:
 
  AllowLightShareFunctions = true
 
  AllowLightShareFunctions = true
  
== LightShare-Enabled Viewers ==
+
== LightShare-Enabled Viewers ==
  
 
Updated virtual world viewers are needed to receive Windlight settings sent by a region through LightShare.
 
Updated virtual world viewers are needed to receive Windlight settings sent by a region through LightShare.
Line 42: Line 42:
  
 
More details of the options are at:  
 
More details of the options are at:  
*http://imprudenceviewer.org/wiki/LightShare
+
* http://imprudenceviewer.org/wiki/LightShare
  
 
=== Meta7 Viewer ===
 
=== Meta7 Viewer ===
Line 49: Line 49:
 
!!! It is unknown if Meta7 can work with the OpenSimulator ls* script functions detailed below. !!!
 
!!! It is unknown if Meta7 can work with the OpenSimulator ls* script functions detailed below. !!!
  
*http://www.meta7.com/download.php
+
* http://www.meta7.com/download.php
  
 
=== Singularity ===
 
=== Singularity ===
Line 62: Line 62:
 
The features can be used through three LightShare (ls) functions:  
 
The features can be used through three LightShare (ls) functions:  
  
*[[lsGetWindlightScene]]  
+
* [[lsGetWindlightScene]]  
*[[lsSetWindlightScene]]
+
* [[lsSetWindlightScene]]
*[[lsSetWindlightSceneTargeted]]
+
* [[lsSetWindlightSceneTargeted]]
*[[LightShare Parameters]]
+
* [[LightShare Parameters]]
  
 
See also the [[DefaultLightShareScript]] to get a starter script.
 
See also the [[DefaultLightShareScript]] to get a starter script.
  
* [[User:Thomax|txOh]] has created an in-world LightShare controller, which allows you to easily set custom LightShare settings. An [[Inventory_Archives|IAR]] with the controller can be downloaded from http://www.gridhop.net/IAR/lightshare.iar
+
* [[User:Thomax|txOh]] has created an in-world LightShare controller, which allows you to easily set custom LightShare settings. An [[Inventory Archives|IAR]] with the controller can be downloaded from http://www.gridhop.net/IAR/lightshare.iar
  
 
See [[Inventory Archives]] for an explanation of how to add the contents of the IAR file to your inventory.
 
See [[Inventory Archives]] for an explanation of how to add the contents of the IAR file to your inventory.
Line 84: Line 84:
  
 
The Meta7 LightShare feature documentation can be found here:
 
The Meta7 LightShare feature documentation can be found here:
*https://www.meta7.com/wiki.php?page=LightShare
+
* https://www.meta7.com/wiki.php?page=LightShare
  
 
Default settings are shown being set in this Meta7 sample script:  
 
Default settings are shown being set in this Meta7 sample script:  
*https://www.meta7.com/wiki.php?page=Default%20LightShare%20Script
+
* https://www.meta7.com/wiki.php?page=Default%20LightShare%20Script
  
 
Using this script on OpenSimulator requires manual changing the '''cmSetWindlightScene''' function name to '''lsSetWindlightScene'''
 
Using this script on OpenSimulator requires manual changing the '''cmSetWindlightScene''' function name to '''lsSetWindlightScene'''

Revision as of 20:32, 3 March 2012

Contents

LightShare

The LightShare module allows region owners to get and set Windlight settings for their specific regions using in-world scripts, and for those regions to send those settings down to all, or specific, LightShare-aware viewers who visit the LightShare configured regions.

Enabling LightShare in OpenSimulator

LightShare core functionality is available within OpenSim 0.7 onwards.

The regionwindlight Database Table

A database table "regionwindlight" is used to store the settings.

OpenSim.ini Settings

LightShare is enabled by changing OpenSim.ini for the OpenSim.exe serving the regions you wish to use LightShare in:

  • setting enable_windlight = true in the [LightShare] section of OpenSim.ini
  • setting AllowLightShareFunctions = true in the [XEngine] section of OpenSim.ini

These changes affect all regions served by the specific OpenSim.exe which load this ini file.

Exmaple OpenSim.ini changes:

 [LightShare]
 ; This enables the transmission of Windlight scenes to supporting clients, such as the Meta7 viewer.
 ; It has no ill effect on viewers which do not support server-side windlight settings.
 ; Currently we only have support for MySQL databases.
enable_windlight = true

and

[XEngine]
 ; Allow the user of LightShare functions
AllowLightShareFunctions = true

LightShare-Enabled Viewers

Updated virtual world viewers are needed to receive Windlight settings sent by a region through LightShare.

You must also have an updated viewer in order for LightShare scripting functions (see below) to be properly compiled, and show correctly in the script editor.

Imprudence Viewer

LightShare support is disabled by default in Imprudence.

To enable it, choose the "Edit" menu item, "Preferences" menu option, "Advanced" preferences tab.

Then, change the "Allow region Windlight settings (LightShare)" option.

Imprudence Viewer is available from:

More details of the options are at:

Meta7 Viewer

The Meta7 Viewer is compatible with LightShare regions.

!!! It is unknown if Meta7 can work with the OpenSimulator ls* script functions detailed below. !!!

Singularity

Singularity is a SL/Metaverse viewer, supporting many OpenSim-specific features, as well as LightShare.

Website: http://www.singularityviewer.org/

Download: http://www.singularityviewer.org/downloads

LightShare Scripting

The features can be used through three LightShare (ls) functions:

See also the DefaultLightShareScript to get a starter script.

See Inventory Archives for an explanation of how to add the contents of the IAR file to your inventory.

LightShare Issues

See Also

  • RestrainedLove API [1] @setenv and @getenv commands
  • Phoenix Viewer ParcelWL [2]

Credits

LightShare was initially created by Meta7.

The Meta7 LightShare feature documentation can be found here:

Default settings are shown being set in this Meta7 sample script:

Using this script on OpenSimulator requires manual changing the cmSetWindlightScene function name to lsSetWindlightScene

Personal tools
General
About This Wiki