Exemple #1
0
 public CreateObjectCmd(PhysxPrim parent, string primName, OpenSim.Framework.PrimitiveBaseShape pbs, OpenMetaverse.Vector3 position,
     OpenMetaverse.Vector3 size, OpenMetaverse.Quaternion rotation, OpenMetaverse.Vector3 velocity, OpenMetaverse.Vector3 angularVelocity,
     float lod, PhysicsScene.AddPrimShapeFlags flags, Material material, byte[] serializedPhysicsProperties, byte[] serializedPhysicsShapes,
     ulong interpolateTime)
 {
     _parent = parent;
     _primName = primName;
     _pbs = pbs;
     _position = position;
     _size = size;
     _rotation = rotation;
     _velocity = velocity;
     _angularVelocity = angularVelocity;
     _lod = lod;
     _flags = flags;
     _material = material;
     _serializedPhysicsProperties = serializedPhysicsProperties;
     _serializedPhysicsShapes = serializedPhysicsShapes;
     _interpolateTime = interpolateTime;
 }
Exemple #2
0
 public CreateObjectCmd(PhysxPrim parent, string primName, OpenSim.Framework.PrimitiveBaseShape pbs, OpenMetaverse.Vector3 position,
                        OpenMetaverse.Vector3 size, OpenMetaverse.Quaternion rotation, OpenMetaverse.Vector3 velocity, OpenMetaverse.Vector3 angularVelocity,
                        float lod, PhysicsScene.AddPrimShapeFlags flags, Material material, byte[] serializedPhysicsProperties, byte[] serializedPhysicsShapes,
                        ulong interpolateTime)
 {
     _parent                      = parent;
     _primName                    = primName;
     _pbs                         = pbs;
     _position                    = position;
     _size                        = size;
     _rotation                    = rotation;
     _velocity                    = velocity;
     _angularVelocity             = angularVelocity;
     _lod                         = lod;
     _flags                       = flags;
     _material                    = material;
     _serializedPhysicsProperties = serializedPhysicsProperties;
     _serializedPhysicsShapes     = serializedPhysicsShapes;
     _interpolateTime             = interpolateTime;
 }
Exemple #3
0
        public static SceneObjectPart RandomSOP(string name, uint localId)
        {
            OpenSim.Framework.PrimitiveBaseShape shape = MockPrmitiveBaseShape();

            SceneObjectPart part = new SceneObjectPart(UUID.Zero, shape, new Vector3(1, 2, 3), new Quaternion(4, 5, 6, 7), Vector3.Zero, false);

            part.Name                    = name;
            part.Description             = "Desc";
            part.AngularVelocity         = SceneUtil.RandomVector();
            part.BaseMask                = 0x0876;
            part.Category                = 10;
            part.ClickAction             = 5;
            part.CollisionSound          = UUID.Random();
            part.CollisionSoundVolume    = 1.1f;
            part.CreationDate            = OpenSim.Framework.Util.UnixTimeSinceEpoch();
            part.CreatorID               = UUID.Random();
            part.EveryoneMask            = 0x0543;
            part.Flags                   = PrimFlags.CameraSource | PrimFlags.DieAtEdge;
            part.GroupID                 = UUID.Random();
            part.GroupMask               = 0x0210;
            part.LastOwnerID             = UUID.Random();
            part.LinkNum                 = 4;
            part.LocalId                 = localId;
            part.Material                = 0x1;
            part.MediaUrl                = "http://bam";
            part.NextOwnerMask           = 0x0234;
            part.CreatorID               = UUID.Random();
            part.ObjectFlags             = 10101;
            part.OwnerID                 = UUID.Random();
            part.OwnerMask               = 0x0567;
            part.OwnershipCost           = 5;
            part.ParentID                = 0202;
            part.ParticleSystem          = new byte[] { 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xA, 0xB, };
            part.PassTouches             = true;
            part.PhysicalAngularVelocity = SceneUtil.RandomVector();
            part.RegionHandle            = 1234567;
            part.RegionID                = UUID.Random();
            part.RotationOffset          = SceneUtil.RandomQuat();
            part.SalePrice               = 42;
            part.SavedAttachmentPoint    = 6;
            part.SavedAttachmentPos      = SceneUtil.RandomVector();
            part.SavedAttachmentRot      = SceneUtil.RandomQuat();
            part.ScriptAccessPin         = 87654;
            part.SerializedPhysicsData   = new byte[] { 0xA, 0xB, 0xC, 0xD, 0xE, 0x6, 0x7, 0x8, 0x9, 0xA, 0xB, };
            part.ServerWeight            = 3.0f;
            part.StreamingCost           = 2.0f;
            part.SitName                 = "Sitting";
            part.SitTargetOrientation    = SceneUtil.RandomQuat();
            part.SitTargetPosition       = SceneUtil.RandomVector();
            part.Sound                   = UUID.Random();
            part.SoundGain               = 3.4f;
            part.SoundOptions            = 9;
            part.SoundRadius             = 10.3f;
            part.Text                    = "Test";
            part.TextColor               = System.Drawing.Color.FromArgb(1, 2, 3, 4);
            part.TextureAnimation        = new byte[] { 0xA, 0xB, 0xC, 0xD, 0xE, 0x6, 0x7, 0x8, 0x9, 0xA, 0xB, 0xC, 0xD };
            part.TouchName               = "DoIt";
            part.UUID                    = UUID.Random();
            part.Velocity                = SceneUtil.RandomVector();
            part.FromItemID              = UUID.Random();

            return(part);
        }
