Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008289opensim[REGION] Script Functionspublic2018-02-14 21:332018-09-12 20:28
Assigned To 
PlatformPCOSWindowsOS Version10
Product Versionmaster (dev code) 
Target VersionFixed in Version 
Summary0008289: [TERRAIN TEXTURE] Set terrain texture by script reset sun position
DescriptionWhen i change terrain texture by script with osSetTerrainTexture and osSetTerrainTextureHeight, that reset the sun position.
Steps To Reproduce1 Set region sun setting to midday, midninght, sunset or sunrise
2 Put the script into a prim and compile, that it!
(don't panic, this script use default terrain textures and levels)

        osSetTerrainTexture(0, "b8d3965a-ad78-bf43-699b-bff8eca6c975");
        osSetTerrainTextureHeight(0, 10.0, 60.0);
        osSetTerrainTexture(1, "abb783e6-3e93-26c0-248a-247666855da3");
        osSetTerrainTextureHeight(1, 10.0, 60.0);
        osSetTerrainTexture(2, "179cdabd-398a-9b6b-1391-4dc333ba321f");
        osSetTerrainTextureHeight(2, 10.0, 60.0);
        osSetTerrainTexture(3, "beb169c7-11ea-fff2-efe5-0f24dc881df2");
        osSetTerrainTextureHeight(3, 10.0, 60.0);
Additional InformationNote: Firestorm jira @ [^]
TagsNo tags attached.
Git Revision or version number
Run Mode Grid (Multiple Regions per Sim)
Physics EngineubODE
Script Engine
Environment.NET / Windows64
Mono VersionNone
Attached Files

- Relationships

-  Notes
djphil (reporter)
2018-09-12 00:04
edited on: 2018-09-12 00:05

Firestorm Dev (Ansariel Hiller) ask to get link to OpenSim reference viewer for correct viewer-side implementation of that function but i don't know ... Can you provide one please, tank you!

BillBlight (developer)
2018-09-12 08:40

I'm not sure you are going to get this to work the way you want it ..

those functions work the same way as opening the estate settings, and if you notice if you set your sun to midday, and that is different than the estate settings , when you open estate settings your windlight reverts back to estate settings ..

I think the only way to achieve what you want is to also set a windlight/lightshare in the script ..
djphil (reporter)
2018-09-12 19:39

It's not just "the way I want it" but it's just not "normal". The function is to change the ground texture, not the sun. We have functions to change the sun (and it does not change the texture of the ground at the same time ...). I'm sure you understand and I hope that an improvement can be made ...

PS: I'm just asking for a referral link to provide Firestorm Dev ...
BillBlight (developer)
2018-09-12 19:41
edited on: 2018-09-12 19:41

Let me put it this way ..

The set of the terrain texture performs the same function as the estate settings does so , when you change the texture it refreshes the estate settings and causes even the windlight to reset ...

So therefore the new terrain gets sent to the all client viewers, that is all part of the same update ..

BillBlight (developer)
2018-09-12 19:43

Estate settings are sent as a "packaged deal" includes all the settings, environment, terrain textures all of it, the viewer does not just send part of it when it gets changed.
djphil (reporter)
2018-09-12 19:44

Yes I know this, we already talked about it in the IRC channel ... but that does not mean that it can not be improved ... If something is not designed correctly it is good to try to make it better :)
BillBlight (developer)
2018-09-12 19:46

the only time this might be overridden is if your windlight/ligthshare is under control of a script.
djphil (reporter)
2018-09-12 20:28

Bypass the problem != Solve the problem ...

- Issue History
Date Modified Username Field Change
2018-02-14 21:33 djphil New Issue
2018-02-14 22:05 djphil Additional Information Updated View Revisions
2018-02-14 22:05 djphil Additional Information Updated View Revisions
2018-09-12 00:04 djphil Note Added: 0032929
2018-09-12 00:05 djphil Note Edited: 0032929 View Revisions
2018-09-12 08:40 BillBlight Note Added: 0032932
2018-09-12 19:39 djphil Note Added: 0032935
2018-09-12 19:41 BillBlight Note Added: 0032936
2018-09-12 19:41 BillBlight Note Edited: 0032936 View Revisions
2018-09-12 19:43 BillBlight Note Added: 0032937
2018-09-12 19:44 djphil Note Added: 0032938
2018-09-12 19:46 BillBlight Note Added: 0032939
2018-09-12 20:28 djphil Note Added: 0032940

Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker