Gamestudio Links
Zorro Links
Newest Posts
New Zorro v1.99.2
by jcl
46 minutes 0 seconds ago
Strategy Development
by AndrewAMD
59 minutes 37 seconds ago
closing profitable trades (stop)
by MINER
Today at 12:47
Next contest?
by jcl
Yesterday at 15:44
advance decline (ADO) code examples?
by 3dgamelight
12/09/18 19:52
Newbie coding question. HELP Please!
by 3dgamelight
12/09/18 16:28
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14
12/08/18 19:10
AUM Magazine
Latest Screens
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Evonet Beta v1.0 : Online Project Development Template
Lake scene
Who's Online
19 registered (alibaba, ags, Artvin, AndrewAMD, chsmac85, 20BN, CocaCola, Ayumi, 5 invisible), 477 Guests and 12 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
mahomed, bondz, Neil_G, bobby4h, MutilatedDuck
18117 Registered Users
Topic Options
Rate This Topic
#473242 - 06/23/18 15:41 bone ang/pos
3run Offline
Senior Expert

Registered: 05/05/09
Posts: 5104
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 Offline
Senior Expert

Registered: 05/05/09
Posts: 5104
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: 6782
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 Offline
Senior Expert

Registered: 05/05/09
Posts: 5104
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