opengl

What is the difference between OpenGL, DirectX, OpenCL, CUDA?

I apologize for a very stupid question, but what is the difference between OpenCL and DirectX, OpenGL, CUDA? why is there a c ... ed up calculations with it. I would like to know the difference between these technologies and what is responsible for what?

C++, OpenGL-Merging texture color with shape color

I wrote the texture code on OpenGL, when I show the texture separately, everything goes well, and when I draw another shape t ... ite.getPoint(3); glEnd(); glDisable(GL_BLEND); glDisable(GL_TEXTURE_2D); glPopMatrix(); How to fix it?

C++, OpenGL, SDL2 - Textures

I wrote a character controller and when the texture moves, the second one moves along with the first one, but I want only the ... glEnd(); glDisable(GL_BLEND); glDisable(GL_TEXTURE_2D); SDL_GL_SwapWindow(window); } }

How to install OpenGL on Ubuntu

Hello, can you tell me how to install OpenGL? G++compiler

Pixel format for a texture with a single OpenGL color channel

I have a reflection texture (Specular Map), I use it in the shader in a similar way: vec3 specular = texture(specularMap, fs_ ... don't understand what format to set...What just did not try, there is either no glare at all, or it is also red, if GL_RED.

Alpha blending with a texture

There are two textures, one color, the other transparency (for the rings of the planet) I don't understand how the shader sho ... but the color map does not depend on the transparency map. The solution was written in in the response, here is the result)

Draw a three-dimensional, multi-colored, moving cube

Hello! I'm trying to draw a three-dimensional, multi-colored, moving cube. But it turns out that (GL_TRIANGLES_FAN): (GL_ ... dexBuffer); gl.glDrawArrays(GL10.GL_TRIANGLE_FAN, 0, cube.length); gl.glRotatef(1, 0.0f, 1.0f, 0.0f); }

How to start learning OpenGL c#

Hello everyone, I recently started learning C# OpenTK there is very little information on this on the Internet. And accordingly, I would like to know where you can learn OpenTK. I will be grateful to everyone!

Building an OpenGL project in g++

In short, I'm trying to create an OpenGL application (a normal window with a white square), but even after installing OpenGL, ... ce to `glutDisplayFunc' openGL.cpp:(.text+0x107): undefined reference to `glutMainLoop' collect2: ld returned 1 exit status

Why do I need the glOrtho function in OpenGL?

Do I understand correctly that glOrtho can recalculate coordinates? I want to parse this part of the code: glViewport(0,0,scr ... from 0 to windowHeight) are added. But it's not convenient to work with 3D right? Probably more suitable for working with 2D?

Godot asks to update OpenGL

Here is the problem, the video card on the laptop intel (r) hd graphics family 3000 windows 7 x64 the drivers on the video card are the latest, tell me can anyone know how to solve the problem? OpenGL I understand should be installed by default

How to use UV coordinates in OpenGL together with Index Buffer?

I'm trying to draw a cube using Index Buffer. That is, I have 8 points and an index buffer that shows in what order you need ... he index buffer. Is it possible to somehow pass different UV coordinates for individual faces and still use the index buffer?

SharpGL. Draw a texture in a square

There was a problem with rendering a PNG / JPG image using the SharpGL library. How can this be arranged?

Python Pyglet slows down the animation. Objects are drawn slowly on the screen

More than once I have faced the problem of slowing down the animation when drawing various objects in Python. The problem is ... ticles: p.update() if p.done(): self.particles.remove(p) p.delete()

What should I read to create a voxel engine?

I want to write my own voxel engine in c++ and visualization via opengl. The question is actually - what to read to write a voxel engine. P.S. I know opengl plus or minus, I only need information about voxels.

Where can I download the latest version of OpenGL and GLSL? [closed]

Closed. This question is off-topic. Answers to it are not accepted at the moment. ... question Please provide a link to the C++ source files and the build (.dll, .lib).

Learning OpenGL4, what are shaders? I have a couple of questions

I started learning OpenGL4 from this site. http://opengl-tutorial.blogspot.com/p/2.html?m=1 And in the lesson that follows th ... via GLSL. Then it will all work well through the CPU? In short, I can work directly with the video card through the shaders?

How to work in OpenGL with the glEnable depth buffer (GL DEPTH TEST)?

How to make one object overlap another... The object that was the last in the loop is drawn from above. And how to make the o ... 2); glDrawArrays(GL_QUADS, 0, 4); glDisableClientState(GL_VERTEX_ARRAY); glfwSwapBuffers(window); }

How do I make the rotation body display correctly?

In my project, you first need to put points, then a polygon is formed, and a rotation body is created based on this polygon. ... ion. I haven't figured out the addiction yet. How to make sure that the normals are always outside? No, it's all right here.

Simple OpenGL C++animation

I make a 3D game in OpenGL, load models using Assimp, create a window, process keyboard clicks, load textures and sound using ... derstands skeletal animation perfectly, but I need more than just this type of animation. In addition, it is quite difficult.