Part of the Khronos Group

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Torch Light

  1. #1
    Junior Member Newbie
    Join Date
    Jun 2001

    Torch Light

    I need to get a torch light effect.
    How I must to set opengl parameter light?

    And the light need to run back the camera.


  2. #2
    Super Moderator OpenGL Guru dorbie's Avatar
    Join Date
    Jul 2000
    Bay Area, CA, USA

    Re: Torch Light

    You need a local light source with the spotlight parameters set to give you a cone of the desired dimensions.

    You will need many vertices in the scene if lighting is to be sufficient to describe the shape of the light. If you don't want a lot of vertices then you'll need another approach, probably a projected texture is the best way. This involves using texgen and the texture matrix, and is quite complex. Do a search for OpenGL projected texture sample code on the web.


Posting Permissions

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