Test attachment point viewer patch? - SLUniverse Forums
Navigation » SLUniverse Forums > Development Discussion and Support > Content Creation » Test attachment point viewer patch?


Content Creation Discuss building, scripting, and other forms of content creation for SL.

 
Reply
 
LinkBack Thread Tools Display Modes
Old 10-01-2012, 07:20 PM   #1 (permalink)
Member
 
Magus Freston's Avatar
 
Join Date: Jan 2012
Posts: 36
Business: Avastar
Test attachment point viewer patch?

Hi, is anybody that can compile a mesh-enabled viewer able to test a small patch?

A limitation of the attachment points in the LL character is that many of them have names with spaces, like “Left Pec”. Collada 1.4 doesn’t handle bone names with spaces as space is used to delimit bone names. So the idea is to replace the spaces with an underscore for the collada file so you get “Left_Pec”, which of course SL doesn’t recognise. The patch just translates “Left_Pec” back to “Left Pec” at import time.

The details and files to test it all out with are here: Topic: Help needed to test viewer patch «. You don't need any software other than a patched viewer to test it out.

(added files below for testing, as linked site need a login, details of the patch are at the above site though)


Test:
Attached is a mesh with two spheres weighted to "Left Hand" and "Right Hand" (actually "Left_Hand" and "Right_Hand"). Import the mesh using “skin weights” and if the patch works, when you wear the mesh, you should see the sphere’s hovering in front of the hands like in the blender pic and following the hands with the AO.

If it doesn’t work, you won’t see the sphere’s. I think SL puts ’unweighted’ vertices at (0,0,0) of the sim, so effectively the mesh disappears off to the horizon somewhere.

There is also an animation attached will will cause the sphere’s to rotate around the hands
Attached Thumbnails
Test attachment point viewer patch?-selection_011.png  
Attached Files
File Type: zip attach_name_test.zip (4.6 KB, 25 views)
__________________
Avastar - Character animation and editing with Blender.

Last edited by Magus Freston; 10-02-2012 at 08:23 PM. Reason: Added files for testing if patch works
Magus Freston is offline   Reply With Quote
1 User Said Thanks:
Old 10-01-2012, 11:59 PM   #2 (permalink)
Senior Member
 
Darien Caldwell's Avatar
Mayan Time Lord
 
Join Date: Apr 2008
Location: Cali
Posts: 1,999
My Mood:
SL Join Date: 10/12/2006
Business: [H]arsh Styles
Client: Always changing, and too lazy to edit.
I can look at compiling a viewer tomorrow. I already have a working 3.3.4 compile setup now.

EDIT: decided to just go ahead and do it. Will contact you on your forums.
__________________
[H]arsh Styles

Last edited by Darien Caldwell; 10-02-2012 at 12:15 AM.
Darien Caldwell is offline   Reply With Quote
1 User Hugged You:
1 User Said Thanks:
Old 10-02-2012, 04:25 AM   #3 (permalink)
I don't do stupid.
 
Lance Corrimal's Avatar
 
Join Date: Feb 2010
Posts: 1,894
My Mood:
SL Join Date: 2006-06-09
Business: My!
Client: Dolphin Viewer 3
Send a message via Yahoo to Lance Corrimal
Would that patch mean anything to anyone who is not using avastar?
__________________
Lance Corrimal is offline   Reply With Quote
Old 10-02-2012, 01:39 PM   #4 (permalink)
Senior Member
 
AshaSekayi Ra's Avatar
Making Mesh
 
Join Date: Oct 2009
Posts: 756
My Mood:
Quote:
Originally Posted by Lance Corrimal View Post
Would that patch mean anything to anyone who is not using avastar?
I could be wrong, but I assume the patch makes it so that anyone can import an armature that has attachment bones that have two names like "Right Hip", "Left Pec", etc. Only the attachment bones with a single name can be imported at this time.
AshaSekayi Ra is offline   Reply With Quote
Old 10-02-2012, 08:30 PM   #5 (permalink)
Member
 
Magus Freston's Avatar
 
Join Date: Jan 2012
Posts: 36
Business: Avastar
Absolutely Lance. All the patch does is translate names like "Right_Hip" back to "Right Hip". If push comes to shove you can always edit the collada file with a text editor and replace the spaces in the names with underscores in a field usually called skin-joints-array. This will allow the viewer to parse the file, then the patch undoes the name change.

I just realised that the testing files required a login in the site I linked to so I've added them to the original post.
Magus Freston is offline   Reply With Quote
Old 10-12-2012, 05:04 AM   #6 (permalink)
Member
 
Magus Freston's Avatar
 
Join Date: Jan 2012
Posts: 36
Business: Avastar
With Darien's help in compiling a patched viewer we've been able to confirm that the patch works

This means all bones including all attachment points can be weighted to mesh and animated.
Magus Freston is offline   Reply With Quote
3 Users Said Yay!:
1 User Likes This:
Old 10-12-2012, 11:55 AM   #7 (permalink)
Senior Member
 
Adeon Writer's Avatar
 
Join Date: Apr 2010
Posts: 6,111
omg yes!
Adeon Writer is online now   Reply With Quote
Old 10-12-2012, 03:27 PM   #8 (permalink)
Senior Member
 
AshaSekayi Ra's Avatar
Making Mesh
 
Join Date: Oct 2009
Posts: 756
My Mood:
Thanks Magus and Darien! I just tried out the test viewer and files. They worked perfectly for me.
AshaSekayi Ra is offline   Reply With Quote
Old 10-12-2012, 04:32 PM   #9 (permalink)
Senior Member
 
Adeon Writer's Avatar
 
Join Date: Apr 2010
Posts: 6,111
Important: Will everyone see models with things rigged to the new space names this way, or only people with the patch?

I'm assuming everyone will see it, if so, no need to people to wait for LL's support, we can all use this now - otherwise we'll run into the 4.2 rule.
Adeon Writer is online now   Reply With Quote
Old 10-12-2012, 06:33 PM   #10 (permalink)
Senior Member
 
Darien Caldwell's Avatar
Mayan Time Lord
 
Join Date: Apr 2008
Location: Cali
Posts: 1,999
My Mood:
SL Join Date: 10/12/2006
Business: [H]arsh Styles
Client: Always changing, and too lazy to edit.
Yes, you only need the patch to upload. The resulting mesh can be seen by any viewer, modified or not. (assuming they can see mesh)
Darien Caldwell is offline   Reply With Quote
2 Users Said Thanks :
Old 10-15-2012, 12:34 PM   #11 (permalink)
Senior Member
 
AshaSekayi Ra's Avatar
Making Mesh
 
Join Date: Oct 2009
Posts: 756
My Mood:
It looks like they are bringing this into Firestorm: [#FIRE-7937] [PATCH] DAE Import Support for Attachment Point Names - Phoenix Viewer
AshaSekayi Ra is offline   Reply With Quote
Old 10-15-2012, 03:11 PM   #12 (permalink)
Senior Member
 
Darien Caldwell's Avatar
Mayan Time Lord
 
Join Date: Apr 2008
Location: Cali
Posts: 1,999
My Mood:
SL Join Date: 10/12/2006
Business: [H]arsh Styles
Client: Always changing, and too lazy to edit.
Magus put this on the Content Creation Meeting with Nyx today, and they seemed pretty interested in the patch. Just have to get Magus to jump through all the hoops of the submission process.
Darien Caldwell is offline   Reply With Quote
1 User Said Thanks:
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On