[Opengl] relationship between VAO and VBO

Reprint here Note: both VAO and VBO are used to store vertex information and send it to vertex shader. As for what are vertices and vertices Shaders , I won't say much here. Readers who don't understand CSDN can do it by themselves. B in VBO means Buffer, which is used to store vertex data; The A of VAO is Array, but ...

Posted by slyte33 on Mon, 07 Mar 2022 08:10:47 +0100

openGL environment map

openGL series article directory preface In the chapter of lighting and materials, we consider the "luster" of objects. However, we have never looked at very shiny objects Modeling, such as mirrors or chrome products. These objects have a small range of specular highlights and can also reflect the surrounding light A mirror image ...

Posted by mdgottlieb on Sat, 05 Mar 2022 14:27:05 +0100

Detailed analysis of OpenGL learning routines and functions (Earth Day model)

preface Some time ago, OpenGL will be used in engineering for some rendering and modeling operations. In the future, this column will be updated to explain the application of typical opengl functions and structures in the way of the highest signal-to-noise ratio. Through this hand-in-hand way, I believe it is the fastest way for novice fri ...

Posted by ayok on Sun, 30 Jan 2022 06:56:08 +0100

OpenGL learning essay - January 22, 2022

Last time, we drew a 30 pixel point with vertex shader and fragment shader. This time, we mainly briefly introduced the functions of each shader, the template for detecting OpenGL and GLSL errors, and the template for reading GLSL source code from the file. Finally, we drew a simple two-dimensional animation. 1, Various shader functions Verte ...

Posted by soupy127 on Wed, 26 Jan 2022 18:13:46 +0100

Loading obj 3D model with openGL

openGL series article directory preface Complex 3D models, such as personas in video games or computer-generated movies, are usually generated using modeling tools. This "DCC" (digital content creation) tool enables people (such as artists) to build arbitrary shapes in 3D space and automatically generate vertices, texture coordi ...

Posted by tronicsmasta on Mon, 24 Jan 2022 11:11:33 +0100

Efficient text rendering with Freetype

Efficient text rendering with Freetype FreeType is a free font rendering software library. It is written in C language. The design is small, efficient, highly customizable and portable. At the same time, it can produce high-quality output (font image) in most vector and bitmap font formats. Freetype use Header file /* Contains various macro ...

Posted by The Phoenix on Mon, 24 Jan 2022 02:36:59 +0100

Detailed explanation of glDrawElements() of openGL API

openGL series article directory Official website Official documents Name glDrawElements — render primitives from array data C Specification void glDrawElements( GLenum mode, GLsizei count, GLenum type, const void * indices); Parameters mode Specifies what kind of primitives to render. Symbolic constants GL_POINTS, GL_LINE_STRIP, GL_LINE_LO ...

Posted by Dr.Flink on Sat, 22 Jan 2022 19:33:22 +0100

Beauty camera GPUImage/openGL camera preview performance analysis and optimization

preface At present, the main functions of the mobile camera sdk have been basically developed, and the product has been online for a long time. Looking back on the development cycle, there are many knowledge points in the design of beauty camera, the realization of basic functions is relatively simple, and there are many ready-made open source ...

Posted by tomboy78 on Sat, 22 Jan 2022 14:04:25 +0100

Section 4 operator and Trackball

After the article was published, you have many questions, and I found some very basic. If you ask me to talk more carefully, I'll start again and write more carefully. Although you don't need to look at the code, you may still want to have a comparison when talking about the code. The author uses version 3.6.5, which I have uploaded to Baidu on ...

Posted by kf on Sat, 22 Jan 2022 02:05:16 +0100

Detailed explanation of openGL &GLSL texture() function

preface Generally, when adding textures to 3D projects, you often see functions with texture operations. First, look at a piece of chip shader program: in the chip shader #version 450 core out vec4 FragColor; in vec2 TexCoords; uniform sampler2D depthMap; uniform float near_plane; uniform float far_plane; // required when using a perspe ...

Posted by gullit on Thu, 20 Jan 2022 19:26:28 +0100