Gamestudio Links
Zorro Links
Newest Posts
New Zorro version 1.83
by jcl
Today at 16:24
Unfreed in -diag
by 3run
Today at 10:30
About STRING* and char
by 20BN
Today at 09:40
I need help
by evangelos
Today at 02:37
Draw stuff from other thread
by Superku
Yesterday at 22:00
Optimize Stop with multi Asset strategy
by Dalla
Yesterday at 21:48
cloth ?
by 3run
Yesterday at 20:48
AUM Magazine
Latest Screens
Evonet Beta v1.0 : Online Project Development Template
Lake scene
Forgotten Tales - Demo version
RPG PARTY
Who's Online
16 registered (easyX, 3run, AndrewAMD, alibaba, FirasTaji, jenGs, 5 invisible), 492 Guests and 3 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
FirasTaji, zentrader, Fenry, DJ_Algo, tang
18005 Registered Users
Topic Options
Rate This Topic
#473242 - 06/23/18 15:41 bone ang/pos
3run Online
Senior Expert

Registered: 05/05/09
Posts: 5057
Loc: Caucasus
Hi guys!

I'm currently working on ragdolls. Used Helghast's old contribution as a base. I already converted it previously into physX, but wanted to improve it a bit. So far I got everything working the way I wanted to, but well.. there is a problem. Helghats's ragdolls can blend to animation. It uses 'vec_to_bone' and 'ang_to_bone' to get pos/angle of the bone and blends each ragdoll part entity to it's own bone pos/ang. And here where the problem comes from, cause all hinge limits will 'remember' position/angle they spawn at. It will be 'center' pos/ang to the hinge. This will result in pretty weird ragdoll, f.e. if player was walking zombie like putting his arms infront, ragdoll will keep that position when he will get on the ground.

What I want to do is:
Quote:
-use 'default pose' to take pos/angle of each bone
-blend ragdoll parts to those pos/angles
-create all joints and set their parameters
-blend ragdoll parts to pos/angles taken from the current animation frame

So my question is, how do I get pos/angle of a specific frame (f.e. default pose) without using 'ent_animate'.

Edit: the only way I can think of, is saving those pos/angle right when entity get's created.. but I wanted to know, maybe there is more elegant way to solve this. Manual doesn't answer.

Best regards!
_________________________
Looking for free stuff?? Take a look here: http://badcom.at.ua

Top
#473256 - 06/25/18 01:49 Re: bone ang/pos [Re: 3run]
3run Online
Senior Expert

Registered: 05/05/09
Posts: 5057
Loc: Caucasus
I guess I will just save all needed pos/angles at the start. Thx.
_________________________
Looking for free stuff?? Take a look here: http://badcom.at.ua

Top
#473262 - 06/25/18 12:39 Re: bone ang/pos [Re: 3run]
Superku Online
Senior Expert

Registered: 09/13/03
Posts: 6736
Loc: Kiel (Germany)
Sounds like the best option you have.
Alternatively, you could file_load the MDL and look up bone matrices and frames in the buffer but that... is a nightmare compared to any other option.
_________________________
"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Superku The Game

Severely outdated footage: http://store.steampowered.com/app/407570

Top
#473272 - 06/25/18 15:24 Re: bone ang/pos [Re: Superku]
3run Online
Senior Expert

Registered: 05/05/09
Posts: 5057
Loc: Caucasus
Thank you, Superku laugh
_________________________
Looking for free stuff?? Take a look here: http://badcom.at.ua

Top


Moderator:  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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

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