Commit Graph

67 Commits

Author SHA1 Message Date
Adam Frisby
a360116502 * Disabled ancient TerrainEngine.
* Enabled new TerrainModule.  (The king is dead, long live the king!)
* Use the console command: "script terrain save file.r32" / "script terrain load file.r32" to load/save terrain. Now uses the extension to determine file format.
* MANY of the old terrain features do not have a replacement function in the new module yet, this needs to be corrected, but has not been done so far. This being said, the new module is faster and more efficient and should be a good replacement.
2008-03-06 15:49:53 +00:00
Adam Frisby
f64611862a * New Terrain Module (disabled, search for 'usingTerrainModule = false' to reenable)
* *Much* faster terraforming (woot!)
* New "Brushes" design, so you can create custom terraforming brushes then apply those inplace of the standard tools. (ie an Erode Brush for example)
* New specialised "Flood Brushes" to do large area effects, ie, raise-area, now takes a bitmap rather than repeats the ordinary raise brush a thousand times.
* New modular file Load/Save systems -- write importers/exporters for multiple formats without having to hard code the whole thing in.
* Coming soon - effects system, ie the old Erosion functions, etc. for one-shot effects.
2008-03-05 00:52:35 +00:00
Sean Dague
c009e2e095 From: Mike Pitman <pitman@us.ibm.com>
Below is a patch for the smooth tool. 

I factored out the essential computations and placed it in a 
channel method to work similar to raise and lower. 
It now performs about the same rate as raise and lower.
2008-02-29 20:36:14 +00:00
Charles Krinke
58c72c409d Thank you very much, ChrisDown for a patch to
remove unnecessary terrain stores at region startup
2008-02-17 02:07:25 +00:00
Justin Clarke Casey
df21da6dec * Patch from Dr Schofld's (IBM). In his own words
all TerrainEngine.LoadFromFileX(string filename) methods don't set the dirty bits in heightmap.diff[,] in contrast to the TerrainEngine.LoadFromFileX(string filename, int dimensionX, int dimensionY, int lowerboundX, int lowerboundY) cousins. this has the unpleasant drawback that the Scene.SendTerrainUpdate(bool) will not send layer data to the client.

the attached patch fixes all LoadFromFileX(.) methods.

Thanks!

* Also small build fix for AvatarFactoryModule
2008-02-13 16:35:42 +00:00
Sean Dague
62943de68a change counter from 3 => 2 based on feedback from mirceakitsune on mantis
http://opensimulator.org/mantis/bug_view_page.php?bug_id=490
2008-02-08 16:29:01 +00:00
Justin Clarke Casey
aa9d3f7aed * Allow terrain load-tile for RAW files
* Patch from Sophie Lee [webmage] - IBM.  Thanks very much!
2008-02-06 20:47:08 +00:00
Adam Frisby
f93fdfa5af * Marking off which uses of catch (Exception e) is legit and which are not, for later removal/replacement. 2008-02-06 15:30:02 +00:00
Brian McBee
7a61bcff86 Cut down on the number of packets sent during terraforming. Terraforming should be much more responsive. 2008-02-05 18:27:40 +00:00
Teravus Ovares
832243c6e8 * No more massive spires and massive pits when editing land using Select + tool + amount + apply; 2008-01-29 06:16:06 +00:00
Adam Frisby
7d61705c3c * Renamed a number of TerrainEngine functions to conform naming standards better. 2008-01-22 00:33:05 +00:00
Tedd Hansen
7fa6646d6f Added (experimental) terrain elevate command to allow whole terrain to be elevated with positive or negative values 2008-01-16 21:21:31 +00:00
lbsa71
efd90b56b7 * Optimized usings
* shortened references
* Removed redundant 'this'
* Normalized EOF
2007-12-27 21:41:48 +00:00
Adam Frisby
8b6dd623bd * Added osTerrainSetHeight(int x, int y, double val) to LSL commands
* Added osTerrainGetHeight(int x, int y) to LSL commands
2007-12-27 05:20:03 +00:00
Teravus Ovares
94d8976140 * Hack to make sim saving terrain more friendly to larger parcel selection modifications 2007-12-17 04:28:36 +00:00
Teravus Ovares
e4276f566d * Beating on the head that is terrain editing.
* SelectAABB + Radio Button Action + 'brush size' + Apply works now.
* There's something wrong with the byte for brush size that causes it to be unpredictable sometimes causing massive spikes. This appears to have always been this way, however it's more noticeable now that you can apply the effect to a selection of terrain.
2007-12-15 23:44:57 +00:00
Jeff Ames
af6eb67999 saved OpenSim source code from the giant rampaging unterminated copyright notice of doom 2007-12-10 05:25:16 +00:00
Brian McBee
6ed34cc27e fixed order of map block requests to grid server. flipped map texture, as it was upside down. 2007-11-25 03:14:43 +00:00
lbsa71
67e12b95ea * Optimized usings
* Shortened type references
* Removed redundant 'this' qualifier
2007-10-30 09:05:31 +00:00
Adam Frisby
6804f9affb * Added static mutex to terrain load-tile to prevent file IO locking issues. 2007-10-25 15:17:42 +00:00
Adam Frisby
569ba9eb9a Terrain:
* Attempted fix for lag/pause when doing lots of updates.
* Some naming fixes to libTerrain.
* Refactored terrain bitmap generation into a common call for both world map and export.

