Beispiel #1
0
        private ModelVisual3D GetSpaceStationBlip(SpaceStation spaceStation)
        {
            // Material
            MaterialGroup materials = new MaterialGroup();

            materials.Children.Add(new DiffuseMaterial(Brushes.White));
            materials.Children.Add(new SpecularMaterial(Brushes.White, 20d));

            // Geometry Model
            GeometryModel3D geometry = new GeometryModel3D();

            geometry.Material     = materials;
            geometry.BackMaterial = materials;
            geometry.Geometry     = GetBlipGeometry();
            geometry.Transform    = new ScaleTransform3D(7, 7, 2);

            // Model Visual
            ModelVisual3D retVal = new ModelVisual3D();

            retVal.Content   = geometry;
            retVal.Transform = new TranslateTransform3D(spaceStation.PositionWorld.ToVector());

            // Exit Function
            return(retVal);
        }
Beispiel #2
0
        private ModelVisual3D GetSpaceStationBlip(SpaceStation spaceStation)
        {
            // Material
            MaterialGroup materials = new MaterialGroup();
            materials.Children.Add(new DiffuseMaterial(Brushes.White));
            materials.Children.Add(new SpecularMaterial(Brushes.White, 20d));

            // Geometry Model
            GeometryModel3D geometry = new GeometryModel3D();
            geometry.Material = materials;
            geometry.BackMaterial = materials;
            geometry.Geometry = GetBlipGeometry();
            geometry.Transform = new ScaleTransform3D(7, 7, 2);

            // Model Visual
            ModelVisual3D retVal = new ModelVisual3D();
            retVal.Content = geometry;
            retVal.Transform = new TranslateTransform3D(spaceStation.PositionWorld.ToVector());

            // Exit Function
            return retVal;
        }