Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: How to get sharp light/dark boundary on lit sphere?

  1. #1

    How to get sharp light/dark boundary on lit sphere?

    Hi,

    I am using gluSphere with a purely diffuse lighting from far away. How can I make the light/dark boundary very sharp?

    Increasing the sphere slices & stacks doesn't help.

    Any help appreciated!

    Mean Fox

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Jun 2000
    Location
    Gastonia, NC, USA
    Posts
    2,070

    Re: How to get sharp light/dark boundary on lit sphere?

    Have you added normals?

    example:

    sphere = gluNewQuadric();
    gluQuadricDrawStyle( sphere, GLU_FILL);
    gluQuadricNormals( sphere, GLU_SMOOTH);
    gluQuadricOrientation( sphere, GLU_OUTSIDE);
    gluQuadricTexture( sphere, GL_TRUE); For texture mapping optional.

    Also enable material settings?


    Originally posted by Mean Fox:
    Hi,

    I am using gluSphere with a purely diffuse lighting from far away. How can I make the light/dark boundary very sharp?

    Increasing the sphere slices & stacks doesn't help.

    Any help appreciated!

    Mean Fox


    [This message has been edited by nexusone (edited 10-25-2002).]

  3. #3

    Re: How to get sharp light/dark boundary on lit sphere?

    Yes, done all this.
    Diffuse is (1, 1, 1), ambient is (0, 0, 0).

    I want the sort of sharp boundary you see when you look at images of Earth... how to achieve that?

    Mean Fox

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •