Coder Social home page Coder Social logo

Comments (4)

kmkolasinski avatar kmkolasinski commented on July 21, 2024

Hi, thank you for your feedback.
This is because AB by default uses the linear interpolation for texture filtering, but you are right this should be disabled in order to preserve input image unchanged at the end.
I just fixed this issue.
Regards,
KK

from awesomebump.

dmaluev avatar dmaluev commented on July 21, 2024

Hello.
Linear interpolation is good for quality.
It should not be a problem as long as pixel centres of a render target exactly match pixel centres of a drawn quad.
As described here for Direct3D 9 http://msdn.microsoft.com/en-us/library/windows/desktop/bb219690%28v=vs.85%29.aspx (of course in OpenGL half-pixel offset is not required)

I believe there is some float rounding issue or something. Some values are not exactly -1, zero or 1 but 0.989 or something, or render target size doesn't match drawn texture size, just my guess.

from awesomebump.

kmkolasinski avatar kmkolasinski commented on July 21, 2024

You are right, but I save displayed 2D textures directly to png/jpg image, thus if 2D texture is blured because of filtering reasons the output image will be also. Changing filtering type form LINEAR to NEAREST solved this problem.

from awesomebump.

kmkolasinski avatar kmkolasinski commented on July 21, 2024

Unfortunately, I was forced to come back to the LINEAR filtering. NEAREST mode was leading to aliasing problems in some cases, for example during rotation of the texture.

from awesomebump.

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.