Merge branch 'master' of git://opensimulator.org/git/opensim
commit
593fc5c87a
|
@ -545,5 +545,10 @@ namespace OpenSim.Region.CoreModules.World.LegacyMap
|
||||||
|
|
||||||
return returnpt;
|
return returnpt;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Bitmap CreateViewImage(Vector3 camPos, Vector3 camDir, float fov, int width, int height)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -111,6 +111,19 @@ namespace OpenSim.Region.CoreModules.World.Warp3DMap
|
||||||
#region IMapImageGenerator Members
|
#region IMapImageGenerator Members
|
||||||
|
|
||||||
public Bitmap CreateMapTile()
|
public Bitmap CreateMapTile()
|
||||||
|
{
|
||||||
|
Vector3 camPos = new Vector3(127.5f, 127.5f, 221.7025033688163f);
|
||||||
|
Viewport viewport = new Viewport(camPos, -Vector3.UnitZ, 1024f, 0.1f, (int)Constants.RegionSize, (int)Constants.RegionSize, (float)Constants.RegionSize, (float)Constants.RegionSize);
|
||||||
|
return CreateMapTile(viewport);
|
||||||
|
}
|
||||||
|
|
||||||
|
public Bitmap CreateViewImage(Vector3 camPos, Vector3 camDir, float fov, int width, int height)
|
||||||
|
{
|
||||||
|
Viewport viewport = new Viewport(camPos, camDir, fov, (float)Constants.RegionSize, 0.1f, width, height);
|
||||||
|
return CreateMapTile(viewport);
|
||||||
|
}
|
||||||
|
|
||||||
|
public Bitmap CreateMapTile(Viewport viewport)
|
||||||
{
|
{
|
||||||
bool drawPrimVolume = true;
|
bool drawPrimVolume = true;
|
||||||
bool textureTerrain = true;
|
bool textureTerrain = true;
|
||||||
|
@ -128,9 +141,6 @@ namespace OpenSim.Region.CoreModules.World.Warp3DMap
|
||||||
|
|
||||||
m_colors.Clear();
|
m_colors.Clear();
|
||||||
|
|
||||||
Vector3 camPos = new Vector3(127.5f, 127.5f, 221.7025033688163f);
|
|
||||||
Viewport viewport = new Viewport(camPos, -Vector3.UnitZ, 1024f, 0.1f, (int)Constants.RegionSize, (int)Constants.RegionSize, (float)Constants.RegionSize, (float)Constants.RegionSize);
|
|
||||||
|
|
||||||
int width = viewport.Width;
|
int width = viewport.Width;
|
||||||
int height = viewport.Height;
|
int height = viewport.Height;
|
||||||
|
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
using OpenSim.Framework;
|
using OpenSim.Framework;
|
||||||
|
using OpenMetaverse;
|
||||||
|
|
||||||
namespace OpenSim.Region.Framework.Interfaces
|
namespace OpenSim.Region.Framework.Interfaces
|
||||||
{
|
{
|
||||||
|
@ -74,6 +75,7 @@ namespace OpenSim.Region.Framework.Interfaces
|
||||||
public interface IMapImageGenerator
|
public interface IMapImageGenerator
|
||||||
{
|
{
|
||||||
System.Drawing.Bitmap CreateMapTile();
|
System.Drawing.Bitmap CreateMapTile();
|
||||||
|
System.Drawing.Bitmap CreateViewImage(Vector3 camPos, Vector3 camDir, float fov, int width, int height);
|
||||||
byte[] WriteJpeg2000Image();
|
byte[] WriteJpeg2000Image();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue