Results 1 to 3 of 3

Thread: Directional Spot Light

  1. #1
    Member Contributor
    Join Date
    Oct 2000
    Location
    london, england
    Posts
    76

    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
    Later

    Zee

  2. #2
    Senior Member OpenGL Guru zed's Avatar
    Join Date
    Nov 2010
    Posts
    2,466

    Re: Directional Spot Light

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

  3. #3
    Senior Member Regular Contributor
    Join Date
    Sep 2000
    Location
    Lubbock, TX, USA
    Posts
    197

    Re: Directional Spot Light

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

Similar Threads

  1. Positioned spot light - white light appearing from nowhere behind
    By windchine in forum OpenGL: Basic Coding
    Replies: 9
    Last Post: 08-03-2012, 02:30 AM
  2. Fixed light and moving spot light with the mouse
    By Jorcelangelo in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 04-18-2012, 09:56 PM
  3. Spot light help
    By Conor in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 03-05-2007, 04:50 PM
  4. Point light VP -> Spot light VP: ?
    By Freelancer in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 01-27-2004, 11:43 AM
  5. Spot light
    By fox in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 11-06-2000, 07:03 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean