Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (Edgar_Herrera), 1,111 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 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