opengl Questions

3

Solved

I keep getting the unresolved external symbol' error when building the program. However, the program compiles fine. I'm using the GLFW and GLAD libraries. #include <glad/glad.h> #include &lt...
Elecampane asked 19/10, 2019 at 2:38

4

Solved

I'm working on a small project and I need to use OpenGL and Qt. I'm a newbie with both libraries, so I need a good tutorial that illustrates how to use both of them together. Is it better to ...
Pedagogics asked 27/4, 2011 at 17:9

4

Solved

I am rendering to a texture through a framebuffer object, and when I draw transparent primitives, the primitives are blended properly with other primitives drawn in that single draw step, but they ...
Argolis asked 31/1, 2010 at 8:50

4

Solved

It is a duplicate and I am sorry about it but I don't have any other options because I can't make comments on answers and they didn't solved my problem. Here is the original post: Building glew on...
Engen asked 19/7, 2014 at 10:3

2

So I'm working on an OpenGL project in C++ and I'm running into a weird issue where after creating the GLFWwindow and drawing to it, the area that I'm drawing in only encompasses the bottom left qu...
Amalee asked 8/7, 2015 at 20:41

2

I'm writting a game with OGL / GLFW in c++. My game is always running at 60 fps and without any screen tearing. After doing some research, it seems that the glfwSwapInterval() function should be ...
Stila asked 18/5, 2018 at 13:37

4

Whenever I resize a GLFW window it doesn't draw while I'm resizing the window. The newly exposed part of the window only gets drawn on after I finish resizing the window. You can see it for yoursel...
Haematozoon asked 25/8, 2017 at 11:21

8

How to take a screenshot of an OpenGL window in C++ and save it to file. I found the glReadPixels() function, but I don't know what to do next. Where I can set path to a file, for example? If not...
Wexford asked 30/4, 2011 at 21:53

6

I've been searching and testing different kinds of rendering libraries for C# days for many weeks now. So far I haven't found a single library that works well on multi-windowed rendering setups. Th...
Marj asked 3/11, 2012 at 21:25

3

Solved

I'm trying to run this openGL example on my Mac from command line using gcc. The XCode is installed, gcc was used many time with other programs (w\o graphics). Following to this topic I run: g++ ...
Laaland asked 12/4, 2014 at 14:33

4

I installed glew, glfw and glm in eclipse cdt(c++) with the gcc/mingw, all statically. All works fine, but I don't like the warning in the output console of eclipse: Warning: corrupt .drectve at...
Wiggins asked 6/8, 2014 at 13:34

6

Solved

I need advice on keyboard event handling with SDL. I have a 1st person camera, and can walk fwd, back, strafe left and right and use the mouse to look around which is great. Here is my processEvent...
Prenotion asked 10/8, 2009 at 3:17

2

Solved

I'm trying to add modern OS X support to OpenTK framework. Mac OS Lion supports OpenGL 3.2 Core context. I can successfully obtain it by using CGL. However, I can't find a straight way to bind the ...
Elementary asked 12/8, 2011 at 13:50

2

Solved

Trying to write the following recursive call: vec3 trace(vec3 origin, vec3 direction, vec3 illum, int order) { float dist; int s_index = getSphereIntersect(origin, direction, dist); //if lig...
Sandie asked 25/4, 2017 at 4:20

5

Solved

I have rendered an objectA in a scene as follows. The scene has many other objects too. void Draw() { if( glIsList( displayListID ) ) { glPushAttrib( GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT|GL...
Patois asked 2/8, 2010 at 13:39

5

Solved

void CalculateFrameRate() { static float framesPerSecond = 0.0f; // This will store our fps static float lastTime = 0.0f; // This will hold the time from the last frame float currentTime = GetT...
Cambium asked 11/4, 2011 at 21:30

3

I'm following this tutorial to learn OpenGL, but I'm having trouble compiling since the compiler can't find one of the header files. This is the file I'm trying to compile: #include <glad/glad...
Dhaulagiri asked 3/8, 2017 at 19:24

2

Solved

In R, it seems none of the currently available options (e.g. image) allow for fast real-time display of 2D raster graphics. I was interested for example to make a real-time interactive Mandelbrot v...
Mickens asked 5/1, 2018 at 18:33

2

I'm trying to make an editor using OpenGL similar to MS Paint, with a panel and all. Where can I find material on how to create buttons and icons? P.S - I did find out about GLUI that provides suc...
Pieeyed asked 30/4, 2009 at 5:15

3

Solved

I need help setting up OpenGL and SDL on Ubuntu. Is Ubuntu ideal for this kind of graphics development? I have CodeBlocks IDE for C/C++ and I have downloaded the SDL 1.2 libraries. What I am having...
Shaven asked 20/10, 2011 at 21:41

2

Solved

I need to get the maximum of a vec3 in GLSL. Currently I am doing max(max(col.r, col.g),col.b) It works. But I am wondering if there a better way to do this with one built-in function call?
Timi asked 18/1, 2015 at 1:14

2

In an older version of OpenCV I could render using OpenGL to the backbuffer, used glreadpixels to "copy" the pixels to an OpenCV image (iplimage?) for some processing (blurring, templatematching wi...
Rhodes asked 8/7, 2015 at 5:52

6

Solved

I'd like to open an OpenGL context without X in Linux. Is there any way at all to do it? I know it's possible for integrated Intel graphics card hardware, though most people have Nvidia cards in t...
Cambist asked 24/7, 2010 at 19:53

2

Solved

I want to use OpenGL rendering without X, with google i find it: http://dvdhrm.wordpress.com/2012/08/11/kmscon-linux-kmsdrm-based-virtual-console/ there says that it is possible. I should use DRM a...
Nepil asked 17/4, 2014 at 17:40

4

Solved

I need an acos() function with double precision within a compute shader. Since there is no built-in function of acos() in GLSL with double precision, I tried to implement my own. At first, I imple...
Mahau asked 10/3, 2015 at 16:33

© 2022 - 2025 — McMap. All rights reserved.