Results 1 to 3 of 3

Thread: Help me about 3D polyline in OpenGL

  1. #1
    Guest

    Help me about 3D polyline in OpenGL

    Hi all,

    I am OpenGL beginner and my English is not good. I have exported a DEM file to my own xyz file format that contains huge number of xyz polylines. I would like to use OpenGL to display them. I am OpenGL beginner so that I do not know where I should begin.

    If you can help me, Please mail me thanhnt@zapo.net.

    Thank you in advance.

  2. #2
    Member Contributor
    Join Date
    Feb 2002
    Location
    Wiesbaden, Germany
    Posts
    95

    Re: Help me about 3D polyline in OpenGL

    Hi,

    okay, if I get it right you have a number of points (x, y, z). What I would try first is to load the data into a list. From there I would setup a second list from where you index the order of vertices to draw.

    so if you draw it would be like that:

    1. Horizontal lines
    Code :
    .---.---.---.
    .---.---.---.
    .---.---.---.
    .---.---.---.
    2. Vertical lines
    Code :
    I---I---I---I
    I---I---I---I
    I---I---I---I
    I---I---I---I
    3. Display


    But first of all you might want to try with a smaller grid. If it works for one grid and a second bigger grid, it will work for all grids!

    Greets,

    Martin

  3. #3
    Junior Member Newbie
    Join Date
    Apr 2002
    Location
    Ha Noi city, , Vietnam
    Posts
    8

    Re: Help me about 3D polyline in OpenGL

    Thank you for your helps
    Thanh

Similar Threads

  1. How to draw a smooth thick polyline?
    By ozymandias in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 09-02-2018, 11:44 PM
  2. Polyline offset...
    By Makinis in forum OpenGL: General
    Replies: 8
    Last Post: 05-21-2009, 04:59 PM
  3. Incorrect displaying of Polyline!
    By HanWu in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 06-25-2008, 04:41 PM
  4. Revolving a polyline to form a 3D object
    By Swackhammer1 in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 12-16-2006, 10:04 AM
  5. Selecting inside a polyline
    By in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 05-21-2005, 04:26 AM

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