Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: HELP TV3D TVActor BindToActor !!  (Read 3053 times)
Oseres
Community Member
*
Posts: 1


« on: May 06, 2011, 11:07:01 AM »

I apologize for my English and writing through a translator you can not properly understand me .. in Russia there is no forum for your engine and you're my last hope ..

I completely revised the entire forum as a problem with the connection of the two TVActor has not decided. Tell me how to do this, can anyone realties have examples of how to append clothes for a girl or a man. I even tried prisodenyat through every bone but they do not connect to each other.
 Avatar = new TVActor();
            Avatar = Scene.CreateActor("Avatar");
            Avatar.LoadXFile("man.x", true, true);

            int Avatar_Spine = Avatar.GetBoneID("Bip01_Spine");
            int Avatar_Spine1 = Avatar.GetBoneID("Bip01_Spine1");
            int Avatar_Spine2 = Avatar.GetBoneID("Bip01_Spine2");
            int Avatar_Spine3 = Avatar.GetBoneID("Bip01_Spine3");
            int Avatar_Neck = Avatar.GetBoneID("Bip01_Neck");
            int Avatar_L_Clavicle = Avatar.GetBoneID("Bip01_L_Clavicle");
            int Avatar_L_UpperArm = Avatar.GetBoneID("Bip01_L_UpperArm");
            int Avatar_L_Forearm = Avatar.GetBoneID("Bip01_L_Forearm");
            int Avatar_R_Clavicle = Avatar.GetBoneID("Bip01_R_Clavicle");
            int Avatar_R_UpperArm = Avatar.GetBoneID("Bip01_R_UpperArm");
            int Avatar_R_Forearm = Avatar.GetBoneID("Bip01_R_Forearm");

            Vneck = new TVActor();
            Vneck = Scene.CreateActor("Vneck");         
            Vneck.LoadTVA("vneck.tva", true, true);

            int Vneck_Spine1 = Vneck.GetBoneID("Bip01_Spine1");
            int Vneck_Spine2 = Vneck.GetBoneID("Bip01_Spine2");
            int Vneck_Spine3 = Vneck.GetBoneID("Bip01_Spine3");
            int Vneck_Neck = Vneck.GetBoneID("Bip01_Neck");
            int Vneck_L_Clavicle = Vneck.GetBoneID("Bip01_L_Clavicle");
            int Vneck_L_UpperArm = Vneck.GetBoneID("Bip01_L_UpperArm");
            int Vneck_L_Forearm = Vneck.GetBoneID("Bip01_L_Forearm");
            int Vneck_R_Clavicle = Vneck.GetBoneID("Bip01_R_Clavicle");
            int Vneck_R_UpperArm = Vneck.GetBoneID("Bip01_R_UpperArm");
            int Vneck_R_Forearm = Vneck.GetBoneID("Bip01_R_Forearm");


            Vneck.SetBoneGlobalMatrix(Vneck_Spine1, Avatar.GetBoneMatrix(Avatar_Spine1, true));
            Vneck.SetBoneGlobalMatrix(Vneck_Spine2, Avatar.GetBoneMatrix(Avatar_Spine2, false));
            Vneck.SetBoneGlobalMatrix(Vneck_Spine3, Avatar.GetBoneMatrix(Avatar_Spine3, false));

            Vneck.SetBoneGlobalMatrix(Vneck_Neck, Avatar.GetBoneMatrix(Avatar_Neck, false));

            Vneck.SetBoneGlobalMatrix(Vneck_L_Clavicle, Avatar.GetBoneMatrix(Avatar_L_Clavicle, false));
            Vneck.SetBoneGlobalMatrix(Vneck_L_UpperArm, Avatar.GetBoneMatrix(Avatar_L_UpperArm, false));
            Vneck.SetBoneGlobalMatrix(Vneck_L_Forearm, Avatar.GetBoneMatrix(Avatar_L_Forearm, false));

            Vneck.SetBoneGlobalMatrix(Vneck_R_Clavicle, Avatar.GetBoneMatrix(Avatar_R_Clavicle, false));
            Vneck.SetBoneGlobalMatrix(Vneck_R_UpperArm, Avatar.GetBoneMatrix(Avatar_R_UpperArm, false));
            Vneck.SetBoneGlobalMatrix(Vneck_R_Forearm, Avatar.GetBoneMatrix(Avatar_R_Forearm, false));


or

 Vneck.BindToActor(Avatar);


http://imageshost.ru/photo/1419929/id594921.html

Help me pleace ...
« Last Edit: May 06, 2011, 11:21:01 AM by Oseres » Logged
Revonex
Community Member
*
Posts: 29

Spectrum Softlab


« Reply #1 on: June 15, 2012, 10:01:55 AM »

gandi baat!
Logged

Current Project : Death for Sale
Blend of FPS,TPS,Vehicle Simulation and Fight

Syed Nabeel Ali
+923024260847
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks