Results 1 to 4 of 4

Thread: Shader to create RGB Transition effect

  1. #1
    Junior Member
    Join Date
    Jun 2012
    Posts
    19

    Shader to create RGB Transition effect

    hi friends,

    I am new to Opengl es 2.0. In first week of use.

    Can you tell me what manipulationof Fragment shader to have a RGB transition effect on the texture

    for clear understanding watch first few seconds of this youtube video
    http://www.youtube.com/watch?v=bBR1_t-s3rw

    Thank you guys for the help

  2. #2
    Junior Member
    Join Date
    Apr 2011
    Posts
    5

    Re: Shader to create RGB Transition effect

    Hi Swathi,

    Have you tried getting the individual red, green and blue colors in the shader using color.r, .g and .b, then do random translate while drawing your texture three times?

    Aries

  3. #3
    Junior Member
    Join Date
    Jun 2012
    Posts
    19

    Re: Shader to create RGB Transition effect

    Hey,
    Ariesloo i did almost same. it created some random effect close to rbg effect and was cool.

    Thank you very much for the help.

    Now i am working on multi textures and trying to move one texture and keep one constant. dont know how to do? can you put some light on it.

    how do i split the fragment and vertex shader. if i just use same vertex and coordinates and make number gl_position=att*uni for each texture and try to move one texture using estranslate its not moving or rotating.

    thank you again

  4. #4
    Junior Member
    Join Date
    Apr 2011
    Posts
    5

    Re: Shader to create RGB Transition effect

    Hi Swathi,

    Great to hear that.

    Hmm if I have multiple texture handle IDs, for each texture bind and draw, i will update the translate matrix, so each texture will have its own positions. Thus my
    gl_position will be something like gl_position = matrixTranslate * vertex;
    So the same fragment and vertex shader is used.
    Hope it helps?

    Aries

Similar Threads

  1. Can I only Create a Pbuffer without create a window surface
    By sunim in forum Cross API and window system integration
    Replies: 3
    Last Post: 02-04-2012, 12:14 PM
  2. Doubt on state transition
    By maks78in in forum OpenMAX
    Replies: 1
    Last Post: 01-01-1970, 12:00 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
  •