Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, 7th_zorro), 923 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Ragdoll Template [New version] #309879
02/11/10 19:20
02/11/10 19:20
Joined: Jan 2004
Posts: 3,023
The Netherlands
Helghast Offline OP
Expert
Helghast  Offline OP
Expert

Joined: Jan 2004
Posts: 3,023
The Netherlands
Hi people!

I finally came around to add ragdoll blending and update the previous ragdoll scripts into a Template (thanks to help from EvilSOB).
I have uploaded a testdemo for people to see the ragdoll blending from any last animation frame.

The demo has the sourcescripts included, so you can copy/paste that for your needs. However to the people with less bandwidth, I have uploaded the ragdoll template seperately (and the script that creates the ragdoll to see how it works).



So without further ado; here are the download links to the demo and source.

Ragdoll blending Demo

Ragdoll Template sourcecode

controls:
R - to turn character into ragdoll... that's all!

Have fun, and I love feedback! wink


Formerly known as dennis_fantasy
Portfolio - http://www.designorhea.com/
Project - http://randomchance.cherrygames.org/
Re: Ragdoll Template [New version] [Re: Helghast] #309882
02/11/10 19:32
02/11/10 19:32
Joined: Sep 2009
Posts: 496
P
Progger Offline
Senior Member
Progger  Offline
Senior Member
P

