Beispiel #1
0
        public override void Read()
        {
            LocalTurn  = Help.IOHelp.ReadMatrix();
            LocalPos   = Help.IOHelp.ReadVec3();
            LocalScale = Help.IOHelp.ReadVec3();
            Name       = Help.IOHelp.ReadString();

            AlwaysAlpha = Help.IOHelp.ReadBool();
            On          = Help.IOHelp.ReadBool();

            int mc = Help.IOHelp.ReadInt();

            for (int m = 0; m < mc; m++)
            {
                Mesh3D msh = new Mesh3D();
                msh.Read();
                //Meshes.Add ( msh );
                AddMesh(msh);
            }
            ReadScripts();
            SetMultiPass();
        }
Beispiel #2
0
        public void Read( )
        {
            int ns1 = Help.IOHelp.ReadInt();

            for (int i = 0; i < ns1; i++)
            {
                Script.ScriptLink sb = new Script.ScriptLink
                {
                    Name     = Help.IOHelp.ReadString( ),
                    FilePath = Help.IOHelp.ReadString( )
                };
                Scripts.Add(sb);
            }
            LocalTurn   = Help.IOHelp.ReadMatrix( );
            LocalPos    = Help.IOHelp.ReadVec3( );
            LocalScale  = Help.IOHelp.ReadVec3( );
            Name        = Help.IOHelp.ReadString( );
            AlwaysAlpha = Help.IOHelp.ReadBool( );
            On          = Help.IOHelp.ReadBool( );
            int ns = Help.IOHelp.ReadInt();
            int mc = Help.IOHelp.ReadInt();

            for (int m = 0; m < mc; m++)
            {
                Mesh3D msh = new Mesh3D();
                msh.Read( );
                Meshes.Add(msh);
            }
            for (int i = 0; i < ns; i++)
            {
                Entity3D gn = new Entity3D();
                Sub.Add(gn);
                gn.Top = this;
                gn.Read( );
            }
            SetMultiPass( );
        }