Re: [osg-users] osg::DrawPixels bounding box and picking (2.8.2)

2010-01-21 Thread Robert Osfield
Hi Andew, DrawPixels is a real throwback to OpenGL of old and not something I would recommend using these days - even the OpenGL drivers don't support natively, and will just use a screen aligned quad. You'll get better performance if you use a textured quad, and then screen align it using an

Re: [osg-users] osg::DrawPixels bounding box and picking (2.8.2)

2010-01-21 Thread Andrew Cunningham
Hi Robert, Thanks - confirms what I thought, better start digging through the examples... Andrew -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=23001#23001 ___ osg-users mailing list

[osg-users] osg::DrawPixels bounding box and picking (2.8.2)

2010-01-20 Thread Andrew Cunningham
Hi, - The boundingBox() method of the osg::DrawPixels is implemented, but a bit wacky as it is based purely on pixel dimensions and will in general be completely wrong. This throws off camera bounding box calculations badly. For example a 200x200 pixel image is given a BB of 200x200x200 units