Home Gallery Resources The Team Rules chat Login Register
Pages: [1]
Author Topic: Question about indexing csps..  (Read 2900 times)
0 Members and 1 Guest are viewing this topic.
Alphatron
Hyper Kitten
******
Offline Offline

Posts: 204


View Profile Awards
« on: November 07, 2009, 08:52:30 PM »


If using smashbox/brawlbox, do I have to index anything at all? When I extract the original picture and then edit it in photoshop, the edited picture seems to take on the properties of the original anyway. For example, kirby's 06 texture is colored in grayscale. When replacing it with this, it becomes all black and white as well. (If there's a way around this, please let me know)

However, I had a problem a while back where I would use a picture of strikers Luigi as a csp and the game would freeze on me. So basically, do I need to index anything?
Logged

Hakumen
Outcast.
Heroic Kitten
**
Offline Offline

Posts: 2193


Retribution!

  • Awards Hot Topic Pin Collector Heart Container Dedicated Hacker

  • View Profile WWW Awards
    « Reply #1 on: November 07, 2009, 08:55:56 PM »


    You NEED to index them, or else they'll look like [censored] in game.

    Also, as for Kirby's grayscale CSP, it's not in grayscale format, so it shouldn't be turning grayscale. It's not grayscale when I replace it.
    Logged

    (8:15:26 PM) Vyse: I hope you get raped by a lumberjack
    (8:18:16 PM) Vyse: >:|
    (8:21:52 PM) Vyse: Two of them.

    Alphatron
    Hyper Kitten
    ******
    Offline Offline

    Posts: 204


    View Profile Awards
    « Reply #2 on: November 07, 2009, 09:15:22 PM »


    Odd. Although thank you for explaining why my CSPs had such crap quality in game. I would attempt to index the texture after I'd already replaced the original with it, but only to see that the picture was already in the indexed color format...

    To be honest, I don't really get indexing. Local perceptual, but I'm not sure how many colors I'm allowed to put. Only that Game & Watch doesn't allow a lot and I don't use textures for him anyway.
    Logged

    Hakumen
    Outcast.
    Heroic Kitten
    **
    Offline Offline

    Posts: 2193


    Retribution!

  • Awards Hot Topic Pin Collector Heart Container Dedicated Hacker

  • View Profile WWW Awards
    « Reply #3 on: November 07, 2009, 09:18:05 PM »


    Odd. Although thank you for explaining why my CSPs had such crap quality in game. I would attempt to index the texture after I'd already replaced the original with it, but only to see that the picture was already in the indexed color format...

    To be honest, I don't really get indexing. Local perceptual, but I'm not sure how many colors I'm allowed to put. Only that Game & Watch doesn't allow a lot and I don't use textures for him anyway.

    You can index to any amount. Though, the highest is 256.
    Logged

    (8:15:26 PM) Vyse: I hope you get raped by a lumberjack
    (8:18:16 PM) Vyse: >:|
    (8:21:52 PM) Vyse: Two of them.

    mnsg
    Holy Kitten
    *
    Offline Offline

    Posts: 1801

  • Awards Super Saiyan Topic Star Hacker >9000 Featured

  • View Profile Awards
    « Reply #4 on: November 07, 2009, 09:19:34 PM »


    Although SmashBox (BrawlBox) does automatically index images that need an indexed palette, it is recommended that you index it manually with The GIMP or Photoshop.  The only exception to this rule is if you're editing Fox's headgear and want to maintain the visor's semi-transparency.

    Anyway, regarding the CSP files, most use a maximum of 240 colors, but some do use a smaller palette or use up to 256 colors (mostly for Wario though).  Make sure that your custom portraits do not use more colors than what the texture part will accept.

    Kirby's 6th portrait uses up to 80 colors, so any custom Kirby portraits that replace that portrait can't use more than 80 colors.  The other Kirby portraits use either 240 (portraits 1, 5) or 224 (portraits 2, 3, 4) colors.

    P.S.: You don't need to bother with perfect magenta (#ff00ff) when using SmashBox, since PNG images use an Alpha Channel, even if they're indexed.
    Logged


    Alphatron
    Hyper Kitten
    ******
    Offline Offline

    Posts: 204


    View Profile Awards
    « Reply #5 on: November 07, 2009, 09:30:03 PM »


    ^Thanks! I'm gonna tackle kirby's grayscale csp again and see if I can fix it. Is there a reference list for the maximum colors you're allowed to use for each character's portrait?
    Logged

    mnsg
    Holy Kitten
    *
    Offline Offline

    Posts: 1801

  • Awards Super Saiyan Topic Star Hacker >9000 Featured

  • View Profile Awards
    « Reply #6 on: November 07, 2009, 09:37:27 PM »


    ^Thanks! I'm gonna tackle kirby's grayscale csp again and see if I can fix it. Is there a reference list for the maximum colors you're allowed to use for each character's portrait?

    If you use SmashBox to look at common5.pac or sc_selcharacter.pac, you should find an archive called char_bust_tex_lz77.  Inside that archive is all of the CSP texture parts, and each one uses an indexed palette.  Look at the palettes, and you'll see how many colors each one uses.

    And like Shadow said earlier, Kirby's 6th portrait isn't limited to grayscale colors; it would be named tex#00_09+2 if ASHable.  You can use any RGB colors, as long as the portrait uses no more than 80 colors.
    Logged


    Alphatron
    Hyper Kitten
    ******
    Offline Offline

    Posts: 204


    View Profile Awards
    « Reply #7 on: November 07, 2009, 09:51:55 PM »


    Alright. Thanks again. Finally, I know I need to edit something else in order to get the result screen pictures to appear. That's the sc_selcharacter.pac file, right? If I want to do battle portraits, that's something completely unrelated to that file?
    Logged

    Hakumen
    Outcast.
    Heroic Kitten
    **
    Offline Offline

    Posts: 2193


    Retribution!

  • Awards Hot Topic Pin Collector Heart Container Dedicated Hacker

  • View Profile WWW Awards
    « Reply #8 on: November 07, 2009, 11:43:19 PM »


    Alright. Thanks again. Finally, I know I need to edit something else in order to get the result screen pictures to appear. That's the sc_selcharacter.pac file, right? If I want to do battle portraits, that's something completely unrelated to that file?

    Battle portraits have their own location. In Info > portrite is where they lie.
    Logged

    (8:15:26 PM) Vyse: I hope you get raped by a lumberjack
    (8:18:16 PM) Vyse: >:|
    (8:21:52 PM) Vyse: Two of them.

    Alphatron
    Hyper Kitten
    ******
    Offline Offline

    Posts: 204


    View Profile Awards
    « Reply #9 on: November 08, 2009, 08:00:06 PM »


    Extra questions. Does Dither matter? I still get the quality reduction when copying my personal indexed image and pasting it over the image I exported in photoshop.
    Logged

    Pages: [1]
    Print
    Jump to: