Questions tagged [transform-feedback]

42 questions
5
votes
1 answer

Transform feedback without a framebuffer?

I'm interested in using a vertex shader to process a buffer without producing any rendered output. Here's the relevant snippet: glUseProgram(program); GLuint tfOutputBuffer; glGenBuffers(1, &tfOutputBuffer); glBindBuffer(GL_ARRAY_BUFFER,…
smokris
  • 11,740
  • 2
  • 39
  • 59
3
votes
1 answer

glMapBufferRange() returns all zeros in Android OpenGLES 3.0 using TrasnformFeedback

UPDATE: This is working and up on gist now! Thanks Reto I am working on an Android implementation of transform feedback following this example. runs pretty well without any errors, but I am getting all zeros out when reading the TransformFeedback…
HPP
  • 1,074
  • 1
  • 13
  • 28
3
votes
1 answer

Where is GLES30.glGetBufferSubData? how to read transform feedback data opengles 3.0

So I am following one of the simplest examples I could find on transform feedback, here, and converting it to Android/Java, but Android seems to be missing the glGetBufferSubData function available in OpenGL ES 3.0. I've tried searching the Android…
HPP
  • 1,074
  • 1
  • 13
  • 28
3
votes
0 answers

OpenGL transform feedback definition completely inside shader

I'm trying to get my transform feedback running. I wanted to specify my buffer layout completely from the shaders using the core 4.4 or the GL_ARB_enhanced_layouts extension using layout (xfb_offset=xx) declarers. I assumed that after declaring…
Thomas B.
  • 63
  • 3
2
votes
1 answer

glMapBufferRange returns null and produces a GL_INVALID_ENUM?

OpenGL ES 3.0 here. I am trying to read back the contents of a TRANSFORM_FEEDBACK buffer like this: GLES30.glBindBufferBase(GLES30.GL_TRANSFORM_FEEDBACK_BUFFER, 0, tfo ); GLES30.glBeginTransformFeedback(…
Leszek
  • 1,181
  • 1
  • 10
  • 21
2
votes
0 answers

OpenGL: Repeated use of transform feedback buffers overwrites already established textures

I have a working implementation of this technique for view frustum culling of instanced geometry. The gist of the technique is that we use a vertex shader to check if the bounds of an object lie within the view frustum, and if they do we output the…
2
votes
0 answers

OpenGL c++ Transform Feedback values do not update

We are currently working on a GPU Particle System. Something on my implementation is wrong, it seems the Buffers do not get updated or drawn to. I would be very grateful for any help! Particle system init: Particle…
2
votes
1 answer

OpenGL 4.3 or 4.5 Transform Feedback Not Working

There are two debug printf segments. The first one prints out right data but the second does not. Where did I do wrong? Oh, I'm using the same vertex and fragment shader for both getting the vertices data and drawing them again process. #include…
ACskyline
  • 61
  • 7
2
votes
1 answer

OpenGLES 3.0 Shader Compile error on Android Device for in and out storage qualifiers

So I am updating my app to use OpenGLES 3.0 to take advantage of transform feedback, but the shader isn't compiling. error: 06-27 17:29:43.299 18593-18627/com.harmonicprocesses.penelopefree E/MyGLRenderer﹕ Could not compile shader 35633: 06-27…
HPP
  • 1,074
  • 1
  • 13
  • 28
2
votes
1 answer

Render particles

I am trying to create a particle system. I am using transform feedback and at this moment I am just trying to get this to work for one point. The problem is that more than one point is rendered for every iteration of the draw loop. It seems that…
2
votes
2 answers

Transform Feedback Variable Redeclaration Error on iOS OpenGL ES 3.0

I am currently trying to get pixel information back out of the GPU so it can be processed/saved/fed back through the loop. To do this, I am attempting to implement transform feedback. I am encountering issues splitting up the GPU's pipeline. This…
2
votes
1 answer

Real time OpenGL ES raytracing\raycasting on iOS with transform feedback?

We have an MRI scan and we would like to perform real time raycasting in OpenGL on iOS in order to render the surface from different angles without polygonizing it. In fact we are only interested in the depth map generated by rendering. Ive seen a…
twerdster
  • 4,977
  • 3
  • 40
  • 70
2
votes
0 answers

Transform feedback works only first frame

Transform feedback works the first frame, but not after that. This is particle system based on "GLSL Cookbook" example, though I'm converting it to OpenGL 3.3. My program set up: I have two sets of vertex array buffers for each attribute (2 for…
leyota
  • 37
  • 4
1
vote
1 answer

Transform feedback vertices always match order of input buffer

After reading Jason Ekstrand's blog on adding the transform feedback extension to Vulkan, he points out that the primitives in the transform feedback buffer aren't guaranteed to reflect the order and count of primitives in the input buffer because…
Andrew
  • 14,204
  • 15
  • 60
  • 104
1
vote
2 answers

Animate vertex positions with webgl2 transform feedback using two programs

I try to follow example from webgl2fundamentals regarding transform feedback. My goal is to create animation of vertex positions in a way that there are two programs: doing animation calculations each frame and writing output to a buffer doing…
mtx
  • 1,196
  • 2
  • 17
  • 41
1
2 3