Questions tagged [buffers]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
410 views

Feeding vertex data to a compute shader

I'm writing a CAD program in vulkan. In my current design, I have line paths represented as large vertex buffers for rendering. I would like to implement an algorithm for extruding the path outwards, ...
0
votes
1answer
202 views

Multiple VAO share a EBO (OpenGL 3.3)

As mentioned here, multiple VAOs can share a single VBO. However, can multiple VAOs share a single EBO? For example, I want to create 2 rectangles. So, I do the following: ...
9
votes
2answers
510 views

How updating a depth buffer works in GPU?

Right now I'm trying to implement some sort of depth buffer in software and I have a huge problem when I'm writing to it. Having one mutex is absolute overkill. So I created a number of mutexes equal ...
2
votes
1answer
182 views

How to solve Z buffer artifacts

I am currently rendering a scene in the most standard fashion possible (triangle projection and Blinn-Phong for shading) However I am getting some artifacts: As you can see the lion head is not ...
1
vote
1answer
342 views

OpenGL back and front buffer - counting and adjusting the number of red pixels before displaying to screen

I'm writing a function that reads the number of red pixels on the left and right halves of the screen, it makes adjustments while the difference between the number of red pixels falls outside of a ...
3
votes
1answer
1k views

Replacing Vertex Attributes (glBufferData vs glBufferSubData)

I'm sending a large number of data to the vertex shader. I use glBufferData to generate my ...
5
votes
3answers
2k views

Is it possible to create minimal glTF files with vertex and index buffers?

I am currently looking into glTF to use as a transfer format for my WebGL project. I already have the geometries I wish to render on my WebGL client available as preprocessed vertex and index buffers (...
3
votes
3answers
492 views

What is an OpenGL VAO in a nutshell?

Before I get downvoted. I am not asking how to use them, I know how to use them. I am trying to understand what they are. For example, an array is actually a contiguous section of memory, a linked ...
1
vote
1answer
295 views

Range of integers returned by glGenBuffers?

I'm developing a general Mesh class with the help of LearnOpenGL. In the example he creates a class which assumes that you want to generate a VAO, VBO, and an EBO but I don't usually use EBOs so I ...
4
votes
1answer
298 views

Z buffer working in OpenGL

After Z-Buffer Testing does the fragment shader run on the discarded fragments? Does the Z-Test happen after the fragment shader runs? Please, tell me the step by step events that occur in the Z-Test....
2
votes
1answer
343 views

Multiple buffers and calling glBufferSubData

In my project, for convenience I would like to use many buffers. Many buffers in my case means 50-100 terrain patches represented by buffers with vertex coordinates, normals, indices and maybe color. ...
5
votes
1answer
2k views

How double-buffers works in opengl?

As I understand, the back-buffer is used for rendering the image while the front-buffer is drawn on the screen. So if you have only one image to be drawn on the screen, then you only need to swap the ...
2
votes
1answer
72 views

Use big frame buffer to control a small display

I am really new in computer graphic area. Suppose I have 1024*1024 frame buffer, and I want to use it to control a 512*512 display. What shall I do? In my opinion, I will only read the information in ...
1
vote
0answers
49 views

How do you sample an analogue image and store it in a true-colour frame buffer? [closed]

I really cannot get my head around on this issue - how does an analogue image is sampled and then stored in a ture-colour frame buffer (e.g. in a camera) and how do you prevent noise when you do so? ...
4
votes
2answers
2k views

Are there any gltf example datasets available? [closed]

I'm currently researching my options on effeciently exchanging data for a webgl application. I understand the gltf format is still being drafted but I need some example data to understand whether this ...
3
votes
2answers
675 views

How to generate binary gltf array buffers?

I'm looking for any way which enables me to quickly generate gltf files including the conversion of plain array buffers (vertex, index, color, etc.) into binary (bgltf, glb, bin) files. I'm asking ...
1
vote
2answers
1k views

How to encode/decode buffer data in glTF?

I'm playing around with base64 embedded data URI's and tried to analyze the buffer data of the gltf box sample model, as defined in this example here (line 76). ...
4
votes
1answer
566 views

Compute shaders: one-time-only versus persistent buffers

When using a Compute Shader, is it possible to keep a buffer in the GPU memory during the whole run-time duration of the application, so whenever the original Compute Shader or other Compute Shaders ...