diff options
author | UbitUmarov | 2018-05-28 09:48:14 +0100 |
---|---|---|
committer | UbitUmarov | 2018-05-28 09:48:14 +0100 |
commit | 629eeca8365be3c54ee46ef87a0db6f6eca58cdc (patch) | |
tree | bb5fe9d709c665a5e66a42d37ed85657b4f82dfe | |
parent | make Yengine post attach event as Xengine does. This should fix that event. T... (diff) | |
download | opensim-SC-629eeca8365be3c54ee46ef87a0db6f6eca58cdc.zip opensim-SC-629eeca8365be3c54ee46ef87a0db6f6eca58cdc.tar.gz opensim-SC-629eeca8365be3c54ee46ef87a0db6f6eca58cdc.tar.bz2 opensim-SC-629eeca8365be3c54ee46ef87a0db6f6eca58cdc.tar.xz |
english typo, thx you know who
-rw-r--r-- | OpenSim/Region/CoreModules/World/Warp3DMap/Warp3DImageModule.cs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/OpenSim/Region/CoreModules/World/Warp3DMap/Warp3DImageModule.cs b/OpenSim/Region/CoreModules/World/Warp3DMap/Warp3DImageModule.cs index 69c7b57..2893255 100644 --- a/OpenSim/Region/CoreModules/World/Warp3DMap/Warp3DImageModule.cs +++ b/OpenSim/Region/CoreModules/World/Warp3DMap/Warp3DImageModule.cs | |||
@@ -167,7 +167,7 @@ namespace OpenSim.Region.CoreModules.World.Warp3DMap | |||
167 | private Vector3 cameraPos; | 167 | private Vector3 cameraPos; |
168 | private Vector3 cameraDir; | 168 | private Vector3 cameraDir; |
169 | private int viewWitdh = 256; | 169 | private int viewWitdh = 256; |
170 | private int viewHeigth = 256; | 170 | private int viewHeigtht = 256; |
171 | private float fov; | 171 | private float fov; |
172 | private bool orto; | 172 | private bool orto; |
173 | 173 | ||
@@ -186,7 +186,7 @@ namespace OpenSim.Region.CoreModules.World.Warp3DMap | |||
186 | 186 | ||
187 | cameraDir = -Vector3.UnitZ; | 187 | cameraDir = -Vector3.UnitZ; |
188 | viewWitdh = (int)m_scene.RegionInfo.RegionSizeX; | 188 | viewWitdh = (int)m_scene.RegionInfo.RegionSizeX; |
189 | viewHeigth = (int)m_scene.RegionInfo.RegionSizeY; | 189 | viewHeigtht = (int)m_scene.RegionInfo.RegionSizeY; |
190 | orto = true; | 190 | orto = true; |
191 | 191 | ||
192 | // fov = warp_Math.rad2deg(2f * (float)Math.Atan2(viewWitdh, 4096f)); | 192 | // fov = warp_Math.rad2deg(2f * (float)Math.Atan2(viewWitdh, 4096f)); |
@@ -211,7 +211,7 @@ namespace OpenSim.Region.CoreModules.World.Warp3DMap | |||
211 | cameraPos = camPos; | 211 | cameraPos = camPos; |
212 | cameraDir = camDir; | 212 | cameraDir = camDir; |
213 | viewWitdh = width; | 213 | viewWitdh = width; |
214 | viewHeigth = height; | 214 | viewHeigtht = height; |
215 | fov = pfov; | 215 | fov = pfov; |
216 | orto = false; | 216 | orto = false; |
217 | 217 | ||
@@ -227,8 +227,8 @@ namespace OpenSim.Region.CoreModules.World.Warp3DMap | |||
227 | 227 | ||
228 | WarpRenderer renderer = new WarpRenderer(); | 228 | WarpRenderer renderer = new WarpRenderer(); |
229 | 229 | ||
230 | if (!renderer.CreateScene(viewWitdh, viewHeigth)) | 230 | if (!renderer.CreateScene(viewWitdh, viewHeigtht)) |
231 | return new Bitmap(viewWitdh, viewHeigth); | 231 | return new Bitmap(viewWitdh, viewHeigtht); |
232 | 232 | ||
233 | #region Camera | 233 | #region Camera |
234 | 234 | ||
@@ -236,7 +236,7 @@ namespace OpenSim.Region.CoreModules.World.Warp3DMap | |||
236 | warp_Vector lookat = warp_Vector.add(pos, ConvertVector(cameraDir)); | 236 | warp_Vector lookat = warp_Vector.add(pos, ConvertVector(cameraDir)); |
237 | 237 | ||
238 | if (orto) | 238 | if (orto) |
239 | renderer.Scene.defaultCamera.setOrthographic(true, viewWitdh, viewHeigth); | 239 | renderer.Scene.defaultCamera.setOrthographic(true, viewWitdh, viewHeigtht); |
240 | else | 240 | else |
241 | renderer.Scene.defaultCamera.setFov(fov); | 241 | renderer.Scene.defaultCamera.setFov(fov); |
242 | 242 | ||