Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: rendering to multiple targets

  1. #1
    Junior Member Newbie
    Join Date
    Nov 2002
    Posts
    2

    rendering to multiple targets

    Is it possible to render to several textures in one pass?

    It's also possible rendering to multiple textures using the arb_fragment_program extension. If so, how it's done.

  2. #2
    Member Regular Contributor
    Join Date
    Jul 2002
    Location
    Austria
    Posts
    280

    Re: rendering to multiple targets

    Is it possible to render to several textures in one pass?
    AFAIK currently only DirectX 9 allows this.

    It's also possible rendering to multiple textures using the arb_fragment_program extension.
    If that was supposed to be a question: No it's not possible with ARBfp.

    Cheers.
    XEngine - The Platform- and API-Independent 3D Engine
    with Programmable Pipeline Support: [URL=http://xengine.sourceforge.net
    My]http://xengine.sourceforge.net

  3. #3
    Senior Member OpenGL Guru Humus's Avatar
    Join Date
    Mar 2000
    Location
    Stockholm, Sweden
    Posts
    2,345

    Re: rendering to multiple targets

    I think this is what GL_ATI_draw_buffers does. From glATI.h,

    #define GL_MAX_DRAW_BUFFERS_ATI 0x8824
    #define GL_DRAW_BUFFER0_ATI 0x8825
    #define GL_DRAW_BUFFER1_ATI 0x8826
    #define GL_DRAW_BUFFER2_ATI 0x8827
    #define GL_DRAW_BUFFER3_ATI 0x8828
    #define GL_DRAW_BUFFER4_ATI 0x8829
    #define GL_DRAW_BUFFER5_ATI 0x882A
    #define GL_DRAW_BUFFER6_ATI 0x882B
    #define GL_DRAW_BUFFER7_ATI 0x882C
    #define GL_DRAW_BUFFER8_ATI 0x882D
    #define GL_DRAW_BUFFER9_ATI 0x882E
    #define GL_DRAW_BUFFER10_ATI 0x882F
    #define GL_DRAW_BUFFER11_ATI 0x8830
    #define GL_DRAW_BUFFER12_ATI 0x8831
    #define GL_DRAW_BUFFER13_ATI 0x8832
    #define GL_DRAW_BUFFER14_ATI 0x8833
    #define GL_DRAW_BUFFER15_ATI 0x8834

    typedef void (APIENTRY * PFNGLDRAWBUFFERSATIPROC) (GLsizei n, const GLenum *bufs);

    I'm not sure I understand how to use it though :/, hoping we'll see a spec soon.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •