A method of keeping the original scale of OpenGL map

  For example, I created a full screen texture vertex, but the picture does not necessarily conform to the screen scale. In this way, once the texture map is pasted, it will not conform to the picture scale as soon as it is stretched, which will be more ugly. So what temporary transformation to the vertex can maintain the scale of the rend ...

Added by Begby on Tue, 07 Dec 2021 16:28:39 +0200

Configure OpenGL in VScode C + + environment (code runner + MinGW + llvm + freePlug)

This tutorial is applicable to Windows 64 bit operating system Install VScode: Download from the official website VSCode detailed installation tutorial After installing VScode, start configuring the C + + environment Install LLVM: Download LLVM Turn down the page, find this line, and click windows (64 bit) After downloading, click next t ...

Added by formlesstree4 on Wed, 24 Nov 2021 04:49:18 +0200

OpenGL uses Shader to realize RGBA to I420 (with project source code)

Previously, I wrote two articles on shader to realize RGBA to YUV:OpenGL uses shader to convert RGBA to YUYVOpenGL uses shader to convert RGBA to NV21Some links about YUV images are also posted here for unfamiliar students to consult.Master the basic processing of YUV imageShader realizes RGBA to I420Images in I420 format are common in video de ...

Added by ironman on Mon, 22 Nov 2021 11:58:41 +0200

Python+Opengl realizes real-time interactive writing on blocks with B-spline curves

introduction The blogger is a student of grade 2021 Graduate School of computer science at Beijing University of technology. This task is the first major assignment of the course of computer graphics. Because I haven't contacted opengl before, I spent some effort in completing this operation. Because we can't find the code that meets the ...

Added by t_galan on Tue, 16 Nov 2021 15:04:32 +0200

opengl advanced lighting HDR

HDR OpenGL HDR official document content Generally speaking, when stored in the frame buffer, the values of brightness and color are limited to 0.0 to 1.0 by default. This seemingly innocent statement makes us always set the brightness and color values within this range, trying to fit the scene. This can run and give good results. But what h ...

Added by B0b on Thu, 11 Nov 2021 02:19:05 +0200

Lesson 20 advanced GLSL

Built in variable Known gl_ The clipping space output position vector of the position vertex shader The chip output color value of the FragColor chip shader unknown Vertex shader variable gl_PointSize GLSL defines a called gl_PointSize output variable, which is a float variable. You can use it to set the width and height (pixels) of the p ...

Added by kkibak on Thu, 04 Nov 2021 01:15:42 +0200

How Opengl-Day2 Begins Two Weeks draws a triangle

First remember a few nouns Vertex Array Object, VAOVertex Buffer Object, VBOIndex Buffer Objects: Element Buffer Object, EBO or Index Buffer Object, IBO Some conceptual points Everything in OpenGL is in 3D space. Screens and windows are arrays of 2D pixels. Most of OpenGL's work is to change 3D coordinates into 2D pixels that fit on the scre ...

Added by xiosen on Wed, 27 Oct 2021 20:19:44 +0300

OpenGL -- the second step is to draw a triangle

Before entering the topic, you need the following knowledge:         1. Graphics rendering pipeline The graphics rendering pipeline can be divided into two main parts: the first part converts your 3D coordinates into 2D coordinates, and the second part converts 2D coordinates into actual colored pixels. In OpenGL, ev ...

Added by satant on Tue, 19 Oct 2021 06:07:56 +0300

OpenGL development environment construction (Windwos)

Follow the official website to build an OpenGL development environment, and the whole process is completed on Windows 10 The document address on the official website is here Basically, just follow suit, that is, importing dependencies is different from me. I failed to operate like that, so I imported dependencies myself. 1, Download VS 2019 ...

Added by Memphis10 on Fri, 08 Oct 2021 11:34:41 +0300