opengl Questions

3

Solved

I am having problems getting my GLSL shaders to work on both AMD and Nvidia hardware. I am not looking for help fixing a particular shader, but how to generally avoid getting these problems. Is it...
Tenno asked 16/7, 2013 at 23:44

1

Solved

Under normal circumstances, creating a shared handle in DX using CreateSharedHandle, then using glImportMemoryWin32HandleEXT in OpenGL should allow sharing. I tried rendering a triangle in DX and d...
Streamliner asked 22/9 at 14:41

6

Solved

I want to shade a quad with checkers: f(P) = [floor(Px) + floor(Py)] mod 2. My quad is: glBegin(GL_QUADS); glVertex3f(0,0,0.0); glVertex3f(4,0,0.0); glVertex3f(4,4,0.0); glVertex3f(0,4, 0...
Todhunter asked 14/1, 2011 at 18:34

3

I have a camera view matrix which I received from a GL program. I know that this matrix is right-handed since this is the way GL works, but how can I check whether this matrix is right-handed or le...
Emergency asked 16/12, 2010 at 18:20

3

Solved

After writing a shader using GLee to my OpenGL project and compiling, I received the error LNK1104: cannot open file 'LIBC.lib'. I've tried adding it and ignoring it as others suggested, but ...
Eldenelder asked 12/4, 2013 at 7:42

2

Solved

I've discovered CADisplayLink for IOS 3.1+ which triggers events when the display has been refreshed, effectively allowing you to synchronise with display updates without having to use NSTimer. Is...
Hindquarter asked 6/10, 2010 at 13:28

3

Solved

I want to access the depth buffer value at the currently processed pixel in a pixel shader. How can we achieve this goal? Basically, there seems to be two options: Render depth to texture. How c...
Poff asked 29/4, 2014 at 10:29

1

Solved

I've got a texture that I want to use as a indirect radiance light. There is a problem that when I sample this texture's lowest mip the result looks like this: but actually should look like this: ...
Austriahungary asked 3/8 at 15:31

3

Solved

I do not have permissions to put GLM into usr/local/include or usr/include but I need to use GLM for openGL. The code (I am not able to change) looks for GLM like this: #include <glm/glm.hpp&gt...
Riha asked 11/3, 2015 at 2:14

1

My attempts at High-DPI rendering on MacOS for my game, Bitfighter, always end up looking bad, like a scaled-up version of a low-res game. The game uses SDL2 + OpenGL and I have correctly enabled ...
Resound asked 17/9, 2018 at 17:29

2

Solved

I am using two OpenGL contexts in my application. The first one is used to render data, the second one to background load and generate VBOs and textures. When my loading context generates a VBO and...
Smoot asked 17/9, 2020 at 9:2

5

Solved

I'm trying to compile a program on MacOSX that I originally wrote on a Windows OS. The program is a large C++ program with the OpenGL API among other things, totaling very many directories and file...
Mccallum asked 28/10, 2014 at 2:50

1

Update 2024-06-26: Question rewritten to include updated information and consolidate research results. SUMMARY It seems that vsync with OpenGL is broken on Windows in windowed mode. Even in very si...
Ordway asked 14/8, 2017 at 14:30

4

Solved

I want to draw a line in OpenGL. glBegin(GL_LINES); glVertex2f(.25,0.25); glVertex2f(.75,.75); glEnd(); This code draws the line, but if I want to draw a line from coordinate (10,10) to coordina...
Hibiscus asked 23/1, 2013 at 18:0

3

Solved

I have a opengl buffer that I need to forward directly to ffmpeg to do the nvenc based h264 encoding. My current way of doing this is glReadPixels to get the pixels out of the frame buffer a...
Coed asked 16/4, 2018 at 16:58

10

Solved

I've been reading a lot about this, the more I read the more confused I get. My understanding: In row-major rows are stored contiguously in memory, in column-major columns are stored contiguously ...
Moneywort asked 23/11, 2015 at 2:8

3

Solved

I'm making a CAD software that will create different OpenGL contexts for similar view (if they aren't showing the same thing). I would like to share much data as possible between them OpenGL conte...
Mraz asked 27/4, 2019 at 21:47

2

Solved

I am using the ARB_debug_output extension. The driver gives me this warning: Program/shader state performance warning: Vertex shader in program 16 is being recompiled based on GL state. So, I tri...
Desegregate asked 12/8, 2019 at 2:1

6

Solved

What's the difference between a UV texture coordinate vs. ST texture Coordinate? I know that UV and ST are used in OpenGL. I also know that ST are also used in Java.
Sexlimited asked 13/5, 2012 at 0:8

7

Solved

I'm trying to display my frames-per-second in my cube-rendering program. I would like to see its performance. So, how can I do it? I have done research on this already, but the examples I've seen u...
Cochrane asked 15/2, 2015 at 20:29

9

Solved

I'm having trouble distinguishing the practical difference between calling glFlush() and glFinish(). The docs say that glFlush() and glFinish() will push all buffered operations to OpenGL so that ...
Desmoid asked 26/1, 2010 at 22:41

1

Generally what I'm trying to achieve: we have map data that historically was all 2D, and the coordinate system we use is the origin point (0,0) at the top left, positive x goes right, positive y go...
Unconditional asked 24/2, 2016 at 17:25

2

Solved

I am trying to run basic examples of OpenGL using QT Creator to give color to a window. However, I am getting error in the compilation when calling the OpenGL instruction: glClearColor(1.0,1.0,0.0,...
Retort asked 10/1, 2016 at 0:13

3

Solved

I'm learning a spot of 3d opengl, and it's going rather well, I've got a nice camera moving about and some simple cube objects, at the moment. Currently using vertex arrays, but I'm swapping to VBO...
Ostmark asked 15/11, 2011 at 20:0

2

Solved

I guess this is more a math question than it is an OpenGL one, but I digress. Anyways, if the whole purpose of the perspective divide is to get usable x and y coordinates, why bother dividing z by ...
Solleret asked 30/8, 2014 at 16:44

© 2022 - 2024 — McMap. All rights reserved.