Results 1 to 5 of 5

Thread: question about light

  1. #1
    Junior Member Newbie
    Join Date
    Apr 2002
    Posts
    8

    question about light

    Hi !
    I use a OpenGL light as a spot light in my application. But the circular edge is not sharp http://tttsuhu.boy.net.cn .Who can give my some ideas?

    Thanks.



    [This message has been edited by suhu (edited 04-08-2002).]

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Feb 2000
    Location
    Sweden
    Posts
    2,978

    Re: question about light

    Lighting is calculated per vertex, and the color is interpolated between the vertices, while you think it's calculated per pixel.

  3. #3
    Senior Member Regular Contributor
    Join Date
    Feb 2002
    Posts
    374

    Re: question about light

    you can reduce the size of your quads to achieve a better visual effect (slows down the rendering of course)

    you should also play around with the EXPONENT and CUTOFF parameters of your spotlight which could increase the overall look of your light

    [This message has been edited by satan (edited 04-08-2002).]

  4. #4
    Junior Member Newbie
    Join Date
    Apr 2002
    Posts
    8

    Re: question about light

    Oh,Thanks! Now I know something about OpenGL light.
    I want to implement a headlight in a scene in which ambience light can be changed. And there are lots of spot light sources(such as streetlight) in the scene. Which is the best way to implement them(ambience light,streetlight,headlight)? Can you give me some advice ?

    [This message has been edited by suhu (edited 04-08-2002).]

  5. #5
    Junior Member Newbie
    Join Date
    Apr 2002
    Posts
    8

    Re: question about light

    Is the method to implement multi spotlight and changeable ambient light in a scene complex? Who can give me a direction about it? And where can I find some document about it?


    Thanx!

Similar Threads

  1. question about light prepass and msaa
    By Keith Z. Leonard in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 10-08-2009, 06:53 PM
  2. newbie light question
    By Mickey_dup1 in forum OpenGL: Basic Coding
    Replies: 7
    Last Post: 04-26-2006, 07:31 PM
  3. Light positioning question
    By Faze in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 03-24-2005, 10:35 AM
  4. spot light question
    By in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 03-30-2004, 11:27 AM
  5. A question about light
    By Zw in forum OpenGL: Advanced Coding
    Replies: 21
    Last Post: 01-16-2002, 10:13 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