diff options
author | MW | 2007-06-18 14:41:38 +0000 |
---|---|---|
committer | MW | 2007-06-18 14:41:38 +0000 |
commit | 82d309d00765944654db023416a104d96de04328 (patch) | |
tree | 51b0f366479231b0061be1dad9df7823cf3e7457 /OpenSim/OpenSim.Region | |
parent | Fixed inverted map texture problem. (diff) | |
download | opensim-SC-82d309d00765944654db023416a104d96de04328.zip opensim-SC-82d309d00765944654db023416a104d96de04328.tar.gz opensim-SC-82d309d00765944654db023416a104d96de04328.tar.bz2 opensim-SC-82d309d00765944654db023416a104d96de04328.tar.xz |
Fixed the flashing when crossing a border.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/OpenSim.Region/Scenes/Avatar.Update.cs | 2 | ||||
-rw-r--r-- | OpenSim/OpenSim.Region/Scenes/Scene.cs | 29 | ||||
-rw-r--r-- | OpenSim/OpenSim.RegionServer/NetworkServersInfo.cs | 2 | ||||
-rw-r--r-- | OpenSim/OpenSim.RegionServer/UDPServer.cs | 6 |
4 files changed, 25 insertions, 14 deletions
diff --git a/OpenSim/OpenSim.Region/Scenes/Avatar.Update.cs b/OpenSim/OpenSim.Region/Scenes/Avatar.Update.cs index 50d5a14..534bda4 100644 --- a/OpenSim/OpenSim.Region/Scenes/Avatar.Update.cs +++ b/OpenSim/OpenSim.Region/Scenes/Avatar.Update.cs | |||
@@ -87,7 +87,7 @@ namespace OpenSim.Region.Scenes | |||
87 | /// </summary> | 87 | /// </summary> |
88 | public void SendInitialPosition() | 88 | public void SendInitialPosition() |
89 | { | 89 | { |
90 | this.ControllingClient.SendAvatarData(m_regionInfo, this.firstname, this.lastname, this.uuid, this.localid, new LLVector3(128, 128, 60)); | 90 | this.ControllingClient.SendAvatarData(m_regionInfo, this.firstname, this.lastname, this.uuid, this.localid, this.Pos); |
91 | } | 91 | } |
92 | 92 | ||
93 | /// <summary> | 93 | /// <summary> |
diff --git a/OpenSim/OpenSim.Region/Scenes/Scene.cs b/OpenSim/OpenSim.Region/Scenes/Scene.cs index 5744f1f..cb3865f 100644 --- a/OpenSim/OpenSim.Region/Scenes/Scene.cs +++ b/OpenSim/OpenSim.Region/Scenes/Scene.cs | |||
@@ -446,15 +446,7 @@ namespace OpenSim.Region.Scenes | |||
446 | this.Terrain.setHeights1D(map); | 446 | this.Terrain.setHeights1D(map); |
447 | } | 447 | } |
448 | 448 | ||
449 | //create a texture asset of the terrain | 449 | CreateTerrainTexture(); |
450 | byte[] data =this.Terrain.exportJpegImage("defaultstripe.png"); | ||
451 | this.m_regInfo.estateSettings.terrainImageID= LLUUID.Random(); | ||
452 | AssetBase asset = new AssetBase(); | ||
453 | asset.FullID = this.m_regInfo.estateSettings.terrainImageID; | ||
454 | asset.Data = data; | ||
455 | asset.Name = "terrainImage"; | ||
456 | asset.Type = 0; | ||
457 | this.assetCache.AddAsset(asset); | ||
458 | 450 | ||
459 | } | 451 | } |
460 | catch (Exception e) | 452 | catch (Exception e) |
@@ -462,6 +454,23 @@ namespace OpenSim.Region.Scenes | |||
462 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.MEDIUM, "World.cs: LoadWorldMap() - Failed with exception " + e.ToString()); | 454 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.MEDIUM, "World.cs: LoadWorldMap() - Failed with exception " + e.ToString()); |
463 | } | 455 | } |
464 | } | 456 | } |
457 | |||
458 | |||
459 | /// <summary> | ||
460 | /// | ||
461 | /// </summary> | ||
462 | private void CreateTerrainTexture() | ||
463 | { | ||
464 | //create a texture asset of the terrain | ||
465 | byte[] data = this.Terrain.exportJpegImage("defaultstripe.png"); | ||
466 | this.m_regInfo.estateSettings.terrainImageID = LLUUID.Random(); | ||
467 | AssetBase asset = new AssetBase(); | ||
468 | asset.FullID = this.m_regInfo.estateSettings.terrainImageID; | ||
469 | asset.Data = data; | ||
470 | asset.Name = "terrainImage"; | ||
471 | asset.Type = 0; | ||
472 | this.assetCache.AddAsset(asset); | ||
473 | } | ||
465 | #endregion | 474 | #endregion |
466 | 475 | ||
467 | #region Primitives Methods | 476 | #region Primitives Methods |
@@ -818,7 +827,7 @@ namespace OpenSim.Region.Scenes | |||
818 | /// <param name="RemoteClient"></param> | 827 | /// <param name="RemoteClient"></param> |
819 | public override void SendLayerData(int px, int py, IClientAPI RemoteClient) | 828 | public override void SendLayerData(int px, int py, IClientAPI RemoteClient) |
820 | { | 829 | { |
821 | RemoteClient.SendLayerData( Terrain.getHeights1D() ); | 830 | RemoteClient.SendLayerData(px, py, Terrain.getHeights1D()); |
822 | } | 831 | } |
823 | } | 832 | } |
824 | } | 833 | } |
diff --git a/OpenSim/OpenSim.RegionServer/NetworkServersInfo.cs b/OpenSim/OpenSim.RegionServer/NetworkServersInfo.cs index d0cbe2b..635bbdf 100644 --- a/OpenSim/OpenSim.RegionServer/NetworkServersInfo.cs +++ b/OpenSim/OpenSim.RegionServer/NetworkServersInfo.cs | |||
@@ -32,6 +32,7 @@ using OpenSim.Framework.Interfaces; | |||
32 | 32 | ||
33 | namespace OpenSim | 33 | namespace OpenSim |
34 | { | 34 | { |
35 | |||
35 | public class NetworkServersInfo | 36 | public class NetworkServersInfo |
36 | { | 37 | { |
37 | public string AssetURL = "http://127.0.0.1:8003/"; | 38 | public string AssetURL = "http://127.0.0.1:8003/"; |
@@ -115,4 +116,5 @@ namespace OpenSim | |||
115 | } | 116 | } |
116 | } | 117 | } |
117 | } | 118 | } |
119 | |||
118 | } | 120 | } |
diff --git a/OpenSim/OpenSim.RegionServer/UDPServer.cs b/OpenSim/OpenSim.RegionServer/UDPServer.cs index 315cb2c..54ec480 100644 --- a/OpenSim/OpenSim.RegionServer/UDPServer.cs +++ b/OpenSim/OpenSim.RegionServer/UDPServer.cs | |||
@@ -151,20 +151,20 @@ namespace OpenSim | |||
151 | 151 | ||
152 | public void ServerListener() | 152 | public void ServerListener() |
153 | { | 153 | { |
154 | m_console.WriteLine("UDPServer.cs:ServerListener() - Opening UDP socket on " + listenPort); | 154 | m_console.WriteLine(LogPriority.LOW, "UDPServer.cs:ServerListener() - Opening UDP socket on " + listenPort); |
155 | 155 | ||
156 | ServerIncoming = new IPEndPoint(IPAddress.Any, listenPort); | 156 | ServerIncoming = new IPEndPoint(IPAddress.Any, listenPort); |
157 | Server = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp); | 157 | Server = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp); |
158 | Server.Bind(ServerIncoming); | 158 | Server.Bind(ServerIncoming); |
159 | 159 | ||
160 | m_console.WriteLine("UDPServer.cs:ServerListener() - UDP socket bound, getting ready to listen"); | 160 | m_console.WriteLine(LogPriority.LOW, "UDPServer.cs:ServerListener() - UDP socket bound, getting ready to listen"); |
161 | 161 | ||
162 | ipeSender = new IPEndPoint(IPAddress.Any, 0); | 162 | ipeSender = new IPEndPoint(IPAddress.Any, 0); |
163 | epSender = (EndPoint)ipeSender; | 163 | epSender = (EndPoint)ipeSender; |
164 | ReceivedData = new AsyncCallback(this.OnReceivedData); | 164 | ReceivedData = new AsyncCallback(this.OnReceivedData); |
165 | Server.BeginReceiveFrom(RecvBuffer, 0, RecvBuffer.Length, SocketFlags.None, ref epSender, ReceivedData, null); | 165 | Server.BeginReceiveFrom(RecvBuffer, 0, RecvBuffer.Length, SocketFlags.None, ref epSender, ReceivedData, null); |
166 | 166 | ||
167 | m_console.WriteLine("UDPServer.cs:ServerListener() - Listening..."); | 167 | m_console.WriteLine(LogPriority.LOW, "UDPServer.cs:ServerListener() - Listening..."); |
168 | 168 | ||
169 | } | 169 | } |
170 | 170 | ||