PDA

View Full Version : light



giuseppe500
04-07-2010, 08:34 AM
Hy,
how i can setup a spot light in opengl?
the code changes on the different versions of opengl?
How i know what type of opengl i'm use?
thanks.

kowal
04-07-2010, 09:52 AM
To query version of OpenGL on linux type

glxinfo | grep "OpenGL version"
on Windows there are number of programs which can do that, for example OpenGL Extension Viewer (GLView or sth. like that)
link: http://www.realtech-vr.com/glview/download.html

Spot light setup (old way, fixed pipeline - Opengl 1.x (mostly deprecated))
http://jerome.jouvie.free.fr/OpenGl/Tutorials/Tutorial13.php

Spot light setup (new way, shaders, GLSL)
http://www.lighthouse3d.com/opengl/glsl/index.php?lights