• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Attachment point issues

Status
Not open for further replies.
Level 31
Joined
Jul 23, 2005
Messages
1,685
Don't know if I have made a thread like this before or not, but I am in need of help.

As plenty of you probably know, my models tend to have attachment point issues. They always seem to be above the head and flail around. Why they have this is unknown to me, as when I am making them I will not change the points around, and it all looks good in Magos.

What I need is some help here trying to figure out why they are messed up, and how to fix them myself or keep them from getting all wonky.

Attached is a picture that demonstrates what I mean, the ones in green being the ones affected, while the ones in pink are fine as far as attachments go. :s

Also attached my current Legionary model, which is one of the ones circled in green up there, the mass of units in formation.
 

Attachments

  • AttachmentPointPic.jpg
    AttachmentPointPic.jpg
    279.1 KB · Views: 117
  • Legionary.BLP
    189.1 KB · Views: 71
  • Legionary.mdx
    97.3 KB · Views: 62
Level 8
Joined
Jan 22, 2010
Messages
115
Cavman, I've solved your problem. I'm still a bit confused as to what exactly did the trick though..

If you open the .mdl in notepad your attachments look like this:

Attachment "Origin Ref " {
ObjectId 39,
AttachmentId 0,
}

Which I've changed to this:

Attachment "Origin Ref " {
ObjectId 39,
Parent 17,
Visibility 3 {
DontInterp,
25000: 1.000000,
85000: 0.000000,
159967: 0.000000,
}

So I'm not exactly sure what 'attachmentId' does, but i'm guessing it attaches to object 0, which is 'bone guts' in your model. This is the little corpse that displays only at the decay animation. In other models there is always a 'Parent' object specified instead of attachment ID. So I got rid of that and changed the parent to 17 (Helper_Root) for the origin.

The 'Visibility' section was just one of the few things i've tried at once and i'm guessing you can go without this. Basically it sets if the attachment should be visible (0) or invisible (1) at a given time/animation.

Here is a copy of the things I changed:


Attachment "Foot Right Ref " {
ObjectId 32,
Parent 21,
Visibility 3 {
DontInterp,
25000: 1.000000,
85000: 0.000000,
159967: 0.000000,
}
}
Attachment "Foot Left Ref " {
ObjectId 33,
Parent 24,
Visibility 3 {
DontInterp,
25000: 1.000000,
85000: 0.000000,
159967: 0.000000,
}
}
Attachment "Hand Left Ref " {
ObjectId 34,
Parent 27,
Visibility 3 {
DontInterp,
25000: 1.000000,
85000: 0.000000,
159967: 0.000000,
}
}
Attachment "Hand Right Ref " {
ObjectId 35,
Parent 30,
Visibility 3 {
DontInterp,
25000: 1.000000,
85000: 0.000000,
159967: 0.000000,
}
}
Attachment "Weapon Ref" {
ObjectId 36,
Parent 13,
Visibility 3 {
DontInterp,
25000: 1.000000,
85000: 0.000000,
159967: 0.000000,
}
}
Attachment "Head - Ref" {
ObjectId 37,
Parent 31,
AttachmentID 0,
Visibility 3 {
DontInterp,
25000: 1.000000,
85000: 0.000000,
159967: 0.000000,
}
}
Attachment "Chest Ref" {
ObjectId 38,
Parent 25,
AttachmentID 0,
Visibility 3 {
DontInterp,
25000: 1.000000,
85000: 0.000000,
159967: 0.000000,
}
}
Attachment "Origin Ref " {
ObjectId 39,
Parent 17,
Visibility 3 {
DontInterp,
25000: 1.000000,
85000: 0.000000,
159967: 0.000000,
}
}
Attachment "OverHead Ref " {
ObjectId 40,
Parent 0, THIS DOESN'T WORK BECAUSE THE PARENT WON'T SHOW!
Visibility 3 {
DontInterp,
25000: 1.000000,
85000: 0.000000,
159967: 0.000000,
}
}
 
Level 31
Joined
Jul 23, 2005
Messages
1,685
Cavman, I've solved your problem. I'm still a bit confused as to what exactly did the trick though..

If you open the .mdl in notepad your attachments look like this:

Attachment "Origin Ref " {
ObjectId 39,
AttachmentId 0,
}

Which I've changed to this:

Attachment "Origin Ref " {
ObjectId 39,
Parent 17,
Visibility 3 {
DontInterp,
25000: 1.000000,
85000: 0.000000,
159967: 0.000000,
}

So I'm not exactly sure what 'attachmentId' does, but i'm guessing it attaches to object 0, which is 'bone guts' in your model. This is the little corpse that displays only at the decay animation. In other models there is always a 'Parent' object specified instead of attachment ID. So I got rid of that and changed the parent to 17 (Helper_Root) for the origin.

The 'Visibility' section was just one of the few things i've tried at once and i'm guessing you can go without this. Basically it sets if the attachment should be visible (0) or invisible (1) at a given time/animation.

Here is a copy of the things I changed:


Attachment "Foot Right Ref " {
ObjectId 32,
Parent 21,
Visibility 3 {
DontInterp,
25000: 1.000000,
85000: 0.000000,
159967: 0.000000,
}
}
Attachment "Foot Left Ref " {
ObjectId 33,
Parent 24,
Visibility 3 {
DontInterp,
25000: 1.000000,
85000: 0.000000,
159967: 0.000000,
}
}
Attachment "Hand Left Ref " {
ObjectId 34,
Parent 27,
Visibility 3 {
DontInterp,
25000: 1.000000,
85000: 0.000000,
159967: 0.000000,
}
}
Attachment "Hand Right Ref " {
ObjectId 35,
Parent 30,
Visibility 3 {
DontInterp,
25000: 1.000000,
85000: 0.000000,
159967: 0.000000,
}
}
Attachment "Weapon Ref" {
ObjectId 36,
Parent 13,
Visibility 3 {
DontInterp,
25000: 1.000000,
85000: 0.000000,
159967: 0.000000,
}
}
Attachment "Head - Ref" {
ObjectId 37,
Parent 31,
AttachmentID 0,
Visibility 3 {
DontInterp,
25000: 1.000000,
85000: 0.000000,
159967: 0.000000,
}
}
Attachment "Chest Ref" {
ObjectId 38,
Parent 25,
AttachmentID 0,
Visibility 3 {
DontInterp,
25000: 1.000000,
85000: 0.000000,
159967: 0.000000,
}
}
Attachment "Origin Ref " {
ObjectId 39,
Parent 17,
Visibility 3 {
DontInterp,
25000: 1.000000,
85000: 0.000000,
159967: 0.000000,
}
}
Attachment "OverHead Ref " {
ObjectId 40,
Parent 0, THIS DOESN'T WORK BECAUSE THE PARENT WON'T SHOW!
Visibility 3 {
DontInterp,
25000: 1.000000,
85000: 0.000000,
159967: 0.000000,
}
}

Thanks, testing that out right now. Not sure what AttachmentID: 0 does either, but it's in the other attachments aswell that look like they have all the info.

EDIT: Changed it and it works :D just need to fiddle with the parent of the origin and overhead attachments, as they bounce with the model's movements and they are supposed to be motionless. Thanks.
 
Status
Not open for further replies.
Top