Joined: Sep 2009
Posts: 496
hi helghast thx for this ragdoll code (:
Can u make a tut how to use ragdoll because i do not know how to use this on other models
This would be great
With friendly Greetings programmer laugh


asking is the best Way to get help laugh laugh laugh
Re: Ragdoll Template [New version] [Re: Progger] #309883
02/11/10 19:33
02/11/10 19:33
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
nice, ill try this out with some other models this weekend.


3333333333
Re: Ragdoll Template [New version] [Re: Quad] #309888
02/11/10 19:46
02/11/10 19:46
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Rei_Ayanami Offline
Expert
Rei_Ayanami  Offline
Expert

Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Nice, but you should definitly reset the physics for the objects after it doesen't really move anymore - else it eats too many frames xD

Re: Ragdoll Template [New version] [Re: Rei_Ayanami] #309891
02/11/10 19:51
02/11/10 19:51
Joined: Jan 2004
Posts: 3,023
The Netherlands
Helghast Offline OP
Expert
Helghast  Offline OP
Expert

Joined: Jan 2004
Posts: 3,023
The Netherlands
Originally Posted By: Progger
hi helghast thx for this ragdoll code (:
Can u make a tut how to use ragdoll because i do not know how to use this on other models
This would be great


I will eventually, but not very soon... Work and girlfriend take time as well wink

Originally Posted By: Quadraxas
nice, ill try this out with some other models this weekend.


Show us how that went! grin

Originally Posted By: Rei_Ayanami
Nice, but you should definitly reset the physics for the objects after it doesen't really move anymore - else it eats too many frames xD


Yes, I agree... But the whole code is unoptimised yet wink i can implement alot more of these, but simply wanted to get something out people can work with again wink

thanks!
regards,


Formerly known as dennis_fantasy
Portfolio - http://www.designorhea.com/
Project - http://randomchance.cherrygames.org/
Re: Ragdoll Template [New version] [Re: Helghast] #309897
02/11/10 20:40
02/11/10 20:40
Joined: May 2009
Posts: 1,816
at my pc (duh)
darkinferno Offline
Serious User
darkinferno  Offline
Serious User

Joined: May 2009
Posts: 1,816
at my pc (duh)
this is quite nice, tho i already accomplished blending, dont know who's is faster though, i'll definately look into this

Re: Ragdoll Template [New version] [Re: darkinferno] #309963
02/12/10 10:47
02/12/10 10:47
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline
Expert
Cowabanga  Offline
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Looks very nice, gotta check it out.
(You got feedback on MSN grin )

Re: Ragdoll Template [New version] [Re: darkinferno] #309964
02/12/10 10:47
02/12/10 10:47
Joined: Jan 2004
Posts: 3,023
The Netherlands
Helghast Offline OP
Expert
Helghast  Offline OP
Expert

Joined: Jan 2004
Posts: 3,023
The Netherlands
Originally Posted By: darkinferno
this is quite nice, tho i already accomplished blending, dont know who's is faster though, i'll definately look into this


Hehehee, I had achieved it in the previous version on A6 as well... was too lazy to convert it over though, finally got round to it laugh (was the easiest script ever, literally just 4 lines added).

Let me know who's is faster, and how you did your ragdoll if different wink I love to learn new techniques!

regards,


Formerly known as dennis_fantasy
Portfolio - http://www.designorhea.com/
Project - http://randomchance.cherrygames.org/
Re: Ragdoll Template [New version] [Re: Helghast] #310157
02/13/10 12:25
02/13/10 12:25
Joined: May 2009
Posts: 1,816
at my pc (duh)
darkinferno Offline
Serious User
darkinferno  Offline
Serious User

Joined: May 2009
Posts: 1,816
at my pc (duh)
Originally Posted By: Helghast
Originally Posted By: darkinferno
this is quite nice, tho i already accomplished blending, dont know who's is faster though, i'll definately look into this


Hehehee, I had achieved it in the previous version on A6 as well... was too lazy to convert it over though, finally got round to it laugh (was the easiest script ever, literally just 4 lines added).

Let me know who's is faster, and how you did your ragdoll if different wink I love to learn new techniques!

regards,


ok, well here's one lovely thing that i did, i calculated the speed of the entity then used that speed to apply a force to the ragdoll when spawned so if your running forward and get shot, you wont just fall down but fly forward and drop on your face [looks alot better]

Re: Ragdoll Template [New version] [Re: darkinferno] #310158
02/13/10 13:01
02/13/10 13:01
Joined: Jan 2004
Posts: 3,023
The Netherlands
Helghast Offline OP
Expert
Helghast  Offline OP
Expert

Joined: Jan 2004
Posts: 3,023
The Netherlands
Originally Posted By: darkinferno
Originally Posted By: Helghast
Originally Posted By: darkinferno
this is quite nice, tho i already accomplished blending, dont know who's is faster though, i'll definately look into this


Hehehee, I had achieved it in the previous version on A6 as well... was too lazy to convert it over though, finally got round to it laugh (was the easiest script ever, literally just 4 lines added).

Let me know who's is faster, and how you did your ragdoll if different wink I love to learn new techniques!

regards,


ok, well here's one lovely thing that i did, i calculated the speed of the entity then used that speed to apply a force to the ragdoll when spawned so if your running forward and get shot, you wont just fall down but fly forward and drop on your face [looks alot better]


Ah, nice!
But that's a dependancy per project, something that not all games will want. So if a user wants that he'll have to do that himself.

I made the template to create ragdolls, how you apply a force to that is up to the user himself wink

regards,


Formerly known as dennis_fantasy
Portfolio - http://www.designorhea.com/
Project - http://randomchance.cherrygames.org/
Re: Ragdoll Template [New version] [Re: Helghast] #311880
02/22/10 00:00
02/22/10 00:00
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Can not get it to work normal with other model frown


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Ragdoll Template [New version] [Re: 3run] #311918
02/22/10 08:22
02/22/10 08:22
Joined: Jan 2004
Posts: 3,023
The Netherlands
Helghast Offline OP
Expert
Helghast  Offline OP
Expert

Joined: Jan 2004
Posts: 3,023
The Netherlands
Originally Posted By: 3run
Can not get it to work normal with other model frown


That's not very helpfull tongue
What's not working, what did you do and how did you set it up?

regards,


Formerly known as dennis_fantasy
Portfolio - http://www.designorhea.com/
Project - http://randomchance.cherrygames.org/
Re: Ragdoll Template [New version] [Re: Helghast] #311930
02/22/10 11:11
02/22/10 11:11
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
I changed names of bones, like in the player model, used in demo. then I just changed it with my model, with same name of bones... and when I spawn ragdoll, it doesn't really looks like in demo... looks really ugly frown


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Ragdoll Template [New version] [Re: 3run] #311933
02/22/10 11:51
02/22/10 11:51
Joined: Jan 2004
Posts: 3,023
The Netherlands
Helghast Offline OP
Expert
Helghast  Offline OP
Expert

Joined: Jan 2004
Posts: 3,023
The Netherlands
well, make sure the rotation of your model is the same, and more importantly, make sure you make the ragdoll hinge objects the same size as your model.

I'll make a tutorial sometime soon, to cover how all this works.


Formerly known as dennis_fantasy
Portfolio - http://www.designorhea.com/
Project - http://randomchance.cherrygames.org/
Re: Ragdoll Template [New version] [Re: Helghast] #314199
03/06/10 16:20
03/06/10 16:20
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Man did you finish tutorial? I really got some throubles with this)) Hinge objects have the same size as my model, but still no luck frown


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Ragdoll Template [New version] [Re: 3run] #316617
03/25/10 16:28
03/25/10 16:28
Joined: Mar 2004
Posts: 92
Dresden
Revo Offline
Junior Member
Revo  Offline
Junior Member

