Gamestudio Links
Zorro Links
Newest Posts
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
Data from CSV not parsed correctly
by jcl. 04/20/24 08:32
Zorro FIX plugin - Experimental
by jcl. 04/20/24 08:30
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (7th_zorro, Aku_Aku, 1 invisible), 579 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
bone ang/pos #473242
06/23/18 13:41
06/23/18 13:41
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,370
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
Support me on: https://boosty.to/3rung
Re: bone ang/pos [Re: 3run] #473256
06/24/18 23:49
06/24/18 23:49
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,370
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
Support me on: https://boosty.to/3rung
Re: bone ang/pos [Re: 3run] #473262
06/25/18 10:39
06/25/18 10:39
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
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

Check out my new game: Pogostuck: Rage With Your Friends
Re: bone ang/pos [Re: Superku] #473272
06/25/18 13:24
06/25/18 13:24
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Thank you, Superku laugh


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung

Moderated by  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

Powered by UBB.threads™ PHP Forum Software 7.7.1