opengl-4 Questions
3
Solved
What are the diffences between "Shader Storage Buffer Objects" (SSBO) and Image load store operations
When should one be used and not the other?
They both can have atomic operations and I assume ...
1
I am trying to write a real time ray tracer using compute shaders in opengl 4.3. I know that this is a rather popular question.
I have checked this, and this, but the architecture provided over th...
Hanway asked 27/5, 2020 at 8:2
1
I am coding my own rendering engine. Currently I am working on terrain.
I render the terrain using glDrawArraysInstanced. The terrain is made out of a lot of "chunks". Every chunk is one quad whic...
Pentathlon asked 13/6, 2016 at 19:0
3
1
Solved
The OpenGL gl_VertexID page clearly states:
gl_VertexID is a vertex language input variable that holds an integer index for the vertex
while the OpenGL Vertex Shader page says it is
the ind...
2
Solved
I was looking for ways to associate attributes with arbitrary groupings of verticies, at first instancing appeared to be the only way for me to accomplish this, but then I stumbled up this question...
Disproportionate asked 1/6, 2018 at 20:14
1
Solved
OpenGL has array textures, denoted in shaders by specific sampler types:
sampler2DArray array_texture;
But GLSL also allows samplers to be aggregated into arrays:
sampler2D array_of_textures[10...
1
My intention is to create a relatively simple video playback system to be used in a larger program that I am working on. Relevant code to the video decoder is here. The best I have been able to do ...
Cari asked 1/1, 2018 at 6:54
3
Given we are using OpenGL 4.5 or have support for the GL_ARB_direct_state_access extension, we have the new function glCreateBuffers.
This function has an identical signature to glGenBuffers, but ...
2
I am trying to figure out how SSBO works with a very basic example. The vertex shader:
#version 430
layout(location = 0) in vec2 Vertex;
void main() {
gl_Position = vec4(Vertex, 0.0, 1.0);
}
...
1
Solved
I have a very simple program that maps a dummy red texture to a quad.
Here is the texture definition in C++:
struct DummyRGB8Texture2d
{
uint8_t data[3*4];
int width;
int height;
};
DummyRGB...
Anuradhapura asked 13/9, 2017 at 16:21
1
Solved
I'm in a bit of a catch-22 here. I can't debug my C++ OpenGL program because activating debug messages causes a segfault.
I have a debug callback function I register:
static void APIENTRY openglC...
0
I'm trying my hand at shader storage buffer objects (aka Buffer Blocks) and there are a couple of things I don't fully grasp. What I'm trying to do is to store the (simplified) data of an indetermi...
Chloe asked 26/7, 2017 at 4:56
2
Solved
I'm trying to understand Textures, Texture Units and Samplers in OpenGL 4.5. I'm attaching a picture of what I'm trying to figure out. I think in my example everything is correct, but I am not so...
Alphaalphabet asked 21/7, 2017 at 9:9
1
Solved
I've been trying to write a general compute shader Gaussian blur implemenation.
It basically works, however it contains artifacts which change every frame even when the scene is static. I've spent...
Execrable asked 16/12, 2016 at 1:25
1
Solved
From the OpenGL documentation:
dFdxFine and dFdyFine calculate derivatives using local differencing based on on the value of p for the current fragment and its immediate neighbor(s).
dFdxCoar...
3
Solved
Me and a friend have been having an ongoing argument about the stencil buffer. In short I haven't been able to find a situation where the stencil buffer would provide any advantage over the program...
Unnumbered asked 10/8, 2016 at 22:23
1
The Short Version (TL;DR)
I have a Camera attached to a SceneNode and movement works fine as long as the SceneNode's rotation/axes are aligned with the world's. However, when an object rotates to ...
1
Solved
1
Solved
OpenGL 4.3 and OpenGL ES 3.1 added several alternative functions for specifying vertex arrays: glVertexAttribFormat, glBindVertexBuffers, etc. But we already had functions for specifying vertex arr...
4
Solved
I work with OpenGL4.X .Recently I read this Apple OpenGLES2 doc where it is stated that using interleaved attribute arrays improves performance on IOS mobile devices and is the recommended way (ins...
Fullrigged asked 14/2, 2013 at 12:29
6
Solved
I am aware that there were similar questions in past few years, but after doing some researches I still can't decide where from and what should I learn.
I would also like to see your current, actua...
1
Solved
I'm following the steps in HOWTOBUILD.txt. I have the necessary files for glfw built already. For the first time, the linker is complaining about glfw. After searching, it seems I need to link agai...
Madonia asked 9/8, 2015 at 0:53
2
Solved
To begin there are 8 types of Buffer Objects in OpenGL:
GL_ARRAY_BUFFER
GL_ELEMENT_ARRAY_BUFFER
GL_COPY_READ_BUFFER
...
They are enums, or more specifically GLenum's. Where GLenum is a unsig...
1
Solved
I have some big performance issues here
So I would like to take some measurements on the gpu side.
By reading this thread I wrote this code around my draw functions, including the gl error check ...
Slowly asked 7/5, 2015 at 15:6
1 Next >
© 2022 - 2024 — McMap. All rights reserved.