Results 1 to 2 of 2

Thread: glTexImage2D

  1. #1
    Guest

    glTexImage2D

    Hello !

    I've read many post on this forum
    about the bad perfs of glReadPixel,
    more generally about all the transfer
    to video memory.
    What about glTexImage2D ? Is this function
    as slow as glReadPixel ? More generally,
    is it possible to generate new texture
    at each frame at a reasonnable frequency ?
    Are there extensions like (sthg)_range
    that could speed up the thing ? Has
    anyone already done such thing ?

    Thx for all your advices and comments

    escondida

  2. #2
    Senior Member Regular Contributor
    Join Date
    Apr 2001
    Posts
    340

    Re: glTexImage2D

    About glReadPixels : it is slow because it retrieves data from the graphics card, which is not designed to send data back to the host; it is designed to receive and process data.

    About dynamic textures : use glTexSubImage instead of glTexImage. You won't achieve very high performance if you use large dynamic textures, though.
    At the moment, there is no multi-vendor extension for efficient dynamic texturing. For NVIDIA chips, there is NV_pixel_data_range.

Similar Threads

  1. FBO and glTexImage2D
    By LaLaChen in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 04-30-2013, 11:23 PM
  2. about glTexImage2D
    By freesui1984 in forum OpenGL ES
    Replies: 7
    Last Post: 07-21-2008, 08:35 PM
  3. glTexImage2D
    By rpenland in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 12-10-2003, 02:06 AM
  4. glTexImage2D
    By in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 02-26-2003, 08:01 AM
  5. glTexImage2D
    By nystep in forum OpenGL: Advanced Coding
    Replies: 16
    Last Post: 07-16-2002, 06:45 AM

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