Exemple #4
0
        public static OpenSim.Framework.PrimitiveBaseShape MockPrmitiveBaseShape()
        {
            var shape = new OpenSim.Framework.PrimitiveBaseShape();

            shape.ExtraParams    = new byte[] { 0xA, 0x9, 0x8, 0x7, 0x6, 0x5 };
            shape.FlexiDrag      = 0.3f;
            shape.FlexiEntry     = true;
            shape.FlexiForceX    = 1.0f;
            shape.FlexiForceY    = 2.0f;
            shape.FlexiForceZ    = 3.0f;
            shape.FlexiGravity   = 10.0f;
            shape.FlexiSoftness  = 1;
            shape.FlexiTension   = 999.4f;
            shape.FlexiWind      = 9292.33f;
            shape.HollowShape    = OpenSim.Framework.HollowShape.Square;
            shape.LightColorA    = 0.3f;
            shape.LightColorB    = 0.22f;
            shape.LightColorG    = 0.44f;
            shape.LightColorR    = 0.77f;
            shape.LightCutoff    = 0.4f;
            shape.LightEntry     = true;
            shape.LightFalloff   = 7474;
            shape.LightIntensity = 0.0f;
            shape.LightRadius    = 10.0f;
            shape.Media          = new OpenSim.Framework.PrimitiveBaseShape.PrimMedia();
            shape.Media.New(2);
            shape.Media[0] = new MediaEntry
            {
                AutoLoop              = true,
                AutoPlay              = true,
                AutoScale             = true,
                AutoZoom              = true,
                ControlPermissions    = MediaPermission.All,
                Controls              = MediaControls.Standard,
                CurrentURL            = "bam.com",
                EnableAlterntiveImage = true,
                EnableWhiteList       = false,
                Height  = 1,
                HomeURL = "anotherbam.com",
                InteractOnFirstClick = true,
                InteractPermissions  = MediaPermission.Group,
                WhiteList            = new string[] { "yo mamma" },
                Width = 5
            };
            shape.Media[1] = new MediaEntry
            {
                AutoLoop              = true,
                AutoPlay              = true,
                AutoScale             = true,
                AutoZoom              = true,
                ControlPermissions    = MediaPermission.All,
                Controls              = MediaControls.Standard,
                CurrentURL            = "kabam.com",
                EnableAlterntiveImage = true,
                EnableWhiteList       = true,
                Height  = 1,
                HomeURL = "anotherbam.com",
                InteractOnFirstClick = true,
                InteractPermissions  = MediaPermission.Group,
                WhiteList            = new string[] { "ur mamma" },
                Width = 5
            };

            shape.PathBegin             = 3;
            shape.PathCurve             = 127;
            shape.PathEnd               = 10;
            shape.PathRadiusOffset      = 127;
            shape.PathRevolutions       = 2;
            shape.PathScaleX            = 50;
            shape.PathScaleY            = 100;
            shape.PathShearX            = 33;
            shape.PathShearY            = 44;
            shape.PathSkew              = 126;
            shape.PathTaperX            = 110;
            shape.PathTaperY            = 66;
            shape.PathTwist             = 99;
            shape.PathTwistBegin        = 3;
            shape.PCode                 = 3;
            shape.PreferredPhysicsShape = PhysicsShapeType.Prim;
            shape.ProfileBegin          = 77;
            shape.ProfileCurve          = 5;
            shape.ProfileEnd            = 7;
            shape.ProfileHollow         = 9;
            shape.ProfileShape          = OpenSim.Framework.ProfileShape.IsometricTriangle;
            shape.ProjectionAmbiance    = 0.1f;
            shape.ProjectionEntry       = true;
            shape.ProjectionFocus       = 3.4f;
            shape.ProjectionFOV         = 4.0f;
            shape.ProjectionTextureUUID = UUID.Random();
            shape.Scale                 = SceneUtil.RandomVector();
            shape.SculptEntry           = true;
            shape.SculptTexture         = UUID.Random();
            shape.SculptType            = 40;
            shape.VertexCount           = 1;
            shape.HighLODBytes          = 2;
            shape.MidLODBytes           = 3;
            shape.LowLODBytes           = 4;
            shape.LowestLODBytes        = 5;
            return(shape);
        }
