Exemplo n.º 1
0
        public Vixen.Scene LoadFile(string pathname)
        {
            _name = Path.GetFileNameWithoutExtension(pathname);
            MaterialStreamProvider streamHelper = new MaterialStreamProvider(Path.GetDirectoryName(pathname));
            ObjLoader loader = Create(streamHelper);

            Vixen.Scene scene = loader.Load(streamHelper.Open(pathname));
            return(scene);
        }
Exemplo n.º 2
0
        public Vixen.Scene LoadStream(Stream instream, string name)
        {
            _name = name;

            MaterialStreamProvider streamHelper = new MaterialStreamProvider();
            ObjLoader loader = Create(streamHelper);

            Vixen.Scene scene = loader.Load(instream);
            return(scene);
        }