Skip to main content
GameDev.net gamedev.net
🔒 Locked

AboUt Target Spotlight

Started by Wickeeed Oct 19, 2003 at 9:34 AM 0 replies 450+ views
Original Post
Wickeeed
Wickeeed
Hi, can someone explain me how it works ??
Nik02
Nik02
The targeting or spotlight usage altogether?

EDIT:

Targeted spotlight:

Consider the target and light position as 3d vectors.
The difference vector between these is defined as target-light.
Normalize this difference vector to get the direction from the light to the target. And you can use this direction vector in instructing OGL (GL_SPOT_DIRECTION).

-Nik

[edited by - Nik02 on October 19, 2003 10:46:33 AM]
Niko Suni

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.