   Grab from webcam
  Hy.I have created a simply project that read images from the webcam and display it in a texture applyed to a plane.My problem is this:Is correct to read images directly in the render loop or is better and more performant read from the webcam with a thread , or with a controller every 30 frame/sec?Thanks.   
  I suppose it depends on how long the read takes?   ;  I don't know , im still search for a solution that increase my framerate because is too slow(7frame/sec) .   ;  I'd suggest double buffering the image you're displaying. Have the image display thread (probably your main thread) run at full speed displaying image A while Image B is updated by your read-from-camera thread. When the B has finished being updated, draw A and then update B, and so on.   ;  Thanks , but I'm work in c++  and i  cant know how use a thread.IS possible to grab the webcam on 1/30 sec?I'm try to explain better:I use artoolkitplus and i have a web cam that show the word view from the camera , and some 3d objects  drawed(augmented reality) on some marker.THese 3d object must be rotated or translated when change the marker position.Now i would do this every 1/30 sec ,The grab of the camera must be on 1/30 sec , but also the marker must be displayed every 1/30 sec?or every time?Thanks.   ;  For augmented reality have a look at OpenCV (computer vision). It was written by intel for this reason - you will find some great examples of it in use on youTube.Failing that, if you do a google search for threading you will find hundreds of articles explaining how to use them.   ;  i'm not have the basic knowlege for finish the application for sunday.Can I use a test and a counter for do all in short?how?The next project i use the thread.Some peoples advice to me to use boost thread is a good advice?why?thanks.   ;  Game Programming Gems 2 Book talks about this subject specifically. (I believe it's book 2, I have it in my bathroom where I do all my thinking ;))   ;Quote:Original post by giugioSome peoples advice to me to use boost thread is a good advice?why?thanks.If you don't need to mess with syncronization and the like, using boost::thread is really simple and shouln'd take you much time.   