Results 1 to 3 of 3

Thread: Receive x,y data from socket continuously and plot

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2012
    Posts
    2

    Receive x,y data from socket continuously and plot

    dear friends,

    i m new to openGL. i receive (x,y,z) over LAN continuously. i have to plot them. after one cycle the new (x,y,z) should be ploted and old (x,y,z) should fade.

    can anyone provide outline/sample code to quickly start with.

  2. #2
    Junior Member Newbie
    Join Date
    Feb 2012
    Posts
    2

    Re: Receive x,y data from socket continuously and plot

    also there are around 1000 3d points(x,y,z), to be plotted in each cycle.

  3. #3
    V-man
    Guest

    Re: Receive x,y data from socket continuously and plot

    Collect the data and store them in a array.
    Then render the points

    glBegin(GL_POINTS)
    for loop
    {
    glVertex3f(x, y, z)
    }
    glEnd()

    The above is old GL.
    With GL 1.5 and higher, use VBO.
    Have a look at the Wiki for VBO.

Similar Threads

  1. Streaming bitmap data for textures via Socket
    By sasmaster in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 05-04-2011, 08:08 AM
  2. Opengl + socket !!! Flush socket buffer???
    By yunaeyes00 in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 11-20-2007, 01:02 AM
  3. Receive light position in the fragment program
    By Fynch in forum OpenGL: GLSL
    Replies: 0
    Last Post: 07-01-2005, 05:48 AM
  4. socket programming
    By corpus chaos in forum OpenGL: Advanced Coding
    Replies: 5
    Last Post: 03-24-2003, 11:21 PM
  5. a question about continuously scale
    By mapds in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 01-11-2003, 12:58 PM

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