I have a model that I thought I correctly attached a weapon to the "arm left wrist" when I did my first mesh-mod.
Unfortunately, it appears to be joined to the "arm left shoulder 1".
What is the most practical way to make the weapon bone attach to the wrist rather than the shoulder bone?
Otherwise I would have to hide/scale to 0 the erroneous weapon and reattach a duplicate to the wrist, but I'd like to learn if there was a better way than the workaround.
http://sta.sh/039ejlmvv2y is the model.
Weapon Re-Attachment to Wrist
Moderators: ObscureMemories, Runa, Love2Raid
Weapon Re-Attachment to Wrist
---
I appreciate all help provided
I appreciate all help provided
Re: Weapon Re-Attachment to Wrist
I'd say forget about that and switch to Blender for editing. Add a bone to the weapon either at the center or at the place it usually should be held, then place it at character's hand, parent that bone to the wrist, this way you get a pose-able weapon in case you need to adjust it further.
But I'm only saying that because I have no idea how to correctly do it in XPS, it always got me some wacky results due to root ground bone positioning. As far as I know you can also change parenting index by editing you mesh.ascii in notepad, it's a matter of changing some numbers. If you wanna stick to XPS, ignore this post and we gonna see if someone more savvy has a solution.
But I'm only saying that because I have no idea how to correctly do it in XPS, it always got me some wacky results due to root ground bone positioning. As far as I know you can also change parenting index by editing you mesh.ascii in notepad, it's a matter of changing some numbers. If you wanna stick to XPS, ignore this post and we gonna see if someone more savvy has a solution.
Re: Weapon Re-Attachment to Wrist
This happens because SC5 Viola 2P CAS2 have some "duplicate bones" (3 times)WuHT wrote:I have a model that I thought I correctly attached a weapon to the "arm left wrist" when I did my first mesh-mod.
Unfortunately, it appears to be joined to the "arm left shoulder 1".
What is the most practical way to make the weapon bone attach to the wrist rather than the shoulder bone?
Otherwise I would have to hide/scale to 0 the erroneous weapon and reattach a duplicate to the wrist, but I'd like to learn if there was a better way than the workaround.
http://sta.sh/039ejlmvv2y is the model.
Code: Select all
...
head eyebrow right 1
3 # parent index
-0.01363199 0.55988026 0.11812644
head eyebrow right 1
3 # parent index
-0.04115004 0.56992036 0.11082135
head eyebrow right 1
3 # parent index
-0.06466716 0.56292009 0.08073533
...
Code: Select all
every name must be unique
To solve it:
- Mark "Config->Show warnings"
- Load the file generic_item.mesh (not xps.xps and not generic_item.mesh !!!)
- Watch the warning "Viola can caust trouble" and deny the dialog "Should this be solved persistent" with No
- Invoke "Modify-YClean Armature" to fix the duplicate bones "head eyebrow right 1"
- Now, you should be attached a weapon to the "arm left wrist" ... without "trouble"
XNA referenced the bones by there "index number". Because the 2nd bone with the name "head eyebrow right 1" overwrite the 1th bone information "head eyebrow right 1" ... and the 3rd bone "head eyebrow right 1" make it again ... some indices are now removed ... and the index of "arm left wrist" will be now the index number of "arm left shoulder 1"
Code: Select all
arm left shoulder 1
1 # parent index
0.10038700 0.35134989 -0.00000019
arm left shoulder 2
145 # parent index
0.23088902 0.35134989 -0.00000026
arm left elbow
146 # parent index
0.53204900 0.35134971 -0.00000044
arm left wrist
147 # parent index
0.76293802 0.35134953 -0.00000060
Re: Weapon Re-Attachment to Wrist
Anx means:
2. Load the file generic_item.mesh.ascii (not xps.xps and not generic_item.mesh !!!)
2. Load the file generic_item.mesh.ascii (not xps.xps and not generic_item.mesh !!!)
Re: Weapon Re-Attachment to Wrist
At the end of the day this appears to work for meEms wrote:I'd say forget about that and switch to Blender for editing. Add a bone to the weapon either at the center or at the place it usually should be held, then place it at character's hand, parent that bone to the wrist, this way you get a pose-able weapon in case you need to adjust it further.
But I'm only saying that because I have no idea how to correctly do it in XPS, it always got me some wacky results due to root ground bone positioning. As far as I know you can also change parenting index by editing you mesh.ascii in notepad, it's a matter of changing some numbers. If you wanna stick to XPS, ignore this post and we gonna see if someone more savvy has a solution.
Yeah when i was first playing around (and cleaning up the armature of this model because originally there was no root bone) there was issues with the eyebrow bones but it didn't appear to cause problems so I didn't bring it up. Plus, it didn't appear obvious to me to think that eyebrow bones would somehow affect wrist bonesAnx wrote: To solve it:Background information:
- Mark "Config->Show warnings"
- Load the file generic_item.mesh (not xps.xps and not generic_item.mesh !!!)
- Watch the warning "Viola can caust trouble" and deny the dialog "Should this be solved persistent" with No
- Invoke "Modify-YClean Armature" to fix the duplicate bones "head eyebrow right 1"
- Now, you should be attached a weapon to the "arm left wrist" ... without "trouble"
XNA referenced the bones by there "index number". Because the 2nd bone with the name "head eyebrow right 1" overwrite the 1th bone information "head eyebrow right 1" ... and the 3rd bone "head eyebrow right 1" make it again ... some indices are now removed ... and the index of "arm left wrist" will be now the index number of "arm left shoulder 1"
This is wy the weapon is attached to the bone 3 lines before "arm left wrist" ... and this is the bone name "arm left shoulder 1"
good eyeXNAaraL wrote:Anx means:
2. Load the file generic_item.mesh.ascii (not xps.xps and not generic_item.mesh !!!)
Is there any difference in the .xps and the .mesh formats ? I assumed that the .xps format was the latest and newest way to store the mesh information so any changes i made to the armature in the XPS program I would only save the changes to a new xps.xps and leave the generic_item mesh and ascii alone. In the future, do I need to save changes to all 3 formats to prevent bugs ?
---
I appreciate all help provided
I appreciate all help provided