Re: [osg-users] Confused with pixel buffer objects in OSG

2010-12-08 Thread Fred Smith
Hi J.P., Let's say you have 1000 textures. You can't create 1000 PBOs as this would consume far too much memory. What you do is play with 2 PBOs. Have a look at the diagram here, in the figure called Streaming texture uploads with 2 PBOs: http://www.songho.ca/opengl/gl_pbo.html#unpack You

Re: [osg-users] Confused with pixel buffer objects in OSG

2010-12-08 Thread J.P. Delport
Hi Fred, On 08/12/10 20:22, Fred Smith wrote: Hi J.P., Let's say you have 1000 textures. You can't create 1000 PBOs as this would consume far too much memory. Can you explain at a higher level what you want to do. Do you just have 1000 textures you want to upload once? Or do you have 1000

Re: [osg-users] Confused with pixel buffer objects in OSG

2010-12-06 Thread Robert Osfield
Hi Fred, The PBO support built into osg::Texture/osg::Image for passing image data from the osg::Image to the texture, and does not presently support reading the result back. When doing read back using PBO's the situation is a little more convoluted than when passing data from main memory to the

Re: [osg-users] Confused with pixel buffer objects in OSG

2010-12-06 Thread Fred Smith
Hi Robert, Let's leave GPU - CPU transfers aside. I don't mind if they are slow. You usually have to use 2 PBOs. If I use a single PBO to upload texture data to the GPU, performance will be very low. It seems to me I have two ways to do CPU - GPU transfers efficiently. 1) Use 2 differents

Re: [osg-users] Confused with pixel buffer objects in OSG

2010-12-06 Thread Robert Osfield
Hi Fred, I have too much other work on right now to go chasing supports threads at a low level, I have time to point users in roughly the right direction, but then have to get back to work - I have 3.0 to get out the door. Robert. On Mon, Dec 6, 2010 at 1:16 PM, Fred Smith osgfo...@tevs.eu

Re: [osg-users] Confused with pixel buffer objects in OSG

2010-12-06 Thread J.P. Delport
Hi Fred, what bandwidth are you trying to achieve? We've had no issues with updating multiple osg Images from camera input with just a PBO attached as per e.g.: osg_image_buffer[i]-setPixelBufferObject(new osg::PixelBufferObject(osg_image_buffer[i].get())); where osg_image_buffer[i] is a

Re: [osg-users] Confused with pixel buffer objects in OSG

2010-12-05 Thread Fred Smith
fred_em wrote: Hi, I am confused about how to use PBOs in OSG. I browsed the forum quite a bit but still can't make my code work. 1) GPU - CPU pixel transfers As I understand it, an osg::Image with an osg::PixelBufferObject cannot be used (yet) to read FBO contents. I have actually

[osg-users] Confused with pixel buffer objects in OSG

2010-12-04 Thread Fred Smith
Hi, I am confused about how to use PBOs in OSG. I browsed the forum quite a bit but still can't make my code work. 1) GPU - CPU pixel transfers As I understand it, an osg::Image with an osg::PixelBufferObject cannot be used (yet) to read FBO contents. I have actually checked that and could