Questions tagged [opengl]

OpenGL (Open Graphics Library) is a graphics standard and API which is platform independent and available for desktop, workstation and mobile devices. It is designed to provide hardware-accelerated rendering, and hence gives greatly improved performance over traditional software rendering. OpenGL is used for applications like CAD software and computer games. The OpenGL standard, as well as OpenGL ES, is controlled by the Khronos group.

Filter by
Sorted by
Tagged with
0
votes
1answer
13 views

pyopengl - run with no texture

my minimal code: from OpenGL.GLUT import * from OpenGL.GLU import * from OpenGL.GL import * from PIL import Image from PIL import ImageDraw import numpy rotate=[33,40,20] block_VAO=0 draw=False ...
-4
votes
0answers
19 views

what is source code of Roller Coaster Train [closed]

I am new in Graphic and game development. So i want source code of Roller Coaster Train cs559. I want working code so i can able to complete my task. Please share source code.
0
votes
0answers
21 views

Draw polygon by VBO? [closed]

This is to request a full code that works for drawing a polygon using a VBO. My code structure is like below. int main(void){ GLFWwindow* window; if (!glfwInit()) return -1; { int argc = ...
-2
votes
0answers
15 views

I need to know how to call the glViewport and the glOrtho function in OpenGL to be able to press a button as a user to change my 3D scene to 2D Scene

#include <iostream> // cout, cerr #include <cstdlib> // EXIT_FAILURE #include <GL/glew.h> // GLEW library #include <GLFW/glfw3.h> // ...
-1
votes
1answer
39 views

OpenGL: Segmentation Fault (Core Dumped) when running

I am writing a game engine in C++ and OpenGL and when I open my first test window i receive this issue: Segmentation fault (core dumped) There is no error when compiling, and it compiles just fine. ...
-1
votes
0answers
31 views

How do I get GLEW and GLFW to work with eclipse?

I'm trying to create a C++ project that uses OpenGl (using GLEW and GLFW). The image above shows the exact IDE, Eclipse, and error message, but my issue is with getting GLEW and GLFW to work with ...
0
votes
0answers
28 views

GLSL raycasting fragment shader [closed]

I recently started using GLSL and wrote a small fragment shader to raycast a sphere. Shader takes as input the radius, coordinates of center, pixel's coordinates and return pixel's color. Now I want ...
0
votes
0answers
22 views

How to show a cv::cuda::GpuMat directly with cv::imshow?

I have meet some problems when I try to show a cv::cuda::GpuMat object with OpenCV function cv::imshow.Below are my environment OpenCV Version:4.5.5 build with CUDA and opengl support System:Windows ...
0
votes
0answers
29 views

Window creation failed after calling glfwWindowHint to set the opengl profile to the core profile [duplicate]

I am trying to follow this tutorial: https://www.youtube.com/watch?v=Bcs56Mm-FJY&list=PLlrATfBNZ98foTJPJ_Ev03o2oq3-GGOS2&index=12 Specifically, this is the function that causes the problem: // ...
1
vote
0answers
31 views

Read write an image with the GL_ARB_fragment_shader_interlock extension

I am testing whether the GL_ARB_fragment_shader_interlock extension can execute the critical section code of the same pixel position in the order of instance rendering. I used instanced rendering to ...
0
votes
0answers
20 views

OpenGL incorrect polygon rendering when drawing to frame-buffer [closed]

I'm working on a project that uses OpenGL and C++ to render a scene to a color attachment texture on a frame-buffer, then uses that texture as input to a view-plane shader that renders the composited ...
0
votes
0answers
41 views

GLFW Can't create window no matter what

I'm running glfw on Windows 7 64-bit but I'm running the 32-bit version of glfw and 32-bit version of mingw, and I have also tried 64-bit version in vs 2019. The thing is glfw successfully initialized ...
1
vote
0answers
43 views

OpenGL - How to properly add lighting to a scene using the Blinn-Phong shading model?

Recently, I have been trying to add lighting to a simple OpenGL scene using the Blinn-Phong shading model as described in this website. I tried to follow the tutorial as closely as possible. However, ...
0
votes
1answer
25 views

OpenGL texture coordinates are mirrored when GLM_FORCE_LEFT_HANDED is defined

My engine uses a left-handed coordinate system (y up z forward), so I am defining GLM_FORCE_LEFT_HANDED. However, I have found an issue that all textures are mirrored on the x axis. I tried fixing it ...
0
votes
1answer
24 views

How do I convert an OpenGL GLKView to a MTLKit Metal based View?

A few years ago, Apple started warning anyone using GLKit in their app that OpenGL was going away: warning: OpenGLES is deprecated. Consider migrating to Metal instead warning: GLKit is deprecated. ...

15 30 50 per page
1
2 3 4 5
2458