aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/World/Terrain (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 'terrain modify' command for area-of-effect operationsDev Random2015-05-0610-143/+1266
| | | | Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>
* Use using constructs on disposable io objects in LLRaw to ensure they are ↵Justin Clark-Casey (justincc)2015-02-281-113/+111
| | | | always closed even if an exception is thrown.
* Add OpenSim.Framework using statement necessary to get previous fad4d4dc to ↵Justin Clark-Casey (justincc)2015-02-281-0/+1
| | | | compile.
* Permit loading of LLRAW files bigger than 256x256 by calculating size based ↵Magnuz Binder2015-02-281-1/+9
| | | | on file size rather than assuming 256x256, same as for RAW32.
* Add 'terrain feature' commandDev Random2014-11-194-2/+353
|
* In TerrainModule, lock m_perClientPatchUpdates when removing entries.Justin Clark-Casey (justincc)2014-07-291-3/+2
| | | | | This may have been the trigger CheckSendingPatchesToClients() dictionary out of sync exceptions in today's load test. Don't need to check ContainsKey() since Remove() returns false on a request to remove a key that it doesn't have
* Set "[Terrain]SendTerrainUpdatesByViewDistance=true" by default.Robert Adams2014-07-201-1/+1
| | | | | | | | This, by default, enables terrain patches being sent to each avatar from the avatar away (rather than the old outside-in pattern), only sending terrain patches within the avatars view distance (making view loading quicker), and sending multiple terrain patches per protocol packet (making terrain loading and editing quicker).
* Send multiple terrain patches per terrain update packet if terrainRobert Adams2014-06-011-1/+13
| | | | | draw distance optimization is enabled. Makes terrain editting a lot snappier.
* Modifications to debugging printouts. No functional changes.Robert Adams2014-05-311-5/+8
|
* varregion: More tweeking to only sending patches within avatar draw distance.Robert Adams2014-05-311-3/+3
| | | | Still has problems with child avatars.
* varregion: send terrain patches from where the avatar outward if the parameterRobert Adams2014-05-311-33/+259
| | | | | | [Terrain]SendTerrainUpdatesByViewDistance=true. This tracks which patches have been sent to each client and outputs the patches as the avatar moves.
* minor: Correct mistake in terrain flip error message from previous commit ↵Justin Clark-Casey (justincc)2014-04-301-1/+1
| | | | 5d01a1f
* minor: Print output in response to terrain console commands on the console ↵Justin Clark-Casey (justincc)2014-04-301-8/+9
| | | | rather than in the log.
* Add "terrain show" console command which outputs terrain height for a given ↵Justin Clark-Casey (justincc)2014-04-301-0/+22
| | | | | | region co-ordinate. For debug purposes.
* BulletSim: non-functional changes to debugging statements and formatting.Robert Adams2014-04-281-2/+1
|
* Add regression test for terrain fill at two digit height and max ll height.Justin Clark-Casey (justincc)2014-04-252-1/+76
|
* Eliminated many warningsOren Hurvitz2014-04-231-1/+4
|
* remove some whitespace that snuck in with last patchMichael Cerquoni2014-04-031-2/+2
|
* Add Varregion support to Terragen HandlerDev Random2014-04-031-28/+23
| | | | Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>
* varregion: remove serialization of region terrain to floats when sending ↵Robert Adams2014-03-111-2/+6
| | | | | | | | | | | | patches. This should eliminate much memory thrashing and CPU usage while sending initial terrain. The old way of passing terrain was to convert it to an array of floats. This is really bad for large terrain (think 4096x4096 floats). This change passes a dummy float array since the real region info is used anyway and the floats are ignored. (The ignoring the terrain floats is a kludge so as to not change IClientAPI.)
* Change terrain update sending to be triggered by frame tick ratherRobert Adams2014-03-101-50/+92
| | | | | | | | | than everytime terrain is changed. The TerrainModule now hooks the frame event and, if terrain has changed, sends terrain updates to the clients. This polling pattern replaces the previous push on change pattern and will make it easier to do per client throttling and per scene presence terrain update ordering.
* Fix raw32 terrain heightmap reader so it estimates terrain size fromRobert Adams2014-02-032-2/+13
| | | | | | the size of the input stream. This is required since the raw heightmap format (.r32) does not contain any size information. The estimation relies on terrain being square.
* Implement terrain merging in TerrainChannel.Robert Adams2014-02-021-31/+4
| | | | | | Modify archiver to use terrain merging when loading oars. This makes displacement AND rotation properly work on terrain when loading oars. Especially useful when loading legacy region oars into large varregions.
* Restore brush tests with correct values and adjustments for new terrain heightRobert Adams2014-01-281-17/+17
| | | | rounding characteristics.
* Temporarily disable brush test. It will come back when tuning is complete.Robert Adams2014-01-281-0/+2
|
* Change area of brush test to account for rounding errors in terrain ↵Robert Adams2014-01-281-2/+2
| | | | implementation
* Increase the strength of brushes in brush test in an attempt to overcome ↵Robert Adams2014-01-281-2/+2
| | | | | | rounding introduced with new terrain height class.
* Fix terrain tests by properly initializing low detail terrain to zero height.Robert Adams2014-01-281-4/+0
| | | | Also remove PI heightmap test as new heightmaps only have two significant digits.
* varregion: add --displacement parameter to 'load oar'.Robert Adams2014-01-191-3/+35
| | | | | | | | | Adds displacment to all objects and terrain loaded from the oar. As an example, if you have a 512x512 region and an old 256x256 oar, doing load oar --displacement "<128,128,0>" oarFile.oar will load the object (and terrain) into the middle of the 512x512 region. If displacement is not specified, 'load oar' works like it always has. If you have a 5
* varregion: many more updates removing the constant RegionSize and replacingRobert Adams2013-12-262-2/+2
| | | | with a passed region size. This time in the map code and grid services code.
* varregion: rename 'LegacyRegionLocX' back to 'RegionLocX' and same for Y and Z.Robert Adams2013-12-141-5/+5
| | | | | | Rename 'RegionWorldLocX' to 'WorldLocX' and same for Y and Z. This keeps the downward compatibility and follows the scheme of 'region' and 'world' location naming that is happening in the Util module.
* varregion: extend TerrainModule to use the region size from RegionInfoRobert Adams2013-11-101-14/+14
| | | | | rather than using Constants.RegionSize. This allows loading and saving of terrain heightmaps that match the size of non-legacy sized regions.
* varregion: elimination of Constants.RegionSize from all over OpenSimulator.Robert Adams2013-11-081-1/+1
| | | | | | | Routines in Util to compute region world coordinates from region coordinates as well as the conversion to and from region handles. These routines have replaced a lot of math scattered throughout the simulator. Should be no functional changes.
* varregion: move the compressed heighmap compression factor fromRobert Adams2013-10-161-3/+5
| | | | | Constants into TerrainData. Save compression factor with the terrain blob in the database.
* varregion: plug in TerrainData class and modify TerrainModule and ↵Robert Adams2013-10-071-13/+16
| | | | LLClientView to use same. This passes a terrain info class around rather than passing a one dimensional array thus allowing variable regions. Update the database storage for variable region sizes. This should be downward compatible (same format for 256x256 regions).
* varregion: serious rework of TerrainChannel:Robert Adams2013-09-282-4/+6
| | | | | | | | | -- addition of varaible region size in X and Y -- internal storage of heightmap changed from double[] to short[] -- helper routines for handling internal structure while keeping existing API -- to and from XML that adds region size information (for downward compatibility, output in the legacy XML format if X and Y are 256) Updated and commented Constants.RegionSize but didn't change the name for compatibility.
* VarRegion: change RegionInfo storage of region coordinates from regionRobert Adams2013-09-281-5/+5
| | | | | | | | count number to integer world coordinates. Added new methods RegionWorldLoc[XY]. Refactored name of 'RegionLoc*' to 'LegacyRegionLoc*' throughout OpenSim. Kept old 'RegionLoc*' entrypoint to RegionInfo for downward compatability of external region management packages.
* minor: Change channel digger replacement message in TerrainModule to Info ↵Justin Clark-Casey (justincc)2013-01-031-1/+1
| | | | | | from Warn. This is to stop this unnecessarily triggering log analysis code which reports warn and error level statements.
* Consistenly make NUnit test cases inherit from OpenSimTestCase which ↵Justin Clark-Casey (justincc)2012-11-241-1/+2
| | | | automatically turns off any logging enabled between tests
* Another 10 modules' directives moved from .addin.xmlDiva Canto2012-11-121-0/+2
|
* Revert "Added request.Proxy=null everywhere, as discussed in ↵Diva Canto2012-09-301-1/+0
| | | | | | | | http://stackoverflow.com/questions/2519655/httpwebrequest-is-extremely-slow." But the patch is here, in case anyone wants to try it. This reverts commit 531edd51d82ecd6a842a2611c99e9919634491ef.
* Added request.Proxy=null everywhere, as discussed in ↵Diva Canto2012-09-301-0/+1
| | | | | | http://stackoverflow.com/questions/2519655/httpwebrequest-is-extremely-slow. Thanks R.Gunther (rigun@rigutech.nl) https://lists.berlios.de/pipermail/opensim-users/2012-September/010986.html
* formattingSignpostMarv2012-08-271-22/+22
|
* refactoring to load from self (fixes ChanneDigger being absent)SignpostMarv2012-08-271-5/+11
|
* refactoring to assign the first argument to a variableSignpostMarv2012-08-271-4/+5
|
* Where possible, use the system Encoding.ASCII and Encoding.UTF8 rather than ↵Justin Clark-Casey (justincc)2012-07-111-1/+1
| | | | | | | constructing fresh copies. The encodings are thread-safe and already used in such a manner in other places. This isn't done where Byte Order Mark output is suppressed, since Encoding.UTF8 is constructed to output the BOM.
* porting console commands from raw2sculpt 3.2SignpostMarv2012-07-051-0/+34
|
* Stop accidentally reading 4 Int16s instead of 2 in SIZE section of Terragen ↵Justin Clark-Casey (justincc)2012-06-051-2/+0
| | | | | | | file when loaded from a stream. Fixes a bug introduced 2 weeks ago in 67ebe80 Thanks to Plugh for pointing this out.
* Resolve some mono compiler warnings.Justin Clark-Casey (justincc)2012-05-252-13/+17
|
* Add even for terrain tainting and synchronize terrain module with physics ↵Dan Lake2012-05-101-0/+1
| | | | scene before physics simulation step rather than after