Giter Site home page Giter Site logo

Configure texture atlas output about flump HOT 4 CLOSED

smvilar avatar smvilar commented on August 18, 2024
Configure texture atlas output

from flump.

Comments (4)

tconkling avatar tconkling commented on August 18, 2024 1

You can control the maximum texture size, but there's no UI exposed to do so currently. Open your .flump project file and change the "maxSize" property (or add it if it doesn't exist). eg:

{
  "exportDir": "export",
  "importDir": "resources",
  "maxSize": 2048,
  "exports": [
    {
      "name": "XML",
      "scale": 1,
      "format": "XML",
      "textureBorder": 1,
      "description": "XML (100%, 1px, XML)"
    }
  ]
}

I think it probably makes sense to have this property set at the export level, rather than the project level. I'll change that (and expose a UI for it)

from flump.

tconkling avatar tconkling commented on August 18, 2024

Implemented in b116a45

from flump.

samchau avatar samchau commented on August 18, 2024

I've been trying to output the textures at 1024px to no avail. I've tried changing the value in the UI as well as the "maxAtlasSize" property in the .flump, but in both cases, when I press export nothing happens.

The fla/swf contains several 1024x1024 sprites.

Any suggestions?

from flump.

tconkling avatar tconkling commented on August 18, 2024

If your maxAtlasSize is 1024 and you have a 1024x1024 sprite, you'll need to set the Texture Border property to 0 (in the Export Formats window) - otherwise, your sprite is padded out to 1026x1026.

I'm committing a change right now that warns you when this is the case, rather than just silently failing.

from flump.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.