Part of the Khronos Group

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Light Sensor?

  1. #1
    Junior Member Newbie
    Join Date
    May 2012

    Light Sensor?


    Im currently messing around with some simulations and additionally use OpenGL (lwjgj) as Display-Engine.

    Now i wondered if it is possible to include the OpenGL light rendering for some calculations?

    Is there any way to determine a final light(/color) value for a certain Point (/vertice/poly/...) using OpenGL e.g. after a draw call?

    In other words, i need a light sensor and its values after each draw-call.

    To make an easy example:
    A cube in a scene with light, how much light reaches each of the vertices for each site?

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Jan 2012
    You probably can't do things on a per vertex basis but you can on a per fragment. Have a look at deferred rendering

Posting Permissions

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