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

Thread: OpenGL doesn't work in multithreaded prog, why?

  1. #1
    Junior Member Newbie
    Join Date
    Jan 2008
    Posts
    2

    OpenGL doesn't work in multithreaded prog, why?

    I need to use ARToolkit combining with our university framework, that
    controls a robot and it's a multithreaded platform.
    I use ARToolkit to grab image by camera, and detect a fiducial
    marker. I have a thread dedicated to ARToolkit and an object class
    that implement the ARToolkit call function. I call once
    glutDisplayFunc(drawInit); glutIdleFunc(Display) to display image in
    the initialization. In my ARToolkit's thread I call once
    glutMainLoop(), and I have the comunication throught two thread,
    because I need to transmit the position of marker detected.

    I have a problem with the update of the image, beacause cause a
    problem with the control of manipulator by the other thread!!!! If I
    remove the glut functions the system works and the marker is detected
    and trasmited, but with glut the system don't work well. I don't have
    find a solution yet.It would not be a problem on ARToolKit, but on OpenGL.
    Usually OpenGL does not work in multithreaded program.
    What I can do?

  2. #2
    Senior Member OpenGL Guru Dark Photon's Avatar
    Join Date
    Oct 2004
    Location
    Druidia
    Posts
    2,882

    Re: OpenGL doesn't work in multithreaded prog, why


Posting Permissions

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