Exemple #5
0
        public static SceneObjectPart RandomSOP(string name, uint localId)
        {
            var shape = new OpenSim.Framework.PrimitiveBaseShape();
            shape.ExtraParams = new byte[] { 0xA, 0x9, 0x8, 0x7, 0x6, 0x5 };
            shape.FlexiDrag = 0.3f;
            shape.FlexiEntry = true;
            shape.FlexiForceX = 1.0f;
            shape.FlexiForceY = 2.0f;
            shape.FlexiForceZ = 3.0f;
            shape.FlexiGravity = 10.0f;
            shape.FlexiSoftness = 1;
            shape.FlexiTension = 999.4f;
            shape.FlexiWind = 9292.33f;
            shape.HollowShape = OpenSim.Framework.HollowShape.Square;
            shape.LightColorA = 0.3f;
            shape.LightColorB = 0.22f;
            shape.LightColorG = 0.44f;
            shape.LightColorR = 0.77f;
            shape.LightCutoff = 0.4f;
            shape.LightEntry = true;
            shape.LightFalloff = 7474;
            shape.LightIntensity = 0.0f;
            shape.LightRadius = 10.0f;
            shape.Media = new OpenSim.Framework.PrimitiveBaseShape.PrimMedia();
            shape.Media.New(2);
            shape.Media[0] = new MediaEntry
            {
                AutoLoop = true,
                AutoPlay = true,
                AutoScale = true,
                AutoZoom = true,
                ControlPermissions = MediaPermission.All,
                Controls = MediaControls.Standard,
                CurrentURL = "bam.com",
                EnableAlterntiveImage = true,
                EnableWhiteList = false,
                Height = 1,
                HomeURL = "anotherbam.com",
                InteractOnFirstClick = true,
                InteractPermissions = MediaPermission.Group,
                WhiteList = new string[] { "yo mamma" },
                Width = 5
            };
            shape.Media[1] = new MediaEntry
            {
                AutoLoop = true,
                AutoPlay = true,
                AutoScale = true,
                AutoZoom = true,
                ControlPermissions = MediaPermission.All,
                Controls = MediaControls.Standard,
                CurrentURL = "kabam.com",
                EnableAlterntiveImage = true,
                EnableWhiteList = true,
                Height = 1,
                HomeURL = "anotherbam.com",
                InteractOnFirstClick = true,
                InteractPermissions = MediaPermission.Group,
                WhiteList = new string[] { "ur mamma" },
                Width = 5
            };

            shape.PathBegin = 3;
            shape.PathCurve = 127;
            shape.PathEnd = 10;
            shape.PathRadiusOffset = 127;
            shape.PathRevolutions = 2;
            shape.PathScaleX = 50;
            shape.PathScaleY = 100;
            shape.PathShearX = 33;
            shape.PathShearY = 44;
            shape.PathSkew = 126;
            shape.PathTaperX = 110;
            shape.PathTaperY = 66;
            shape.PathTwist = 99;
            shape.PathTwistBegin = 3;
            shape.PCode = 3;
            shape.PreferredPhysicsShape = PhysicsShapeType.Prim;
            shape.ProfileBegin = 77;
            shape.ProfileCurve = 5;
            shape.ProfileEnd = 7;
            shape.ProfileHollow = 9;
            shape.ProfileShape = OpenSim.Framework.ProfileShape.IsometricTriangle;
            shape.ProjectionAmbiance = 0.1f;
            shape.ProjectionEntry = true;
            shape.ProjectionFocus = 3.4f;
            shape.ProjectionFOV = 4.0f;
            shape.ProjectionTextureUUID = UUID.Random();
            shape.Scale = Util.RandomVector();
            shape.SculptEntry = true;
            shape.SculptTexture = UUID.Random();
            shape.SculptType = 40;
            shape.VertexCount = 1;
            shape.HighLODBytes = 2;
            shape.MidLODBytes = 3;
            shape.LowLODBytes = 4;
            shape.LowestLODBytes = 5;

            SceneObjectPart part = new SceneObjectPart(UUID.Zero, shape, new Vector3(1, 2, 3), new Quaternion(4, 5, 6, 7), Vector3.Zero, false);
            part.Name = name;
            part.Description = "Desc";
            part.AngularVelocity = Util.RandomVector();
            part.BaseMask = 0x0876;
            part.Category = 10;
            part.ClickAction = 5;
            part.CollisionSound = UUID.Random();
            part.CollisionSoundVolume = 1.1f;
            part.CreationDate = OpenSim.Framework.Util.UnixTimeSinceEpoch();
            part.CreatorID = UUID.Random();
            part.EveryoneMask = 0x0543;
            part.Flags = PrimFlags.CameraSource | PrimFlags.DieAtEdge;
            part.GroupID = UUID.Random();
            part.GroupMask = 0x0210;
            part.LastOwnerID = UUID.Random();
            part.LinkNum = 4;
            part.LocalId = localId;
            part.Material = 0x1;
            part.MediaUrl = "http://bam";
            part.NextOwnerMask = 0x0234;
            part.CreatorID = UUID.Random();
            part.ObjectFlags = 10101;
            part.OwnerID = UUID.Random();
            part.OwnerMask = 0x0567;
            part.OwnershipCost = 5;
            part.ParentID = 0202;
            part.ParticleSystem = new byte[] { 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xA, 0xB, };
            part.PassTouches = true;
            part.PhysicalAngularVelocity = Util.RandomVector();
            part.RegionHandle = 1234567;
            part.RegionID = UUID.Random();
            part.RotationOffset = Util.RandomQuat();
            part.SalePrice = 42;
            part.SavedAttachmentPoint = 6;
            part.SavedAttachmentPos = Util.RandomVector();
            part.SavedAttachmentRot = Util.RandomQuat();
            part.ScriptAccessPin = 87654;
            part.SerializedPhysicsData = new byte[] { 0xA, 0xB, 0xC, 0xD, 0xE, 0x6, 0x7, 0x8, 0x9, 0xA, 0xB, };
            part.ServerWeight = 3.0f;
            part.StreamingCost = 2.0f;
            part.SitName = "Sitting";
            part.Sound = UUID.Random();
            part.SoundGain = 3.4f;
            part.SoundOptions = 9;
            part.SoundRadius = 10.3f;
            part.Text = "Test";
            part.TextColor = System.Drawing.Color.FromArgb(1, 2, 3, 4);
            part.TextureAnimation = new byte[] { 0xA, 0xB, 0xC, 0xD, 0xE, 0x6, 0x7, 0x8, 0x9, 0xA, 0xB, 0xC, 0xD };
            part.TouchName = "DoIt";
            part.UUID = UUID.Random();
            part.Velocity = Util.RandomVector();
            part.FromItemID = UUID.Random();

            part.SetSitTarget(Util.RandomVector(), Util.RandomQuat());

            return part;
        }
