Insanity - eviltoast
  • Mio@feddit.nu
    link
    fedilink
    arrow-up
    5
    ·
    1 year ago

    Diablo 2 lod installed: 3 gb Diablo 2 resuracted 25 gb

    Is 4k images consuming that much more space?

      • Mio@feddit.nu
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        3d models consist of images right? Coordinates for the image does not take up much?

        • Grimace@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          1 year ago

          Yes but also more polygons for more detailed models. Which… is more space but it can’t be that much lol idk tho

        • ⸻ Ban DHMO 🇦🇺 ⸻@aussie.zone
          link
          fedilink
          English
          arrow-up
          3
          arrow-down
          2
          ·
          1 year ago

          It depends how they store the models, if they’re using normal mapping (which they probably are) they will need to store the following in a file: Position (x,y,z) normal (x,y,z) texturecoordinates (u,v) tangent (x,y,z) bitangent (x,y,z). For each vertex, assuming that they’re using a custom binary format and 32-bit (4 byte) floats, 56 bytes per vertex. The Sponza model which is commonly used for testing has around 1.9 million vertices: in our hypothetical format at least, 106.4MB for the vertices. But we also have to store the indices which are a optimisation to prevent the repetition on common vertices. Sponza has 3.9 million triangles, 3 32-bit integers per triangle gets us an additional 46.8 MB. So using that naeive format which should be extremely fast to load and alot of models, 3D model data is no insignificant contributor to file size.