OpenGL super classic notes - depth texture and shadow

Previously, we introduced the simple method of flattening objects to the projection plane to create shadows. However, this shadow method has its limitations (for example, the projection plane must be a plane). In opengl1 4 introduces a new method shadow map to generate shadows. The principle behind shadow mapping is simple. We first take the p ...

Added by bestrong on Sat, 22 Jan 2022 07:31:58 +0200

OpenGL basic (17) camera

OpenGL itself does not have the concept of camera, but we can simulate the camera by moving all objects in the scene in the opposite direction. It feels like we are moving, not the scene is moving. 1. Establishment of camera LookAt matrix To define a camera, we need a camera's position in world space, observation direction, a right measuremen ...

Added by flforlife on Wed, 19 Jan 2022 23:35:33 +0200

Summary of computer graphics experiment in Shandong University

preface This paper is a summary of computer graphics experiments. The experiments are written in glad and glfw. There are still many imperfections in the code. For example, the operations of drawing lines and polygons can be reasonably encapsulated to form a perfect graphics header file and even namespace, which is very helpful to the foll ...

Added by thinkgfx on Wed, 19 Jan 2022 20:25:25 +0200

opengl learning notes

Current learning status: day01 Hello triangle Chinese Course https://learnopengl-cn.github.io/ course http://www.opengl-tutorial.org/cn/beginners-tutorials/tutorial-1-opening-a-window/ Course source code https://github.com/opengl-tutorials/ogl/archive/master.zip Vertex Array Object: Vertex Array Object, VAO Vertex Buffer Object: Verte ...

Added by sgaron on Tue, 18 Jan 2022 10:12:48 +0200

✠ OpenGL-9-sky and background

Sky box or The sky dome provides an effective and relatively simple method to generate a convincing horizon landscape. Sky box How do I texture the horizon? The cube has six faces, and we need to texture all of them. One method is to use 6 image files and 6 texture units. Another common (and efficient) way is to use an image with a text ...

Added by 303tech on Sun, 16 Jan 2022 18:38:58 +0200

OpenGL 12 lecture code

OpenGL 12 lecture code - by yjq reference material OpenGL Getting Started tutorial [infringement legislation and deletion] First lecture Draw a rectangle #include<stdio.h> #include<stdlib.h> #include <math.h> #include<glut.h> #include<glaux.h> void myDisplay(void) { glClear(GL_COLOR_BUFFER_BIT); ...

Added by rckehoe on Wed, 12 Jan 2022 10:41:30 +0200

[VS2013] build OpenGL and C + + console program environment and form drawing

OpenGL learning reference website learnopengl.cn download GLFW . Establish the GLFW environment and ensure that it properly creates the OpenGL context and displays the window. GLFW already has a precompiled binary version and corresponding header file for Visual Studio 2013/2015... / 2019, but for completeness, we will start from compiling t ...

Added by yaba on Wed, 29 Dec 2021 22:15:36 +0200

Ray tracing rendering practice: OpenGL ray tracing, accelerating computing with GPU!

preface Ray tracing on GPU! About half a year ago, I was Raytrace rendering practice Simple ray tracing is discussed and implemented in. It is the simplest calculation on cpu with c + + and multithreading, but only supports simple triangles and balls as primitives Over time, it is no longer novel to manipulate these exquisit ...

Added by kovudalion on Tue, 28 Dec 2021 07:40:47 +0200

✠ OpenGL-14 other technologies

fog There are many methods to simulate fog, from very simple model to complex model including light scattering effect. Even very simple methods are effective. One way is to mix the actual pixel color with another color (the color of fog is usually gray or bluish gray - also used for background color) based on the distance of the object fro ...

Added by nishmgopal on Tue, 28 Dec 2021 01:57:50 +0200

opengl learning 7 camera

In the previous tutorial, we discussed the observation matrix and how to use the observation matrix to move the scene (we moved back a little). OpenGL itself does not have the concept of camera, but we can simulate the camera by moving all objects in the scene in the opposite direction to produce a feeling that we are moving, rather than the sc ...

Added by n00byboy on Wed, 15 Dec 2021 05:24:00 +0200