Coder Social home page Coder Social logo

Comments (2)

raysan5 avatar raysan5 commented on May 9, 2024

Hi debiatan! Excuse me for the late response!

Getting pixel-perfect rendering in OpenGL is quite difficult, actually, it highly depends on the graphic card and the driver implementation.

I tested same raylib program on different hardware (AMD/NVIDIA) and I get different results on pixel-alignment.

You can read more about this issue here and here.

Additionally, if you activate some kind of MSAA, disabled by default on raylib (core.c:InitDisplay():914), result are even worse.

I'm afraid there is not a perfect solution...

from raylib.

debiatan avatar debiatan commented on May 9, 2024

I see. That is a sad state of affairs. I'll try drawing degenerate
triangles, instead. I hope vendors will get those right.

Thanks for the discussion and the links.

2014-11-20 19:42 GMT+01:00 Ray [email protected]:

Hi debiatan! Excuse me for the late response!

Getting pixel-perfect rendering in OpenGL is quite difficult, actually, it
highly depends on the graphic card and the driver implementation.

I tested same raylib program on different hardware (AMD/NVIDIA) and I get
different results on pixel-alignment.

You can read more about this issue here
http://stackoverflow.com/questions/10040961/opengl-pixel-perfect-2d-drawing
and here
https://www.opengl.org/discussion_boards/showthread.php/148444-Pixel-perfect-drawing
.

Additionally, if you activate some kind of MSAA, disabled by default on
raylib (core.c:InitDisplay():914), result are even worse.

I'm afraid there is not a perfect solution...


Reply to this email directly or view it on GitHub
#7 (comment).

from raylib.

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.