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 <...
4
Solved
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...
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...
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
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++ ...
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...
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...
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...
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...
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...
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?
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...
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...
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.