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 3396798
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T04:27:02+00:00 2026-05-18T04:27:02+00:00

I draw 3d-scene with primitives like this: glLoadIdentity(); glColor4f(model[i][8], model[i][9], model[i][10], 1.0); glTranslatef(current_x, current_y,

  • 0

I draw 3d-scene with primitives like this:

glLoadIdentity();

glColor4f(model[i][8], model[i][9], model[i][10], 1.0);
glTranslatef(current_x, current_y, current_z);


glVertexPointer(3, GL_FLOAT, 0, &squareVertices[0]);
glEnableClientState(GL_VERTEX_ARRAY);
glShadeModel(GL_FLAT);

glDrawArrays(GL_TRIANGLE_STRIP, 0, 4);

and of course there is no antialiasing. i’ve read and tried much advices (including stackoverflow). e.g.:

glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glEnable(GL_BLEND);
glEnable(GL_LINE_SMOOTH);

but still can’t implement aa-technique.
can anybody tell me, is it possible without modifying a lot of existing code?

  • 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-05-18T04:27:03+00:00Added an answer on May 18, 2026 at 4:27 am

    You are using GL_LINE_SMOOTH on a GL_TRIANGLE_STRIP. iOS doesn’t support line smoothing and more importantly can only be used on lines. Are you enabling blending BEFORE you draw?

    This is a good question about the same issue.

    The best method is to use a texture with a blurred edge (alpha) and apply it to your triangles. This will create a line smoothing effect.

    This can be seen here.

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

Sidebar

Related Questions

I need to draw 2D overlay over OpenGL scene. OpenGL is used for 2D
Say I want to draw a Ball in the scene and here are two
I draw a line in a zedgraph pane, but sometimes it will be like
I draw my background every frames : void Window::paintGL() { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glLoadIdentity();
I draw an image in OnRender method of my custom FrameworkElement. I would like
I draw picture in canvas in place where I click. This is code: public
I'm writing a game which uses 3D models to draw a scene (top-down orthographic
ok what I want to do is to draw a quad in the scene
I would like to for example draw shapes A, B, C then set the
I have created a scene in 3DS Max with a stock engine model and

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.