Exemplo n.º 1
0
 public void loadMogreResourceLocation(MogreApp app)
 {
     foreach (MogreLocation l in mogreLocations)
     {
         Mogre.ResourceGroupManager.Singleton.AddResourceLocation(l.Name, l.Type, l.Group);
     }
 }
Exemplo n.º 2
0
        private void SetupMogre()
        {
            Vector3 position;
            Vector3 lookAt;
            Vector4 backGroundColor;
            int     viewDistance;

            if (prj.CameraPosition == null)
            {
                position = new Vector3(0, 0, 0);
            }
            else
            {
                position = prj.CameraPosition;
            }
            if (prj.LookAt == null)
            {
                lookAt = new Vector3(0, 0, 0);
            }
            else
            {
                lookAt = prj.LookAt;
            }
            if (prj.getBackGroundColor() == null)
            {
                backGroundColor = new Vector4(0, 0, 0, 0);
            }
            else
            {
                backGroundColor = prj.getBackGroundColor();
            }

            viewDistance = prj.ViewDistance;
            app          = new osgGISProjects.MogreApp(position, lookAt, backGroundColor, viewDistance, prj.getBackGroundMaterial());
            //prj.loadMogreResourceLocation(app);
        }
Exemplo n.º 3
0
 public void loadMogreResourceLocation(MogreApp app)
 {
     foreach (MogreLocation l in mogreLocations)
     {
         Mogre.ResourceGroupManager.Singleton.AddResourceLocation(l.Name, l.Type, l.Group);
     }
 }
Exemplo n.º 4
0
        private void SetupMogre()
        {
            Vector3 position;
            Vector3 lookAt;
            Vector4 backGroundColor;
            int viewDistance;

            if (prj.CameraPosition == null)
            {
                position = new Vector3(0, 0, 0);
            }
            else
            {
                position = prj.CameraPosition;
            }
            if (prj.LookAt == null)
            {
                lookAt = new Vector3(0, 0, 0);
            }
            else
            {
                lookAt = prj.LookAt;
            }
            if (prj.getBackGroundColor() == null)
            {
                backGroundColor = new Vector4(0, 0, 0, 0);
            }
            else
            {
                backGroundColor = prj.getBackGroundColor();
            }

            viewDistance = prj.ViewDistance;
            app = new osgGISProjects.MogreApp(position, lookAt, backGroundColor, viewDistance, prj.getBackGroundMaterial());
            //prj.loadMogreResourceLocation(app);
        }