Esempio n. 1
0
        /// <summary>
        /// Initialize Variables
        /// </summary>
        private void Initialize(string fullPath)
        {
            string PINOCCHIO_BINARY_PATH = System.IO.Path.Combine(System.IO.Path.Combine(Directory.GetParent(Directory.GetParent(Directory.GetParent(Directory.GetParent(AppDomain.CurrentDomain.BaseDirectory).ToString()).ToString()).ToString()).ToString(), "AttachWeights"), "AttachWeightsWin.exe");
            Reinitialize(fullPath);

            if (animationConverter == null)
                animationConverter = new AnimationConverter();
            if (skeletonConverter == null)
                skeletonConverter = new SkeletonConverter();
            if (modelConverter == null)
                modelConverter = new ModelConverter();
            if (skeletonLiveConverter == null)
                skeletonLiveConverter = new SkeletonLiveConverter();

            PropertyChanged += CurrentModel3D_PropertyChanged;
        }
Esempio n. 2
0
        /// <summary>
        /// Initialize Variables
        /// </summary>
        private void Initialize()
        {
           bones = new Collection<Bone>();
           joints = new Collection<Joint>();
           content = new Model3DGroup();
           if (animationConverter == null)
                animationConverter = new AnimationConverter();
            if (skeletonConverter == null)
                skeletonConverter = new SkeletonConverter();
            if (modelConverter == null)
                modelConverter = new ModelConverter();
            if (skeletonLiveConverter == null)
                skeletonLiveConverter = new SkeletonLiveConverter();

            PropertyChanged += CurrentModel3D_PropertyChanged;
        }
Esempio n. 3
0
 private AnimationPlayer()
 {
     isPlaying = false;
     isEventRegister = false;
     skeletonConverter = new SkeletonConverter();
 }