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: Polygons fading away

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2002
    Posts
    6

    Polygons fading away

    I'm drawing a rather large scaled scene to the screen, and when I compile my program and view I notice that polygons after a certain distance arn't getting drawn. Does anyone know what OpenGL function is making it do this? I'm using NeHe's basecode... Thanks.

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

    Re: Polygons fading away

    Without seeing how you have setup the view and size of your object, I think that your object is going outside the view area.

    You may need to increase the area in which your are rendering to get the whole scene in or maybe scale the scene down to fit the window.

    Are you using glortho or gluPerspective to set your view area?


    Originally posted by Jmoses:
    I'm drawing a rather large scaled scene to the screen, and when I compile my program and view I notice that polygons after a certain distance arn't getting drawn. Does anyone know what OpenGL function is making it do this? I'm using NeHe's basecode... Thanks.


    [This message has been edited by nexusone (edited 04-01-2002).]

  3. #3
    Junior Member Newbie
    Join Date
    Mar 2002
    Posts
    6

    Re: Polygons fading away

    Ah, it's gluPerspective that sets the distance... Thanks, Fixed it.

Posting Permissions

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