[Opensim-users] Windlight and LightShare in Opensim 0.7

James Stallings II james.stallings at gmail.com
Thu Aug 26 19:22:15 UTC 2010


Aha,

This must be a fairly recent development. My 0.7 test install is tracking
HEAD on the master branch, and didn't have it in place as of around two
weeks ago. It is good hearing that this has been done though, windlight was
low-hanging fruit of a very good flavor and should not be left to rot on the
vine XD

Cheers!
James

On Thu, Aug 26, 2010 at 2:09 PM, Marck <marck00 at nexgo.de> wrote:

> That regionwindlight table was automatically created when I installed
> OpenSim 0.7-release, if I remember correctly. At least, I never created it
> manually, and yet I see it in the database.
>
> James Stallings II wrote:
>
>> Hi Ai,
>>
>> The functions were renamed and are prefixed 'ls' instead of 'cm'. Also
>> the module is in core, but the databases aren't; you'll need to run a
>> sql script to create the tablespaces for you. Here's that script:
>>
>>
>>
>> -- MySQL dump 10.13  Distrib 5.1.42, for Win32 (ia32)
>> --
>> -- Host: localhost    Database: osg2
>> -- ------------------------------------------------------
>> -- Server version       5.1.42-community
>>
>> /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
>> /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
>> /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
>> /*!40101 SET NAMES utf8 */;
>> /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
>> /*!40103 SET TIME_ZONE='+00:00' */;
>> /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
>> /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS,
>> FOREIGN_KEY_CHECKS=0 */;
>> /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO'
>> */;
>> /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
>>
>> --
>> -- Table structure for table `regionwindlight`
>> --
>>
>> DROP TABLE IF EXISTS `regionwindlight`;
>> /*!40101 SET @saved_cs_client     = @@character_set_client */;
>> /*!40101 SET character_set_client = utf8 */;
>> CREATE TABLE `regionwindlight` (
>>   `region_id` varchar(36) NOT NULL DEFAULT
>> '000000-0000-0000-000000000000',
>>   `water_color_r` float(9,6) unsigned NOT NULL DEFAULT '4.000000',
>>   `water_color_g` float(9,6) unsigned NOT NULL DEFAULT '38.000000',
>>   `water_color_b` float(9,6) unsigned NOT NULL DEFAULT '64.000000',
>>   `water_fog_density_exponent` float(3,1) unsigned NOT NULL DEFAULT '4.0',
>>   `underwater_fog_modifier` float(3,2) unsigned NOT NULL DEFAULT '0.25',
>>   `reflection_wavelet_scale_1` float(3,1) unsigned NOT NULL DEFAULT '2.0',
>>   `reflection_wavelet_scale_2` float(3,1) unsigned NOT NULL DEFAULT '2.0',
>>   `reflection_wavelet_scale_3` float(3,1) unsigned NOT NULL DEFAULT '2.0',
>>   `fresnel_scale` float(3,2) unsigned NOT NULL DEFAULT '0.40',
>>   `fresnel_offset` float(3,2) unsigned NOT NULL DEFAULT '0.50',
>>   `refract_scale_above` float(3,2) unsigned NOT NULL DEFAULT '0.03',
>>   `refract_scale_below` float(3,2) unsigned NOT NULL DEFAULT '0.20',
>>   `blur_multiplier` float(4,3) unsigned NOT NULL DEFAULT '0.040',
>>   `big_wave_direction_x` float(3,2) NOT NULL DEFAULT '1.05',
>>   `big_wave_direction_y` float(3,2) NOT NULL DEFAULT '-0.42',
>>   `little_wave_direction_x` float(3,2) NOT NULL DEFAULT '1.11',
>>   `little_wave_direction_y` float(3,2) NOT NULL DEFAULT '-1.16',
>>   `normal_map_texture` varchar(36) NOT NULL DEFAULT
>> '822ded49-9a6c-f61c-cb89-6df54f42cdf4',
>>   `horizon_r` float(3,2) unsigned NOT NULL DEFAULT '0.25',
>>   `horizon_g` float(3,2) unsigned NOT NULL DEFAULT '0.25',
>>   `horizon_b` float(3,2) unsigned NOT NULL DEFAULT '0.32',
>>   `horizon_i` float(3,2) unsigned NOT NULL DEFAULT '0.32',
>>   `haze_horizon` float(3,2) unsigned NOT NULL DEFAULT '0.19',
>>   `blue_density_r` float(3,2) unsigned NOT NULL DEFAULT '0.12',
>>   `blue_density_g` float(3,2) unsigned NOT NULL DEFAULT '0.22',
>>   `blue_density_b` float(3,2) unsigned NOT NULL DEFAULT '0.38',
>>   `blue_density_i` float(3,2) unsigned NOT NULL DEFAULT '0.38',
>>   `haze_density` float(3,2) unsigned NOT NULL DEFAULT '0.70',
>>   `density_multiplier` float(3,2) unsigned NOT NULL DEFAULT '0.18',
>>   `distance_multiplier` float(4,1) unsigned NOT NULL DEFAULT '0.8',
>>   `max_altitude` int(4) unsigned NOT NULL DEFAULT '1605',
>>   `sun_moon_color_r` float(3,2) unsigned NOT NULL DEFAULT '0.24',
>>   `sun_moon_color_g` float(3,2) unsigned NOT NULL DEFAULT '0.26',
>>   `sun_moon_color_b` float(3,2) unsigned NOT NULL DEFAULT '0.30',
>>   `sun_moon_color_i` float(3,2) unsigned NOT NULL DEFAULT '0.30',
>>   `sun_moon_position` float(4,3) unsigned NOT NULL DEFAULT '0.317',
>>   `ambient_r` float(3,2) unsigned NOT NULL DEFAULT '0.35',
>>   `ambient_g` float(3,2) unsigned NOT NULL DEFAULT '0.35',
>>   `ambient_b` float(3,2) unsigned NOT NULL DEFAULT '0.35',
>>   `ambient_i` float(3,2) unsigned NOT NULL DEFAULT '0.35',
>>   `east_angle` float(3,2) unsigned NOT NULL DEFAULT '0.00',
>>   `sun_glow_focus` float(3,2) unsigned NOT NULL DEFAULT '0.10',
>>   `sun_glow_size` float(3,2) unsigned NOT NULL DEFAULT '1.75',
>>   `scene_gamma` float(4,2) unsigned NOT NULL DEFAULT '1.00',
>>   `star_brightness` float(3,2) unsigned NOT NULL DEFAULT '0.00',
>>   `cloud_color_r` float(3,2) unsigned NOT NULL DEFAULT '0.41',
>>   `cloud_color_g` float(3,2) unsigned NOT NULL DEFAULT '0.41',
>>   `cloud_color_b` float(3,2) unsigned NOT NULL DEFAULT '0.41',
>>   `cloud_color_i` float(3,2) unsigned NOT NULL DEFAULT '0.41',
>>   `cloud_x` float(3,2) unsigned NOT NULL DEFAULT '1.00',
>>   `cloud_y` float(3,2) unsigned NOT NULL DEFAULT '0.53',
>>   `cloud_density` float(3,2) unsigned NOT NULL DEFAULT '1.00',
>>   `cloud_coverage` float(3,2) unsigned NOT NULL DEFAULT '0.27',
>>   `cloud_scale` float(3,2) unsigned NOT NULL DEFAULT '0.42',
>>   `cloud_detail_x` float(3,2) unsigned NOT NULL DEFAULT '1.00',
>>   `cloud_detail_y` float(3,2) unsigned NOT NULL DEFAULT '0.53',
>>   `cloud_detail_density` float(3,2) unsigned NOT NULL DEFAULT '0.12',
>>   `cloud_scroll_x` float(4,2) NOT NULL DEFAULT '0.20',
>>   `cloud_scroll_x_lock` tinyint(1) unsigned NOT NULL DEFAULT '0',
>>   `cloud_scroll_y` float(4,2) NOT NULL DEFAULT '0.01',
>>   `cloud_scroll_y_lock` tinyint(1) unsigned NOT NULL DEFAULT '0',
>>   `draw_classic_clouds` tinyint(1) unsigned NOT NULL DEFAULT '1',
>>   PRIMARY KEY (`region_id`)
>> ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
>> /*!40101 SET character_set_client = @saved_cs_client */;
>>
>> --
>> -- Dumping data for table `regionwindlight`
>> --
>>
>> LOCK TABLES `regionwindlight` WRITE;
>> /*!40000 ALTER TABLE `regionwindlight` DISABLE KEYS */;
>> /*!40000 ALTER TABLE `regionwindlight` ENABLE KEYS */;
>> UNLOCK TABLES;
>> /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
>>
>> /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
>> /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
>> /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
>> /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
>> /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
>> /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
>> /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
>>
>> -- Dump completed on 2010-06-17 21:18:04
>>
>>
>>
>>
>>
>> Hope that helps :)
>> James/Hiro Protagonist
>> SimHost.com
>>
>>
>> On Thu, Aug 26, 2010 at 11:35 AM, Ai Austin <ai.ai.austin at gmail.com
>> <mailto:ai.ai.austin at gmail.com>> wrote:
>>
>>    I have been reading about Windlight settings and how they can be
>>    broadcast from a region to a suitable viewer such as Imprudence.
>>
>>    Is this enabled in the current release versions 0.7.0.1 or just in
>>    the development/master builds?
>>
>>    I ask as I tried enabling lightshare on an Opensim.exe as it is
>>    included in Opensim.ini.example... and the tried to compile a test
>>    script that is provided by the Meta7 folks.  But I get a compile
>>    errors saying that the 3 functions which can get and set the region
>>    settings - "The name 'cmSetWindlightScene' does not exist in the
>>    current context"
>>
>>    cmGetWindlightScene
>>    cmSetWindlightScene
>>    cmSetWindlightScenetargeted
>>
>>    Or possibly these functions were renamed when incorporated into
>>    opensim as a module?
>>
>>    I found Wiki pages here and there, but not a proper intro on the
>>    OpenSim wiki. E.g.
>>    http://imprudenceviewer.org/wiki/LightShare
>>
>>    _______________________________________________
>>    Opensim-users mailing list
>>    Opensim-users at lists.berlios.de <mailto:Opensim-users at lists.berlios.de>
>>
>>    https://lists.berlios.de/mailman/listinfo/opensim-users
>>
>>
>>
>>
>> --
>> ===================================
>> http://osgrid.org
>> http://twitter.com/jstallings2
>> http://www.linkedin.com/pub/5/770/a49
>>
>>
>>
>> _______________________________________________
>> Opensim-users mailing list
>> Opensim-users at lists.berlios.de
>> https://lists.berlios.de/mailman/listinfo/opensim-users
>>
> _______________________________________________
> Opensim-users mailing list
> Opensim-users at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/opensim-users
>



-- 
===================================
http://osgrid.org
http://twitter.com/jstallings2
http://www.linkedin.com/pub/5/770/a49
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://opensimulator.org/pipermail/opensim-users/attachments/20100826/c14a76b8/attachment.html>


More information about the Opensim-users mailing list