View Full Version : Torch Light
06-24-2001, 04:51 AM
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.
06-25-2001, 03:04 AM
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.
Powered by vBulletin® Version 4.2.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.