1 registered members (AndrewAMD),
684
guests, and 5
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Vertex + Bone Animation
[Re: draculaFactory]
#266966
05/21/09 05:19
05/21/09 05:19
|
Joined: Apr 2009
Posts: 298 Southern Oceans
KiwiBoy
Member
|
Member
Joined: Apr 2009
Posts: 298
Southern Oceans
|
Hi, you need to animate via script with something like this, if (key_a ==1)&&(key_w-key_s == 0)//Stationary turning
{
ent_bonerotate(my,"wheelFL",vector(0,key_a - key_d* 15 * time,0));
ent_bonerotate(my,"wheelBL",vector(0,key_a - key_d* 15 * time,0));
ent_bonerotate(my,"wheelFR",vector(0,key_d - key_a* 15 * time,0));
ent_bonerotate(my,"wheelBR",vector(0,key_d - key_a* 15 * time,0));
}
if (key_d ==1)&&(key_w-key_s == 0)
{
ent_bonerotate(my,"wheelFL",vector(0,key_a - key_d* 15* time,0));
ent_bonerotate(my,"wheelBL",vector(0,key_a - key_d* 15* time,0));
ent_bonerotate(my,"wheelFR",vector(0,key_d - key_a* 15* time,0));
ent_bonerotate(my,"wheelBR",vector(0,key_d - key_a* 15* time,0));
} Where the id file name "wheelFR" is object manipulated.
Use the 'manual' Luke, the manual is your friend. 'Self reminder' My WebPage
|
|
|
Re: Vertex + Bone Animation
[Re: KiwiBoy]
#266967
05/21/09 05:38
05/21/09 05:38
|
Joined: Feb 2005
Posts: 647 Williamsburg, VA USA
draculaFactory
OP
User
|
OP
User
Joined: Feb 2005
Posts: 647
Williamsburg, VA USA
|
Thank you, but this solution is not what I was looking for. I thought I explained it good, I don't need code to animate bones, I know how to do it great. What I need is to know how to combine vertex and bone animation through script so that my character can animate using the regular vertex animation while I rotate the bone seperately. The result could be like a character walking forward while the bone controlling the head rotates to face the mouse. I know how to script everything else, I just need to know how to allow vertex animation to play while the bone rotates through code.
Making dreams come true... And being erroneously accused of software piracy by Conitec in the process.
|
|
|
Re: Vertex + Bone Animation
[Re: Pappenheimer]
#268580
05/30/09 03:59
05/30/09 03:59
|
Joined: Oct 2002
Posts: 2,256 Oz
Locoweed
Expert
|
Expert
Joined: Oct 2002
Posts: 2,256
Oz
|
I don't think that is possible, sorry.
First, you have to have the bone weighted to the mesh for the mesh to turn with bone. Secondly, unless the bone is at the same position during the entire vertex animation, it isn't going to move anywhere with the model's vertex animation.
I just don't see it happening.
Now, for a non-animated model like a spaceship, you could place a bone on top of it, and then place and rotate another seperate model, like a turrent model on that bone. That you can do.
Loco
Professional A8.30 Spoils of War - East Coast Games
|
|
|
Re: Vertex + Bone Animation
[Re: Locoweed]
#268581
05/30/09 04:02
05/30/09 04:02
|
Joined: Feb 2005
Posts: 647 Williamsburg, VA USA
draculaFactory
OP
User
|
OP
User
Joined: Feb 2005
Posts: 647
Williamsburg, VA USA
|
Thanks for the reply, but I *have* done this before, the manual actually says you can. I just dont remember how I did it a long time ago. The bone is weighted to the mesh and does in fact work, I just wanted to be able to get the head to turn to face the mouse while a vertex animation is running.
Making dreams come true... And being erroneously accused of software piracy by Conitec in the process.
|
|
|
Re: Vertex + Bone Animation
[Re: draculaFactory]
#268583
05/30/09 04:10
05/30/09 04:10
|
Joined: Oct 2002
Posts: 2,256 Oz
Locoweed
Expert
|
Expert
Joined: Oct 2002
Posts: 2,256
Oz
|
I can't think of anyway to do it. Wish you luck.
Professional A8.30 Spoils of War - East Coast Games
|
|
|
Re: Vertex + Bone Animation
[Re: KiwiBoy]
#268588
05/30/09 04:37
05/30/09 04:37
|
Joined: Oct 2002
Posts: 2,256 Oz
Locoweed
Expert
|
Expert
Joined: Oct 2002
Posts: 2,256
Oz
|
So while player is happily running off to the war,
Lol.
Professional A8.30 Spoils of War - East Coast Games
|
|
|
|