* maptile - just flatten it.. we'll worry about projection later..

0.6.0-stable
Teravus Ovares 2008-08-18 10:58:54 +00:00
parent 2ef4ccf89e
commit eaeed632e0
1 changed files with 7 additions and 4 deletions

View File

@ -712,10 +712,13 @@ namespace OpenSim.Region.Environment.Modules.World.WorldMap
{ {
Point returnpt = new Point(); Point returnpt = new Point();
//originpos = point3d; //originpos = point3d;
Vector3 topos = new Vector3(255, 255, 255);//(originpos.x * 256) / originpos.x); //int d = (int)(256f / 1.5f);
float z = -point3d.z - topos.z;
returnpt.X = (int)((topos.x - point3d.x) / z * 255) + 255; //Vector3 topos = new Vector3(0, 0, 0);
returnpt.Y = (int)(255 - (((topos.y - point3d.y) / z * 255) + 255)); // float z = -point3d.z - topos.z;
returnpt.X = (int)point3d.x;//(int)((topos.x - point3d.x) / z * d);
returnpt.Y = (int)(255 - point3d.y);//(int)(255 - (((topos.y - point3d.y) / z * d)));
return returnpt; return returnpt;