Part of the Khronos Group
OpenGL.org

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

  1. #1
    Junior Member Regular Contributor
    Join Date
    Apr 2010
    Posts
    110

    light

    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.

  2. #2
    Junior Member Regular Contributor
    Join Date
    Aug 2009
    Location
    Poland
    Posts
    109

    Re: light

    To query version of OpenGL on linux type
    Code :
    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/...Tutorial13.php

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

Posting Permissions

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