General:
* Switched some calls to Console.WriteLine to use MainLog.Warn/Verbose/Notice.
2007-09-25 11:48:43 +00:00
lbsa71
2219ccc5b0 * Fixed Culture-variant parsing of config options 2007-09-25 01:20:30 +00:00
Adam Frisby
4e01aa4879 * Added time dilation property to Scene
* Default Terrain algorithm now produces something slightly less mountainous.
* Fixed lolcat
2007-09-24 16:39:26 +00:00
Dalien Talbot
7a9f5ed6b3 Fix the terrain heightmap load from images (tested PNG and GIF). 2007-09-13 13:09:14 +00:00
Sean Dague
ffe9c9374a mass update of urls in source code to new website 2007-09-10 08:14:38 +00:00
MW
8e3b2392d1 Start of trying to make Region/Scene more modular.
Added preliminary IRegionModule interface.
Also have a work in progress way of Modules registering optional API methods (kind of like Apache optional functions). But there must be a cleaner/nicer way in c# of doing these than the current way.
Added three work in progress modules: ChatModule (simple handles in world chat, but by moving this to a module, we could support other types of chat modules, ie like a irc - opensim bridge module. ) , AvatarProfilesModule and XferModule. 
Moved most of the code from  Scene.ModifyTerrain() into the BasicTerrain library, as the start of trying to make that more modular. 
Stopped Child agents showing up as part of the "show users" command.
2007-08-28 14:21:17 +00:00
Adam Frisby
4177f5c485 * Applied dalien's terrain help patch (thanks!) 2007-08-17 22:57:46 +00:00
Adam Frisby
d2e48c8014 * Added new terrain-sim <simname> <terrain commands...> function to run terrain commands on a specific sim.
* Made arguments for terrain save grdmap optional. Uses defaultstripe if no argument specified.
2007-08-17 22:44:34 +00:00
Adam Frisby
4a9e40ea47 * Added support for the IMG-format loader to terrain's load-tile function. 2007-08-16 23:29:28 +00:00
MW
6bfe911af3 Rotated the terrain textures that are created for world map by 90 degree as somehow they had got out of sync with the terrain. 2007-08-08 14:50:44 +00:00
Brian McBee
b55e01b939 OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
One last try at getting the X and Y all set straight.
2007-08-06 20:53:45 +00:00
Brian McBee
565dee5e0a OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
One last array with X and Y flipped. Terrain load-tile should be working now.
2007-08-06 19:13:10 +00:00
Brian McBee
86da47dc4e OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
This time I think I have BOTH terrain rotation AND terraforming working. Could those of you with large terrain maps please test this thoroughly?
2007-08-06 18:14:48 +00:00
Brian McBee
73dadb4821 OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
Backing out previous change to GetHeights1D. Terrain should now load with the correct rotation, but terraforming is now broken again.
2007-08-06 17:45:57 +00:00
Brian McBee
bb60d87538 OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs
Fix for terraforming: now works across the region, not just when x=y! Wahoo!
2007-08-04 14:13:02 +00:00
MW
dde8aafb8a More work on the AllNewSceneObject* classes. 2007-08-03 11:44:30 +00:00
Adam Frisby
cd2a411afe * Terrain load variables now work. HiRAW exporter works wonderfully. :D 2007-08-02 20:51:06 +00:00
Adam Frisby
ed0704d527 * Fixed several issues with Terrain
* RAW/HiRAW export modes now work again
* Filename variables (such as %x%) now work correctly when loading or saving multiple tiles.
2007-08-02 20:25:28 +00:00
Adam Frisby
fcafbc9a4a * Added new "terrain add" command. 2007-08-02 20:07:35 +00:00
Adam Frisby
9e97aa20b4 * Fixed Issue#249 - Terrain reverting without baking crashes the simulator. 2007-08-01 23:12:59 +00:00
Adam Frisby
38cd3bf185 * Fixed terrain fill command
* Added "terrain smooth" command
* Added "terrain clip" command
2007-08-01 22:53:05 +00:00
Adam Frisby
04d40b71d4 * Fixed an assorted group of bugs with tiled terrain import. 2007-08-01 22:45:05 +00:00
Adam Frisby
a2d71904f1 * Added load-tile terrain command to correspond with previous commit. 2007-08-01 21:51:02 +00:00
Adam Frisby
61017d10d8 * F32 Terrain load function written to support loading tiles from a larger heightmap. 2007-08-01 21:46:48 +00:00
Adam Frisby
d2c7bd3fff * Terrain engine now knows the region coordinates - this can be later used to allow loading of single terrain files for multiple regions. 2007-08-01 21:27:58 +00:00
Adam Frisby
c33b29a105 * Applying issue#230 - Avatar stuck at region edge (Thanks Babblefrog!)
* Fix for issue #237 - Sim startup cannot read a terrain file (Reported by CutterRubio)
2007-07-29 06:23:07 +00:00
Adam Frisby
cd88a4914d * Assorted terrain fixes 2007-07-25 10:08:16 +00:00
Adam Frisby
d8997b59d3 * Terrain should now send just updated patches. 2007-07-24 05:22:33 +00:00
Adam Frisby
a60b2654ed * 1 line commit: Erosion functions should taint the terrain. 2007-07-23 15:47:14 +00:00
Adam Frisby
14879fead9 * Bonus commit, added a "terrain fill" command to fill a terrain with a specific height value. 2007-07-23 05:31:58 +00:00