PDA

View Full Version : Light Sensor?



Meahn4
12-03-2013, 04:40 PM
Hello,

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?

tonyo_au
12-05-2013, 06:36 PM
You probably can't do things on a per vertex basis but you can on a per fragment. Have a look at deferred rendering