Giter Site home page Giter Site logo

Gutter usage about uvatlas HOT 3 CLOSED

cdcseacave avatar cdcseacave commented on May 17, 2024
Gutter usage

from uvatlas.

Comments (3)

walbourn avatar walbourn commented on May 17, 2024

See the wiki:

gutter: The minimum distance, in texels between two charts on the atlas. This gets scaled by the width, so if gutter is 2.5, and it is used on a 512x512 texture, then the minimum distance will be 2.5 / 512 in u-v space.

from uvatlas.

cdcseacave avatar cdcseacave commented on May 17, 2024

I saw the wiki, but I wrote here as that is not enough. So now it is clear this is an issue and not a misunderstanding. How is anybody able to add any extra pixels around the charts (for bilinear interpolation, etc) if they extend to the image limits??? The gutter should be between charts but ALSO between charts and the image limits! the only option now is to give you a smaller image resolution, and after your lib to shift all texture coordinates!!! Possible, but not too smart, right?

from uvatlas.

cdcseacave avatar cdcseacave commented on May 17, 2024

And after looking into the code trying to fix it myself, it turns out even the documentation is wrong, 2 mistakes:

  • it can not be a float value like 2.5, as the first thing that happens inside the lib is to convert it to int
  • second the empty space seems to be 2*gutter (as it should be normal actually) and not just gutter as in the docs
  • and for completeness, no gutter between the charts and image limits

from uvatlas.

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.