Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8464635
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T14:48:30+00:00 2026-06-10T14:48:30+00:00

I am rendering many spheres using glutSolidSphere. There are lines at the boundary, which

  • 0

I am rendering many spheres using glutSolidSphere. There are lines at the boundary, which are not rendered in the correct color:

lines at the boundary

If I recall correctly, I did not have this problem with AMD cards, it is a new problem on nVidia.

Relevant opengl settings (not sure I got all of them, they are scattered through the code) are:

// set 2 lights, both having specular, ambient and diffuse components.
// and then:
glDisable(GL_CULL_FACE);
glLightModeli(GL_LIGHT_MODEL_LOCAL_VIEWER,1);
glLightModeli(GL_LIGHT_MODEL_TWO_SIDE,1);
glColorMaterial(GL_FRONT_AND_BACK,GL_AMBIENT_AND_DIFFUSE);
glEnable(GL_COLOR_MATERIAL);
glEnable(GL_BLEND);
glEnable(GL_LINE_SMOOTH);
glEnable(GL_POLYGON_SMOOTH);
glShadeModel(GL_SMOOTH);
glEnable(GL_RESCALE_NORMAL);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T14:48:32+00:00Added an answer on June 10, 2026 at 2:48 pm

    Do you still get the issue if you turn off GL_LINE_SMOOTH and GL_POLYGON_SMOOTH?

    What’s you blending mode? And are you drawing the spheres from furthest->closest to get correct blending (not that you can guarantee that the triangles i the spheres will be rendered in the correct order).

    I’d suggest ditching the polygon smoothing if this is the problem and and using FSAA.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

in past I have used fbml rendering but now there is to many update
I think that using many little cells is a better idea then rendering one
I have problem rendering many circles on the screen using these code. float degree
I have a portlet which has many rendering and action methods: @Controller @RequestMapping(VIEW) public
I noticed that I get too many database hits whilst rendering some complicated pages
I am getting rendering error inconsistently in JSF pages. I am using Trinidad Framework.
I've been pondering this question awhile now... many 3d engines support advanced terrain rendering
there are many posts that deal with validation controls inside update panel and partial
Using rails3 - I have a project with many tasks. I want to use
many webpages use onload JavaScript to manipulate their DOM. Is there a way I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.