Exemple #6
0
        public static SceneObjectPart RandomSOP(string name, uint localId)
        {
            var shape = new OpenSim.Framework.PrimitiveBaseShape();

            shape.ExtraParams    = new byte[] { 0xA, 0x9, 0x8, 0x7, 0x6, 0x5 };
            shape.FlexiDrag      = 0.3f;
            shape.FlexiEntry     = true;
            shape.FlexiForceX    = 1.0f;
            shape.FlexiForceY    = 2.0f;
            shape.FlexiForceZ    = 3.0f;
            shape.FlexiGravity   = 10.0f;
            shape.FlexiSoftness  = 1;
            shape.FlexiTension   = 999.4f;
            shape.FlexiWind      = 9292.33f;
            shape.HollowShape    = OpenSim.Framework.HollowShape.Square;
            shape.LightColorA    = 0.3f;
            shape.LightColorB    = 0.22f;
            shape.LightColorG    = 0.44f;
            shape.LightColorR    = 0.77f;
            shape.LightCutoff    = 0.4f;
            shape.LightEntry     = true;
            shape.LightFalloff   = 7474;
            shape.LightIntensity = 0.0f;
            shape.LightRadius    = 10.0f;
            shape.Media          = new OpenSim.Framework.PrimitiveBaseShape.PrimMedia();
            shape.Media.New(2);
            shape.Media[0] = new MediaEntry
            {
                AutoLoop              = true,
                AutoPlay              = true,
                AutoScale             = true,
                AutoZoom              = true,
                ControlPermissions    = MediaPermission.All,
                Controls              = MediaControls.Standard,
                CurrentURL            = "bam.com",
                EnableAlterntiveImage = true,
                EnableWhiteList       = false,
                Height  = 1,
                HomeURL = "anotherbam.com",
                InteractOnFirstClick = true,
                InteractPermissions  = MediaPermission.Group,
                WhiteList            = new string[] { "yo mamma" },
                Width = 5
            };
            shape.Media[1] = new MediaEntry
            {
                AutoLoop              = true,
                AutoPlay              = true,
                AutoScale             = true,
                AutoZoom              = true,
                ControlPermissions    = MediaPermission.All,
                Controls              = MediaControls.Standard,
                CurrentURL            = "kabam.com",
                EnableAlterntiveImage = true,
                EnableWhiteList       = true,
                Height  = 1,
                HomeURL = "anotherbam.com",
                InteractOnFirstClick = true,
                InteractPermissions  = MediaPermission.Group,
                WhiteList            = new string[] { "ur mamma" },
                Width = 5
            };

            shape.PathBegin             = 3;
            shape.PathCurve             = 127;
            shape.PathEnd               = 10;
            shape.PathRadiusOffset      = 127;
            shape.PathRevolutions       = 2;
            shape.PathScaleX            = 50;
            shape.PathScaleY            = 100;
            shape.PathShearX            = 33;
            shape.PathShearY            = 44;
            shape.PathSkew              = 126;
            shape.PathTaperX            = 110;
            shape.PathTaperY            = 66;
            shape.PathTwist             = 99;
            shape.PathTwistBegin        = 3;
            shape.PCode                 = 3;
            shape.PreferredPhysicsShape = PhysicsShapeType.Prim;
            shape.ProfileBegin          = 77;
            shape.ProfileCurve          = 5;
            shape.ProfileEnd            = 7;
            shape.ProfileHollow         = 9;
            shape.ProfileShape          = OpenSim.Framework.ProfileShape.IsometricTriangle;
            shape.ProjectionAmbiance    = 0.1f;
            shape.ProjectionEntry       = true;
            shape.ProjectionFocus       = 3.4f;
            shape.ProjectionFOV         = 4.0f;
            shape.ProjectionTextureUUID = UUID.Random();
            shape.Scale                 = Util.RandomVector();
            shape.SculptEntry           = true;
            shape.SculptTexture         = UUID.Random();
            shape.SculptType            = 40;
            shape.VertexCount           = 1;
            shape.HighLODBytes          = 2;
            shape.MidLODBytes           = 3;
            shape.LowLODBytes           = 4;
            shape.LowestLODBytes        = 5;

            SceneObjectPart part = new SceneObjectPart(UUID.Zero, shape, new Vector3(1, 2, 3), new Quaternion(4, 5, 6, 7), Vector3.Zero, false);

            part.Name                    = name;
            part.Description             = "Desc";
            part.AngularVelocity         = Util.RandomVector();
            part.BaseMask                = 0x0876;
            part.Category                = 10;
            part.ClickAction             = 5;
            part.CollisionSound          = UUID.Random();
            part.CollisionSoundVolume    = 1.1f;
            part.CreationDate            = OpenSim.Framework.Util.UnixTimeSinceEpoch();
            part.CreatorID               = UUID.Random();
            part.EveryoneMask            = 0x0543;
            part.Flags                   = PrimFlags.CameraSource | PrimFlags.DieAtEdge;
            part.GroupID                 = UUID.Random();
            part.GroupMask               = 0x0210;
            part.LastOwnerID             = UUID.Random();
            part.LinkNum                 = 4;
            part.LocalId                 = localId;
            part.Material                = 0x1;
            part.MediaUrl                = "http://bam";
            part.NextOwnerMask           = 0x0234;
            part.CreatorID               = UUID.Random();
            part.ObjectFlags             = 10101;
            part.OwnerID                 = UUID.Random();
            part.OwnerMask               = 0x0567;
            part.OwnershipCost           = 5;
            part.ParentID                = 0202;
            part.ParticleSystem          = new byte[] { 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xA, 0xB, };
            part.PassTouches             = true;
            part.PhysicalAngularVelocity = Util.RandomVector();
            part.RegionHandle            = 1234567;
            part.RegionID                = UUID.Random();
            part.RotationOffset          = Util.RandomQuat();
            part.SalePrice               = 42;
            part.SavedAttachmentPoint    = 6;
            part.SavedAttachmentPos      = Util.RandomVector();
            part.SavedAttachmentRot      = Util.RandomQuat();
            part.ScriptAccessPin         = 87654;
            part.SerializedPhysicsData   = new byte[] { 0xA, 0xB, 0xC, 0xD, 0xE, 0x6, 0x7, 0x8, 0x9, 0xA, 0xB, };
            part.ServerWeight            = 3.0f;
            part.StreamingCost           = 2.0f;
            part.SitName                 = "Sitting";
            part.Sound                   = UUID.Random();
            part.SoundGain               = 3.4f;
            part.SoundOptions            = 9;
            part.SoundRadius             = 10.3f;
            part.Text                    = "Test";
            part.TextureAnimation        = new byte[] { 0xA, 0xB, 0xC, 0xD, 0xE, 0x6, 0x7, 0x8, 0x9, 0xA, 0xB, 0xC, 0xD };
            part.TouchName               = "DoIt";
            part.UUID                    = UUID.Random();
            part.Velocity                = Util.RandomVector();
            part.FromItemID              = UUID.Random();

            part.SetSitTarget(false, Util.RandomVector(), Util.RandomQuat(), false);

            return(part);
        }
