Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Akow, 1 invisible), 1,423 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How can a character's Head look at a player ? #78735
06/20/06 18:30
06/20/06 18:30
Joined: Feb 2005
Posts: 63
Germany,
L
Logimator Offline OP
Junior Member
Logimator  Offline OP
Junior Member
L

Joined: Feb 2005
Posts: 63
Germany,
Hello friends,

i just want a human model's Head follow another walking character, so it's looking on (like Valve did it e.g. in Half Live 2). Of course i can create a corresonding bone-animation, but it's not working in this case, because the position of the moving character is dynamically.

Does anyone know, how i can "animate" the head to look onto the character with a smooth animation like ent_animate ?

Thanks for help

Re: How can a character's Head look at a player ? [Re: Logimator] #78736
06/21/06 17:49
06/21/06 17:49
Joined: Jul 2004
Posts: 311
Aaron Offline
Senior Member
Aaron  Offline
Senior Member

Joined: Jul 2004
Posts: 311
well first off you need to animate the player model's head, animaions making th head look right to all the way to the left and name these slides, in the scripting you need to script it so that when the player or enemy is in a certain range from each other that it will pick up the head animation so it's a mix of detection and animation, basicly the control of the animation so he would look that the entity.

Re: How can a character's Head look at a player ? [Re: Aaron] #78737
06/22/06 17:46
06/22/06 17:46
Joined: Feb 2005
Posts: 63
Germany,
L
Logimator Offline OP
Junior Member
Logimator  Offline OP
Junior Member
L

Joined: Feb 2005
Posts: 63
Germany,
Thanks Aaron, but this is not working, because an animation created with bones is fixed. But i dont have an idea, about where the model is looking. The position of the other characters is changing randomly. So i need an animation, which has different (changing) target-positions. I can do this by manually changing the bones itself, but then the Change in position is not interpolated, so, there's no animation

Is there a solution outside ?

Re: How can a character's Head look at a player ? [Re: Logimator] #78738
06/22/06 23:45
06/22/06 23:45
Joined: Sep 2002
Posts: 8,177
Netherlands
PHeMoX Offline
Senior Expert
PHeMoX  Offline
Senior Expert

Joined: Sep 2002
Posts: 8,177
Netherlands
The easy way but slightly ugly way: Just make the head as a seperate model and attach it to your model and simply rotate to look at the enemies ...

The slightly more difficult way: Animate with bones and change the percentage of the animation according to where the enemy is. Since humans are no owls you have to limit the turning of the head anyways, so it doesn't need to be perfect.

Cheers


PHeMoX, Innervision Software (c) 1995-2008

For more info visit: Innervision Software
Re: How can a character's Head look at a player ? [Re: PHeMoX] #78739
06/23/06 05:27
06/23/06 05:27
Joined: Aug 2005
Posts: 1,558
HK
V
vlau Offline
Serious User
vlau  Offline
Serious User
V

Joined: Aug 2005
Posts: 1,558
HK
And there is a tutorial, workshop 23 : "The bone collector"
in c-script tutorial 1..25, download it from the download page.

Re: How can a character's Head look at a player ? [Re: Logimator] #78740
06/23/06 07:15
06/23/06 07:15
Joined: Aug 2000
Posts: 7,490
O
Orange Brat Offline

Senior Expert
Orange Brat  Offline

Senior Expert
O

Joined: Aug 2000
Posts: 7,490


My User Contributions master list - my initial post links are down but scroll down page to find list to active links
Re: How can a character's Head look at a player ? [Re: Orange Brat] #78741
07/07/06 16:46
07/07/06 16:46
Joined: Feb 2005
Posts: 63
Germany,
L
Logimator Offline OP
Junior Member
Logimator  Offline OP
Junior Member
L

Joined: Feb 2005
Posts: 63
Germany,
Thanks Friends, the Tip with the bone-collector was great (helped much for understanding), and the post from Orange-Brat did it finally.

Thanks to all, who helped


Moderated by  HeelX, rvL_eXile 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1