What is texture packing?

Поделиться
HTML-код
  • Опубликовано: 15 сен 2024
  • Pumpkinman Demo will be released at 12.09.2024.
    Want to support me?
    Buy Pumpkinman on Steam : store.steampow...
    Thanks!
    Join discord: / discord
    socials:
    twitter: / undermnt_pj
    twitch: / under_mountain_
    github: github.com/jak...
    icons used:
    uxwing.com/gra...
    uxwing.com/mic...
    #gamedevlopment #indie #indiegame #indiegames #gamedesign #imgui #interfacedesign #pixelart
  • ИгрыИгры

Комментарии • 7

  • @hotworlds
    @hotworlds 15 дней назад

    Aseprite has a texture packing export option for sprite sheets built in! There's a lot of options for exporting different json metadata too. You just need to put all your art in one file on different layers and animation frames.

    • @undermountain_dev
      @undermountain_dev  6 дней назад

      That's interesting. I'm not sure if managing all game's graphic in single .aseprite file would be convenient after some time. But that's helpful knowledge. Thanks :)

  • @piteroix
    @piteroix 25 дней назад

    Idol w końcu nagrał sigma

  • @lenargilmanov7893
    @lenargilmanov7893 10 дней назад

    Hey! I read the same article, and eventually decided to use the guillotine algorithm, cause it was relatively simple.
    Also why not use instancing instead of batching?

    • @undermountain_dev
      @undermountain_dev  6 дней назад +1

      Yeah, maybe in future I'll improve my approach too, but right now - anything that works. About instancing - that's from my understanding how SDL works, maybe there are ways to easily costumize it and improve performance, but I'm quite certain it won't be neccessary for my game.

  • @user-vc9tr6rv9p
    @user-vc9tr6rv9p 25 дней назад

    In general, is a packed texture referenced by ‘indices’ in the code, such as (xtop, xbottom, ytop, ybottom) for a game character? Also, was texture packing the reason why Minecraft’s earlier versions stored all textures in a single file?

    • @undermountain_dev
      @undermountain_dev  6 дней назад

      1. Kind of like that. I my code I've list of sprites. Sprite have 3 different properties: reference to texture atlas, indices (xtop etc.) - I call this 'clip', and pivot
      2. I don't know details about minecraft, but most likely it's true. Also it's simplest solution if there's not that much graphic content in the game. Just load single texture and that's all what's needed.