Home Gallery Resources The Team Rules chat Login Register
Pages: [1]
Author Topic: Re-attaching Polygons  (Read 6484 times)
0 Members and 1 Guest are viewing this topic.
DrPanda
Special Access
*****
Offline Offline

Posts: 1738


  • Awards Fiery Topic Renowned Hacker Featured Heart Container KCMM Veteran

  • View Profile Awards
    « on: April 27, 2011, 11:10:46 AM »


    I've been meaning to make this tutorial for a while now... >_>

    First off, this tutorial is incomplete.
    At the moment, You can use this method to re-attach polygons that are only wieghted to a single bone.
    I have yet to fully figure out how to re-attach multi-bone polygons but I am working on it, along with some other applications this could be used for...
    I will update this when I have figured out how to flawlessly re-attach multi-bone polygons.

    If you think this will be too complicated for you (or you are lazy, like me) ForOhFor Error has created a program that can do this for you automatically.
    You can check it out Here

    You will need:
    > Brawlbox
    > A hex editing program
    > FitCharacter##.pac file


    For this example I will be attaching Shiek's Dagger to her head... For lols Tongue

    To start off you will need to open up your character in brawlbox and export the model.
    Once you have done that, expand the model data tabs until you find the polygon you wish to re-attach.
    Take note of the Mdl0 offset.



    Next, find the bone you wish to attach it to, and take note of the NodeID.



    Head on over to your hex editor and open up your Mdl0.
    Scroll down until you find the polygon offset you'll be changing.

    Now, I'm using HxD as my hex editor so I can simply click where it says "offset(h)" to make the offset appear as it does in brawlbox. I don't know if other Hex editor's do the same, but if they don't, you will have to convert the polygon offset to hex before trying to find it.



    So now that we have arrived at our destination, what do we do?
    Well, by looking at the NodeId the polygon is currently attached to in brawlbox, we can determine that it is this value is what needs changing.



    Now all that is left to do is punch in the Bone NodeId you found earlier (remember to convert it to hex first!) and save your work.



    Finally, replace the model in brawlbox and voilá.




    Notes:
    ~ Sometimes, the bone you are re-attaching the polygon to has a different default rotation, so you will have to vertex it to be the right way round.

    ~ Because you have altered a polygon, you can no longer convert the ModelData to DAE.
    If you need to do vertex editing, my advice is to either export the vertices first then re-attach the polygon, or vertex that part last to avoid patching.

    Appearently, I'm wrong Laugh
    Check out Beyond's post below vvv

    ~ This can infact be done with multi-bone polygons. If you are lucky, you might be able to re-attach a multi-bone polygon with this method, but I have only successfully done it thrice.

    Examples:
    Here are a couple of examples of where this has been used-
    Gallade by Starwaffle
    Ulquiorra by Jokekid
    Right-handed Link by Moi


    If anyone wishes to expand on this, please, be my guest Grin
    Alot of people should be able to figure out the ins-and-outs of this pretty easily, so any additional info would be greatly appreciated.
    « Last Edit: May 05, 2011, 04:35:04 PM by DrPanda » Logged

    Beyond
    ♥God of Love
    Special Access
    *****
    Offline Offline

    Posts: 2915


    ...but nothing happened...

  • Awards Hey! Listen! Ceiling Cat Active Contributor >9000 Pin Collector

  • View Profile WWW Awards
    « Reply #1 on: April 27, 2011, 11:38:17 AM »


    Good tutorial but one thing. Uhh...

    When I did this for Zero I was still able to convert it to a .dae and continue editing it just fine. Altering polygon data is fine as long as the structure of the header is in tact, which is why .mdl0s with hexed out polygons dont work with a.i.s since the polygon header is completely replaced with zeros.
    Logged


    Psycho Philia
    Lol Kitten
    *********
    Offline Offline

    Posts: 898


  • Awards Heart Container Ninja Tutorial Writer

  • View Profile Awards
    « Reply #2 on: April 27, 2011, 11:40:25 AM »


    What you say Beyond interests me a lot, maybe in fact I would be able to vertex what I want to move to an other bone after the moving in fact.

    Anyway, DrPirako: Good tutorial, that is very useful, one thing though, the mdl0 offset, you use it like this? You don't even convert the number in hex by using calculator?
    Logged



    Oh bomb, no one understands you. You have to be expressive with your feelings. Don't worry, Philia will help you with that. Fu fu fu fu....

    Kitare, Saitan no Ikazuchi! Ikare, sousei no daichi! Ribaasukuruseidaaa!

    DrPanda
    Special Access
    *****
    Offline Offline

    Posts: 1738


  • Awards Fiery Topic Renowned Hacker Featured Heart Container KCMM Veteran

  • View Profile Awards
    « Reply #3 on: April 27, 2011, 11:46:38 AM »


    Good tutorial but one thing. Uhh...

    When I did this for Zero I was still able to convert it to a .dae and continue editing it just fine. Altering polygon data is fine as long as the structure of the header is in tact, which is why .mdl0s with hexed out polygons dont work with a.i.s since the polygon header is completely replaced with zeros.
    That's interesting, when I made right-handed Link it wouldn't let me convert it at all...
    Eh, Maybe I just overlooked something Tongue

    Good tutorial, that is very useful, one thing though, the mdl0 offset, you use it like this? You don't even convert the number in hex by using calculator?
    Don't quite get what your asking but I'll give it a shot at answering...
    I personally do it this way because it is easier and quicker, but Converting the numbers into hex is essential to get it to work Azn
    Logged

    Psycho Philia
    Lol Kitten
    *********
    Offline Offline

    Posts: 898


  • Awards Heart Container Ninja Tutorial Writer

  • View Profile Awards
    « Reply #4 on: April 27, 2011, 11:55:36 AM »


    I understand much more what you were saying about the mdl0 offset. When you use hxd, you make the numbers appear like it does in brawlbox (in decimal), this is why you don't convert the mdl0 offset in hexadecimal, I didn't knew it was possible to do something like this.

    Last question, and after that I will leave you alone (it's probably about time Laugh), can you know in advance if a polygon is attached to multiple bones?
    « Last Edit: April 27, 2011, 12:04:54 PM by Psycho Philia » Logged



    Oh bomb, no one understands you. You have to be expressive with your feelings. Don't worry, Philia will help you with that. Fu fu fu fu....

    Kitare, Saitan no Ikazuchi! Ikare, sousei no daichi! Ribaasukuruseidaaa!

    DrPanda
    Special Access
    *****
    Offline Offline

    Posts: 1738


  • Awards Fiery Topic Renowned Hacker Featured Heart Container KCMM Veteran

  • View Profile Awards
    « Reply #5 on: April 27, 2011, 12:03:30 PM »


    Last question, and after that I will leave you alone (it's probably about time Laugh), can you know in advance if a polygon is attached to multiple polygons?

    Yes you can.
    In brawlbox, the NodeId for the Polygon will be displayed as -1


    « Last Edit: May 09, 2011, 09:51:21 AM by DrPanda » Logged

    Psycho Philia
    Lol Kitten
    *********
    Offline Offline

    Posts: 898


  • Awards Heart Container Ninja Tutorial Writer

  • View Profile Awards
    « Reply #6 on: April 27, 2011, 12:05:34 PM »


    Excuse me I said multiple polygons, I meant attached to multiple bones. Anyway, thank you for the answer, I have nothing more to ask you, thank you very much!
    Logged



    Oh bomb, no one understands you. You have to be expressive with your feelings. Don't worry, Philia will help you with that. Fu fu fu fu....

    Kitare, Saitan no Ikazuchi! Ikare, sousei no daichi! Ribaasukuruseidaaa!

    DAO_Ibuki
    Mega Kitten
    *****
    Offline Offline

    Posts: 120

  • Awards Famous Hacker Renowned Hacker Hyperactive Contributor

  • View Profile Awards
    « Reply #7 on: May 04, 2011, 01:26:59 AM »


    I'm just here to thank you for your great guide so... Thank you , Thank you , Thank you , Thank you  Awesome Face
    now, thanks to the re-attching polygonos I could do to cirno


    Thank you , Thank you , Thank you You are the best  Kirby Dance  Kirby Dance  Kirby Dance
    Logged

    ShadowSnake
    Venomous Hacker
    Heroic Kitten
    **
    Offline Offline

    Posts: 2789


    Back from the dead to mod Smash-U

  • Awards Infinite Smash Team Star Hacker Starstormer KCMM Veteran Heart Container

  • View Profile WWW Awards
    « Reply #8 on: May 04, 2011, 07:40:25 AM »


    Nice guide here Doc, im sure this will be useful. i wonder if i can make sheik hold her dagger... I see what you did there ...

    isnt this also how you make jiggs hats as well?
    Logged

    I DONT TAKE REQUESTS.


    DrPanda
    Special Access
    *****
    Offline Offline

    Posts: 1738


  • Awards Fiery Topic Renowned Hacker Featured Heart Container KCMM Veteran

  • View Profile Awards
    « Reply #9 on: May 04, 2011, 02:53:14 PM »


    Nice guide here Doc, im sure this will be useful. i wonder if i can make sheik hold her dagger... I see what you did there ...

    isnt this also how you make jiggs hats as well?
    Indeed you can... I was actually going to do that as the example, but from just re-attaching it, her Dagger stabs through her hand Laugh

    And I really have no idea how the Jigger hats work Tongue
    Logged

    ForOhFor Error
    Holy Kitten
    *
    Offline Offline

    Posts: 1477


    DOG is your destiny

  • Awards Fiery Topic Pin Collector Starstormer Famous Hacker KCMM Veteran

  • View Profile Awards
    « Reply #10 on: May 05, 2011, 01:25:42 PM »


    I made a program to do this automatically:
    http://forums.kc-mm.com/index.php?topic=23996.0
    Logged


    FC: 2191-7379-6272

    DrPanda
    Special Access
    *****
    Offline Offline

    Posts: 1738


  • Awards Fiery Topic Renowned Hacker Featured Heart Container KCMM Veteran

  • View Profile Awards
    « Reply #11 on: May 05, 2011, 04:35:59 PM »


    I made a program to do this automatically:
    http://forums.kc-mm.com/index.php?topic=23996.0

    Added that link to the Op Wink
    Logged

    ForOhFor Error
    Holy Kitten
    *
    Offline Offline

    Posts: 1477


    DOG is your destiny

  • Awards Fiery Topic Pin Collector Starstormer Famous Hacker KCMM Veteran

  • View Profile Awards
    « Reply #12 on: May 05, 2011, 06:12:18 PM »


    Really isn't that much of a program. A lot of the coding I went through involved applying the correct logic to the wrong variable.

    XD
    Logged


    FC: 2191-7379-6272

    Mansta8
    Lol Kitten
    *********
    Offline Offline

    Posts: 889


  • Awards Stack Smash Team Favorite'd Famous Hacker Ceiling Cat Pin Collector

  • View Profile WWW Awards
    « Reply #13 on: May 05, 2011, 08:29:45 PM »


    I'm working on attaching Mario's hat to his back for my Tron Legacy Mario.
    Man, this is awesome!
    EDIT: Damn, looks like I have to vertex the hat to put it on it's side.
    Does the bone tree editor work for attaching added bones to other ones? If so I might be able to attach the hat to an added bone connected to his BustN bone and turn it to it's side. (lol using multiple programs just to do one thing.)
    EDIT 2: lulz

     Awesome Face
    « Last Edit: May 05, 2011, 09:47:12 PM by MANSTA8 » Logged

    jjookkeekkiidd
    God Kitten
    *******
    Offline Offline

    Posts: 8947


    blergh

  • Awards Infinite Smash Team Super Saiyan Topic >9000 Heart Container Hey! Listen!

  • View Profile WWW Awards
    « Reply #14 on: May 08, 2011, 10:38:45 AM »


    somebody should make base models like:

    mirrored sword fighters (link is already done) and sheik with dagger in hand (two versions) ^^

    Logged


    Pages: [1]
    Print
    Jump to: