public Bitmap CreateViewTileImage(int size)
        {
            int start = Environment.TickCount;
            var renderer = new WarpTileRenderer();

             MainConsole.Instance.InfoFormat("[MapTileGenerator]: Generating world maptile for {0}",
                        m_scene.RegionInfo.RegionName);
            renderer.Initialise(m_scene, m_config);
            Bitmap worldMap = renderer.TerrainToBitmap (null, size);

            MainConsole.Instance.InfoFormat("[MapTileGenerator]: World maptile generation took {0} ms",
                (Environment.TickCount - start));

            return worldMap;
        }
        public Bitmap CreateViewImage(Vector3 camPos, Vector3 camDir, float fov, int width, int height, bool useTextures)
        {
            int start = Environment.TickCount;
            var renderer = new WarpTileRenderer();

            MainConsole.Instance.InfoFormat ("[MapTileGenerator]: Generating worldview for {0}",
                m_scene.RegionInfo.RegionName);

            renderer.Initialise(m_scene, m_config);
            Bitmap worldView = renderer.CreateViewImage (camPos, camDir, fov, width, height, useTextures);

            MainConsole.Instance.InfoFormat("[MapTileGenerator]: Worldview generation took {0} ms",
                (Environment.TickCount - start));

            return worldView;
        }