Geeks3D Forums

GeeXLab => GeeXLab - english forum => Topic started by: JeGX on May 16, 2014, 05:17:55 PM

Title: GeForce GTX LED Logo Demo
Post by: JeGX on May 16, 2014, 05:17:55 PM
There is a new demo in the code sample pack (http://www.geeks3d.com/glslhacker/cs/) that shows how to control the LED logo of recent GeForce GTX cards.

The demo is available in the host_api/GEFORCE_GTX_LED/ folder.

(http://www.ozone3d.net/public/jegx/201405/glslhacker-geforce-gtx-led-logo-music-sync.jpg)


The GEFORCE GTX LED is managed by three functions in the gh_gml module:

- gh_gml.geforce_logo_is_illumination_supported()
- gh_gml.geforce_logo_get_illumination()
- gh_gml.geforce_logo_set_illumination()

Here is a code snippet in Lua that checks the support of LED logo and sets the illumination to the max (min=0,  max=100):

Code: [Select]
gpu_index = 0  -- first GPU
if (gh_gml.geforce_logo_is_illumination_supported(gpu_index) == 1) then
  gh_gml.geforce_logo_set_illumination(gpu_index, 100)
end