Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by M_D. 04/26/24 20:22
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (M_D, AndrewAMD, Quad, Ayumi), 806 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Attaching Entities #103069
12/20/06 23:49
12/20/06 23:49
Joined: Jul 2006
Posts: 43
C
CreatorOfMyth Offline OP
Newbie
CreatorOfMyth  Offline OP
Newbie
C

Joined: Jul 2006
Posts: 43
Not sure if this is exactly the right place to post this, but what the hey.

If I make a model with bone animations, and then want to also attach a bunch of other models/entities to it, will these add-ons move along with the animations?

Example: A traditional RPG where you can equip hundreds of different armors and weapons. Each would be an entity that attaches onto you through code. Will these entities continue to move and rotate with you as you move?

Kind of a noobly question I know, but just curious. I want to make a customizable character creation system and I'm looking into it.... though it's hard to find specific answers.

And when it comes to armor, and you create flexible points within the armor? Let me explain again. A sword is just one long unbending rod that attaches to your character's hand. Armor could be just one solid piece that covers the chest, but what about sleeves? Can you make "sleeves" for your armor that attach to your character's arms and rotate with them, without moving the breatplate away from the chest?

.... I think that's everything... for now

Thanks!

Re: Attaching Entities [Re: CreatorOfMyth] #103070
12/21/06 23:52
12/21/06 23:52
Joined: Feb 2002
Posts: 357
Florida
Zelek Offline
Senior Member
Zelek  Offline
Senior Member

Joined: Feb 2002
Posts: 357
Florida
I'm working on something along these lines right now. If you have a character model that is animated, and then you attach a separate model (say, a sword) to the character via script (using vec_for_vertex) the sword can be made to follow the character, but won't animate with him. You can set its pan, roll, and tilt to be equal to the character, but when it comes to actions like swinging the sword, this won't do.

I haven't done this, but I think your best bet is to animate the character and his sword/armor together in your modelling program, then export them separately. Then when you attach, you can animate them both separately, but they will be synched.

As for your "sleeves" problem, I can not think of an easy solution. You could always keep the sleeves as a separate model from the armor, and it would work, but the number of individual models would get astronomical.

Re: Attaching Entities [Re: Zelek] #103071
12/22/06 09:31
12/22/06 09:31

A
Anonymous
Unregistered
Anonymous
Unregistered
A



If you're using bones, then just rig up models for armour with the same bone structure as the character. Then you can move the bones in the armour by code to align with the player's bones that are being animated.

Re: Attaching Entities [Re: ] #103072
12/25/06 02:23
12/25/06 02:23
Joined: Jul 2006
Posts: 43
C
CreatorOfMyth Offline OP
Newbie
CreatorOfMyth  Offline OP
Newbie
C

Joined: Jul 2006
Posts: 43
Sounds like I might be doing myself in here, but I shall give it all a try.


Moderated by  HeelX, rvL_eXile 

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