Joined: Mar 2004
Posts: 92
Dresden
ok i hope my english is understandable:
i currently try to assign your ragdoll-code to an other modell (an ork ^^).
theres not a big difficulty to create the collision modells, but now i came to the following problem:
my "pelvis"-bone / model is not right centered (is 30 quants up) and if I move the whole model in MED down (plus the bones) all animations become trash ... frown (maybe its a beginner mistake but i just see no way to do this in MED )

thx for every helping answer.


edit:
ok, i managed a workarround (with an additional polygon and "Transform model global"->"Center model") ... but can not be the answer ^^

Last edited by Revo; 03/25/10 17:45.

-----3d Gamestudio Commercial---------
Vers. 7.8
Focus on Gaming
Re: Ragdoll Template [New version] [Re: Revo] #316790
03/26/10 16:30
03/26/10 16:30
Joined: Dec 2008
Posts: 1,218
Germany
Rackscha Offline
Serious User
Rackscha  Offline
Serious User

Joined: Dec 2008
Posts: 1,218
Germany
Just one question: The legs and shoulders do they support 2Axis rotation? Because a shoulder for example has more movement freedom(2 axis/kind of ball hinge) as the rest of the arm.

EDIT: because the 2 Axis thing is always the thing i got stuck at.

Greets
Rackscha




Last edited by Rackscha; 03/26/10 16:35.

MY Website with news of my projects:
(for example my current
Muliplayer Bomberman,
GenesisPrecompiler for LiteC
and TileMaster, an easy to use Tile editor)
Sparetime-Development

Re: Ragdoll Template [New version] [Re: Rackscha] #316867
03/27/10 12:41
03/27/10 12:41
Joined: Jan 2004
Posts: 3,023
The Netherlands
Helghast Offline OP
Expert
Helghast  Offline OP
Expert

Joined: Jan 2004
Posts: 3,023
The Netherlands
every hinge supports multiple hinge rotations, you just have to set it up properly yourself laugh


Formerly known as dennis_fantasy
Portfolio - http://www.designorhea.com/
Project - http://randomchance.cherrygames.org/
Re: Ragdoll Template [New version] [Re: Helghast] #316872
03/27/10 13:28
03/27/10 13:28
Joined: Dec 2008
Posts: 1,218
Germany
Rackscha Offline
Serious User
Rackscha  Offline
Serious User

Joined: Dec 2008
Posts: 1,218
Germany
Do you mean ever hinge in your template or every hinge in ODE in general?
If in general i did something really wrong, because i havent managed two asign to axis to a single hinge tongue.

But your contribution is awesome as always^^. MAybe later(if you have time) you can try to do a Newton template? I think newton is working better than ODE(as far as my experience go with this 2 engines).

EDIT: i went to toilet some minutes ago to do my business, and got an Idea.(havtn watched your code yet). Maybe you are not rotating the player's pan tilt an roll?? So youre just updating its position and the rest of the orientation is done by the bones? I always tried to rotate my player which is the problem(maybe)?

Greets
Rackscha

Last edited by Rackscha; 03/27/10 13:48.

MY Website with news of my projects:
(for example my current
Muliplayer Bomberman,
GenesisPrecompiler for LiteC
and TileMaster, an easy to use Tile editor)
Sparetime-Development

Re: Ragdoll Template [New version] [Re: Rackscha] #318357
04/07/10 10:27
04/07/10 10:27
Joined: Jun 2006
Posts: 379
Flevoland, 5 meters under wate...
Roel Offline
Senior Member
Roel  Offline
Senior Member

Joined: Jun 2006
Posts: 379
Flevoland, 5 meters under wate...
Thank you a lot!
I guess it will be usable laugh


Check out the throwing game here: The throwing game
Page 1 of 2 1 2

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