Results 1 to 4 of 4

Thread: Bypass parts of pipeline

  1. #1
    Senior Member Regular Contributor
    Join Date
    Mar 2010
    Posts
    213

    Bypass parts of pipeline

    Hello everyone,

    I was wondering if its possible to obtain the contents of the framebuffer, then update it somehow and then get it back refreshed on the screen?
    Well i could use an FBO, render to target(target could be a quad). But i just wanted to know if there is any way other than this approach.

    I would not like the vertex processing again, thus avoiding some calculations.

    Is that possible in any way?
    Thanks!

  2. #2
    Member Contributor
    Join Date
    Oct 2011
    Posts
    73

    Re: Bypass parts of pipeline

    You could, for example, use an FBO with texture attachments, draw to it then read the texture contents via glGetTexImage or glReadPixels, modify the content and then reupload the texture with glTexSubImage.

    But unless you seriously need to do something you cannot do with the GPU (perhaps some strange filter), I see no reason to do this just to "not do the vertex processing again".

    Processing 4 vertices to draw a full screen quad is pretty much free in the grand scheme of things. You don't even need to transform them as you can simply used clip space coordinates for them. If it still bothers you, you could use a single vertex and generate two triangles in the geometry shader. Heh.

  3. #3
    Senior Member OpenGL Pro BionicBytes's Avatar
    Join Date
    Mar 2009
    Location
    UK, London
    Posts
    1,161

    Re: Bypass parts of pipeline

    There is the concept of Transform Feedback (DirectX call it render to vertex buffer) which allows you to sumbit some drawcalls, process them in some way (Vertex shader, Geometry shader) and save the results into a buffer object. That buffer object is then used in the second pass.
    Just a thought.

  4. #4
    Senior Member Regular Contributor
    Join Date
    Mar 2010
    Posts
    213

    Re: Bypass parts of pipeline

    Thanks for the answers

Similar Threads

  1. Working with Programmable Pipeline on Previous Fixed Pipeline Code
    By sinaxp19 in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 03-03-2015, 12:15 AM
  2. Migration from Fixed pipeline to Programmable pipeline
    By Boumbles in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 06-27-2014, 04:43 PM
  3. Drawing parts of a VBO
    By Elurahu in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 09-25-2011, 12:29 PM
  4. Opengl rendering "bypass" with CUDA
    By edward_saa in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 03-21-2011, 06:12 AM
  5. can a vertex shader bypass the miniport settings?
    By Tzupy in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 09-25-2002, 12:36 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean