简体   繁体   中英

Rendering Texture 1 to 1 in OpenGL

So what I am looking to do is to render a texture onto a flat plane, using OpenGL and c++, as a way to show an image.

However I need to ensure that there is nothing done to the texture when it is rendered ie. anti-aliasing, interpolation, smoothing, blurring etc.

Is this the default way OpenGL handles rendering textures? Or do some flags need to be set in order to disable any processing?

Pretty much everything is said here : http://www.mindcontrol.org/~hplus/graphics/opengl-pixel-perfect.html .

There's no need to offset anything by 0.5 , as long as you projection matrix is a glOrtho equivalent matching the viewport pixel resolution.

You may find interessting a related/similar question : Opengl pixel perfect 2D drawing

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM