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 4 of 4

Thread: LUT into OpenGL

  1. #1
    Newbie Newbie
    Join Date
    Jun 2014
    Posts
    2

    Cool LUT into OpenGL

    Hi guys, I'm working on making some vintage camera filters and using LUTs that I need to render in OpenGL ES (for iphone).

    Any ideas of how I could get these LUTs into OpenGL?

    Thanks!

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Apr 2010
    Location
    Germany
    Posts
    1,135
    A 2D texture with nearest filtering is bascially a 2D LUT. What kind of filter do you want to simulate?

  3. #3
    Newbie Newbie
    Join Date
    Jun 2014
    Posts
    2
    Thanks for the reply thokra. I'm trying to create a generator to add noise to video when recording. Think 8mm or something of that nature. Also trying to recreate an 80s video camera like the Sony HVC 3000.

    Thoughts?

  4. #4
    Senior Member OpenGL Pro
    Join Date
    Apr 2010
    Location
    Germany
    Posts
    1,135
    Although in the GLSL spec, no vendor to this day seems to actually implement GLSL noise functions. So, you'll have to search for ways to generate noise in a shader. This article presents an interesting new approach to generating 2D noise - which you should be able to port to GLSL. Also, if you look for "noise glsl" you'll surely find stuff - I guarantee. Once you do, you can apply noise to each fragment as needed.

    If you don't want to generate noise on the fly, you can always precompute or externally generate a noise texture (i.e with GIMP or Photoshop), and try various ways if shifting the tex coords you use to look up values in the texture to get randomized appearance.

    For the 80s camera effect, you'd probably want some color transformation to change saturation, contrast and so on.

Posting Permissions

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