PDA

View Full Version : Directional Spot Light



ZeeBoy
01-19-2001, 03:44 PM
Hi all

I have been writing a demo and I wish to use directional lighting which shines on the floor (i want it to look like lights in armory in Half-life "just after the bit with the tank").

sub question
What is the averag nimber of polygons in a good game such as quak after culling back face removal and all that
as im my demos if i go beyond 300 triangles it slows down big time. I tested this with displaylists.

thanks in advance

Zee

zed
01-20-2001, 03:27 PM
>>have been writing a demo and I wish to use directional lighting which shines on the floor (i want it to look like lights in armory in Half-life "just after the bit with the tank").<<

more of a statement than a question. in opengl lighting is calculated per vertex thus to get an accurate spotlight u will have to split the floor up into multiple polygons

Dodger
01-20-2001, 09:02 PM
>>u will have to split the floor up into multiple polygons


or apply a lightmap, which might be more performant depending on how many polygons we're talking about http://www.opengl.org/discussion_boards/ubb/wink.gif