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: texture operations

  1. #1
    Junior Member Newbie
    Join Date
    Jan 2012
    Posts
    1

    texture operations

    Hello guys,

    First time poster and totally newbie, easy on me please.

    I have an rgb texture. I'd like to read in every single row and rearrange it's texels in y based on a given function. Add them together and get a new texture.

    Could you tell me please what functions should I use?

    Thanks!

  2. #2
    Junior Member Regular Contributor
    Join Date
    Jun 2009
    Location
    FL , USA
    Posts
    194

    Re: texture operations

    Suggestion: Start with shader programming - GLSL and also read about 2D samplers.

    Else if you do not wish to do shader programming, then do what ever operations you wish in a buffer. Then use that buffer data to load as a texture in texture unit with GL_RGB format. Details are covered in chapter related to texture in red book.

  3. #3
    Junior Member Regular Contributor Kopelrativ's Avatar
    Join Date
    Apr 2011
    Posts
    212

    Re: texture operations

    More information on your requirements are needed. The given question mentions nothing about showing something on a screen, which means OpenGL is not needed.

    I think this is best done outside of OpenGL. Use any programming language you prefer.

    Or is it that you want to show the result on screen, with changes every frame?

Posting Permissions

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