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

Thread: rendering luminance

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

    rendering luminance

    I can't find a way to render the luminance of the scene. The goal is to create a night vision effect that would render the luminance of the scene modulated in green. Does someone have a clue how to achieve this ?

  2. #2
    Junior Member Regular Contributor
    Join Date
    Oct 2002
    Location
    San Diego, CA, USA
    Posts
    211

    Re: rendering luminance

    It's easy. There are material attributes that you can change, all you have to do is set their "ambient" lighting to whatever luminance value you need. Lemme see if I can get any more info for you... I believe it's glMaterial() and other associated functions. Well, I am not at home so I'll have to get back to you on this matter. Anyways, what I can gather here, I think you turn off lighting, and then control the object's colors via the materials. Somebody plz correct me if I'm wrong.

Posting Permissions

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