Exemple #7
0
        public static OpenSim.Framework.PrimitiveBaseShape MockPrmitiveBaseShape()
        {
            var shape = new OpenSim.Framework.PrimitiveBaseShape();
            shape.ExtraParams = new byte[] { 0xA, 0x9, 0x8, 0x7, 0x6, 0x5 };
            shape.FlexiDrag = 0.3f;
            shape.FlexiEntry = true;
            shape.FlexiForceX = 1.0f;
            shape.FlexiForceY = 2.0f;
            shape.FlexiForceZ = 3.0f;
            shape.FlexiGravity = 10.0f;
            shape.FlexiSoftness = 1;
            shape.FlexiTension = 999.4f;
            shape.FlexiWind = 9292.33f;
            shape.HollowShape = OpenSim.Framework.HollowShape.Square;
            shape.LightColorA = 0.3f;
            shape.LightColorB = 0.22f;
            shape.LightColorG = 0.44f;
            shape.LightColorR = 0.77f;
            shape.LightCutoff = 0.4f;
            shape.LightEntry = true;
            shape.LightFalloff = 7474;
            shape.LightIntensity = 0.0f;
            shape.LightRadius = 10.0f;
            shape.Media = new OpenSim.Framework.PrimitiveBaseShape.PrimMedia();
            shape.Media.New(2);
            shape.Media[0] = new MediaEntry
            {
                AutoLoop = true,
                AutoPlay = true,
                AutoScale = true,
                AutoZoom = true,
                ControlPermissions = MediaPermission.All,
                Controls = MediaControls.Standard,
                CurrentURL = "bam.com",
                EnableAlterntiveImage = true,
                EnableWhiteList = false,
                Height = 1,
                HomeURL = "anotherbam.com",
                InteractOnFirstClick = true,
                InteractPermissions = MediaPermission.Group,
                WhiteList = new string[] { "yo mamma" },
                Width = 5
            };
            shape.Media[1] = new MediaEntry
            {
                AutoLoop = true,
                AutoPlay = true,
                AutoScale = true,
                AutoZoom = true,
                ControlPermissions = MediaPermission.All,
                Controls = MediaControls.Standard,
                CurrentURL = "kabam.com",
                EnableAlterntiveImage = true,
                EnableWhiteList = true,
                Height = 1,
                HomeURL = "anotherbam.com",
                InteractOnFirstClick = true,
                InteractPermissions = MediaPermission.Group,
                WhiteList = new string[] { "ur mamma" },
                Width = 5
            };

            shape.PathBegin = 3;
            shape.PathCurve = 127;
            shape.PathEnd = 10;
            shape.PathRadiusOffset = 127;
            shape.PathRevolutions = 2;
            shape.PathScaleX = 50;
            shape.PathScaleY = 100;
            shape.PathShearX = 33;
            shape.PathShearY = 44;
            shape.PathSkew = 126;
            shape.PathTaperX = 110;
            shape.PathTaperY = 66;
            shape.PathTwist = 99;
            shape.PathTwistBegin = 3;
            shape.PCode = 3;
            shape.PreferredPhysicsShape = PhysicsShapeType.Prim;
            shape.ProfileBegin = 77;
            shape.ProfileCurve = 5;
            shape.ProfileEnd = 7;
            shape.ProfileHollow = 9;
            shape.ProfileShape = OpenSim.Framework.ProfileShape.IsometricTriangle;
            shape.ProjectionAmbiance = 0.1f;
            shape.ProjectionEntry = true;
            shape.ProjectionFocus = 3.4f;
            shape.ProjectionFOV = 4.0f;
            shape.ProjectionTextureUUID = UUID.Random();
            shape.Scale = SceneUtil.RandomVector();
            shape.SculptEntry = true;
            shape.SculptTexture = UUID.Random();
            shape.SculptType = 40;
            shape.VertexCount = 1;
            shape.HighLODBytes = 2;
            shape.MidLODBytes = 3;
            shape.LowLODBytes = 4;
            shape.LowestLODBytes = 5;
            return shape;
        }