Trimming the Graphics Fat

  • #1, by redsparkSunday, 11. January 2015, 13:59 10 years ago
    When Visionaire builds a game for distribution, does it trim graphics down. For instance, when I create a character it often has a lot of alpha around it which I spend a lot of time trimming down so that all of the character's animations will line up. Is it necessary to spend the time doing that or will Visionaire automatically do that when it builds a game? If not, is this a feature that we could request be added to Visionarie as part of the editor? Thanks.

    Forum Fan

    122 Posts


  • #2, by marvelSunday, 11. January 2015, 14:08 10 years ago
    Visionaire make an automated trim when the game is being exported.

    Key Killer

    599 Posts

  • #3, by redsparkSunday, 11. January 2015, 14:15 10 years ago
    Excellent! So I don't have to do that myself in preparing the graphics. Thank you. That makes my life easier. smile

    Forum Fan

    122 Posts

  • #4, by MachtnixSunday, 11. January 2015, 16:20 10 years ago
    Question: The position of the dialog text depends on the border of the alpha box, well? If I use big transparent parts to arrange the text: would Vis make it smaller automatically? The position of the text won't be similar in the final exe-game? And, second: the border has an influence on the character interaction, has it?

    Machtnix

    Thread Captain

    1097 Posts

  • #5, by afrlmeSunday, 11. January 2015, 16:34 10 years ago
    By border, you mean the edges of the image right? No the character center (animation center) you define is what affects the position of the animation.

    I'm really not sure what all this trimming the image fat is. But if you have concerns then export a quick test build .exe & see what happens. smile

    Imperator

    7285 Posts

  • #6, by MachtnixSunday, 11. January 2015, 17:07 10 years ago
    If there is a character with a lot of nothing around him (alpha), the dialog text will be placed at the outside of this border. Sometimes I need a lot of transparency because there could be animations or poses later. In my test game I use a character which hovers under the ceiling, so I have a long transparent box from the floor (where the animation center is) up to the top, where the character is. His dialog text is always on the side, because there isn't any space between up and down.

    Machtnix

    Thread Captain

    1097 Posts

  • #7, by afrlmeSunday, 11. January 2015, 17:13 10 years ago
    You could easily use the registerHookFunction to display text wherever you like. You create some conditions & then query those conditions inside of the hook function. Or better yet, you could create a specific box or black bar type of thing to display all text in, which will make sure all text is displayed correctly.

    Imperator

    7285 Posts

  • #8, by redsparkSunday, 11. January 2015, 17:23 10 years ago
    Attached is an image of what I mean. I was wondering if I used an image like this with the extra area around it, does visionaire trim the extra pink area off when it comes time to build the game? Of course the pink is just used as a marker. It isn't part of the image. All of that is 100% alpha.

    Forum Fan

    122 Posts

  • #9, by afrlmeSunday, 11. January 2015, 17:38 10 years ago
    I don't see what it matters really. Transparent parts of the image barely increase the file-size by much. Normally a few kb & if you are using .webp image format it will probably be a lot smaller in file-size than the .png version anyway.

    You could cut off the image fat (as you are calling it) yourself too, but that would mean that you would have to correctly position each frame, if you used a different canvas size per frame. Personally I use 1 canvas size per animation, as you can always align the animations up later with the animation center &/or the animation studio (harmonizer).

    Imperator

    7285 Posts

  • #10, by redsparkSunday, 11. January 2015, 17:43 10 years ago
    When it comes time to blit the image to the screen, the computer still has to examine all of that extra image, doesn't it? Wouldn't it be faster to just deal with the image that contains the real image?

    I do the same thing. 1 Canvas size for all of my character's animations. However, I was wondering if for performance, Visionaire trimmed the edges off of it.

    Forum Fan

    122 Posts

  • #11, by FantozziSunday, 11. January 2015, 17:57 10 years ago


    You could cut off the image fat (as you are calling it) yourself too, but that would mean that you would have to correctly position each frame, if you used a different canvas size per frame. Personally I use 1 canvas size per animation, as you can always align the animations up later with the animation center &/or the animation studio (harmonizer).


    Not shure if it fits here (my weak english] but I load the image sequence as layers in gimp - cut them all in one act and then export the layers again as separate images. You need a little script for this, you can download here. So all images are identically cutted.

    This takes about 10 - 20 seconds. But as AFRLme wrote, it doesn't affect the file size as much as I thought.

    Newbie

    31 Posts