Fwd: [Fieldtrip] Lighting Patch for Fieldtrip

Ivan Tomac tomac at pacific.net.au
Wed Jan 7 10:31:38 EST 2009


Hi David,

David Sankel wrote:
> On Tue, Jan 6, 2009 at 10:43 PM, Conal Elliott <conal at conal.net> wrote:
>   
>> Also, I'd also like to see some response to Ivan's last message on the
>> thread "Adding lighting to FieldTrip".  I appreciate Ivan's focus on GPU
>> execution, which I hope will soon replace CPU execution in the
>> implementation of FieldTrip.  I expect we'll get a quite dramatic boost in
>> performance as well as having more flexibility.
>>     
>
> The FieldTrip.Light structure, from a semantic point of view, gives
> access to a lot of common light models and is independent of the
> underlying OpenGL operations.
>
> If the back-end code is completely replaced with GLSL, it will just be
> a matter of setting "uniform variables" instead of glLight calls in
> renderLightIO and possibly expanding the Light structure with more
> funky light forms.
>
>   
Yes the code behind it could be changed to use shaders and all that 
would do is emulate legacy OpenGL.
These concepts are tied to legacy OpenGL.

The lighting models are just simple functions and with shaders they are 
best represented as such.

Ivan


More information about the FieldTrip mailing list