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 7 of 7

Thread: How to Generate a Surface using GL_TRIANGLE(i am using freeglut)

  1. #1
    Junior Member Newbie
    Join Date
    Apr 2013
    Posts
    23

    How to Generate a Surface using GL_TRIANGLE(i am using freeglut)

    Hello.

    Please help me generate a surface specifically using Gl_TRIANGLE for an array of three dimensional points.
    Its a cylinder. If any examples are there please give the link.i will be very grateful.

  2. #2
    Junior Member Newbie
    Join Date
    Apr 2013
    Posts
    23
    Quote Originally Posted by qawded View Post
    Hello.

    Please help me generate a surface specifically using Gl_TRIANGLE for an array of three dimensional points.
    Its a cylinder. If any examples are there please give the link.i will be very grateful.
    Please someone reply...

  3. #3
    Senior Member OpenGL Pro
    Join Date
    Jan 2012
    Location
    Australia
    Posts
    1,106
    We answer questions on code you have written not requests to code develop ment

  4. #4
    Junior Member Regular Contributor
    Join Date
    Apr 2012
    Posts
    167
    Quote Originally Posted by qawded View Post
    Please help me generate a surface specifically using Gl_TRIANGLE for an array of three dimensional points. Its a cylinder. If any examples are there please give the link.i will be very grateful.
    Your question is so basic that one wonders if you've figured out how to create an OpenGL window correctly. Can you at least do that and display a few points or one triangle?

  5. #5
    Junior Member Newbie
    Join Date
    Apr 2013
    Posts
    23
    Quote Originally Posted by Carmine View Post
    Your question is so basic that one wonders if you've figured out how to create an OpenGL window correctly. Can you at least do that and display a few points or one triangle?
    Thanx for the insult. I have figured out how to do it.

  6. #6
    Junior Member Regular Contributor
    Join Date
    Apr 2012
    Posts
    167
    Quote Originally Posted by qawded View Post
    Thanx for the insult. I have figured out how to do it.
    Congrats on solving your problem. Notice that you did not get any helpful replies to your question. This is because you made it sound like you didn't know what you were doing. It seemed like you hadn't done any work at all and wanted the forum to do it for you. There's a lot of that going on here. Next time show the forum how much work you've done. You could have done that by stating that you can display a set of points in a GLUT window which make up the surface of a cylinder. You could also have posted a picture of the points. That would have made it clear that you had actually done some work. That will get you more responses on the forum.

  7. #7
    Junior Member Newbie
    Join Date
    Apr 2013
    Posts
    23
    [QUOTE=Carmine;1252010]Congrats on solving your problem.

    I still have one problem. the triangles are always filled ones irrespective of the glpolygonmode i.e GL_fill or GL_LINE. any known reason for that.

Posting Permissions

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