Directional Spot Light

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

>>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

>>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