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

    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

Similar Threads

  1. Moving light lines on dark background
    By imported_kapojko in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 03-25-2011, 05:27 AM
  2. Diffuse light on a sphere
    By Guus in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 05-10-2003, 02:27 PM
  3. Dark textures in a dark scene
    By nexusone in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 11-30-2002, 07:33 AM
  4. How to get sharp light/dark boundary on a lit sphere?
    By MeanFox.com in forum OpenGL: Advanced Coding
    Replies: 5
    Last Post: 10-25-2002, 07:59 PM
  5. Less sharp edges technics
    By Rchr_3 in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 04-08-2002, 12:42 PM

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