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@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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 osg::AutoTransform, osg::Billboard or a
osg::Camera to set up a hud.

Robert.

On Thu, Jan 21, 2010 at 12:11 AM, Andrew Cunningham
 wrote:
> 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
>
> - Picking of a osg::DrawPixels()  is not implemented.
>
> does anyone have a working implementation for these functions?
>
> Basically I am drawing small 2D images at points on my 3D model and need to 
> be able to pick them.
>
>
> Thanks.
> Andrew
>
> --
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=22960#22960
>
>
>
>
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[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

- Picking of a osg::DrawPixels()  is not implemented.

does anyone have a working implementation for these functions?

Basically I am drawing small 2D images at points on my 3D model and need to be 
able to pick them. 


Thanks.
Andrew

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=22960#22960





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org