Re: [osg-users] newbie pixelSize() vs. measured screen size query

2010-08-07 Thread paul graham
Many thanks Frederic, I now see the point you're making. Still not sure exactly what pixelSize() returns - I may do some simple experiments without the billboard, maybe with just a simple sphere and see if the pixelSize() then correlates with screen pixel measurements - unfortunately I can't d

Re: [osg-users] newbie pixelSize() vs. measured screen size query

2010-08-07 Thread Frederic Bouvier
> - "paul graham" a écrit : > > > Thanks Frederic - as you say, for the case of a square, you'd expect > > the bounding sphere diameter to contain the bounding box - ie. in > this > > case the square itself. > > Only if your geometry is axis-aligned, but I supposed it is in your > case. I di

Re: [osg-users] newbie pixelSize() vs. measured screen size query

2010-08-07 Thread Frederic Bouvier
- "paul graham" a écrit : > Thanks Frederic - as you say, for the case of a square, you'd expect > the bounding sphere diameter to contain the bounding box - ie. in this > case the square itself. Only if your geometry is axis-aligned, but I supposed it is in your case. -Fred ___

Re: [osg-users] newbie pixelSize() vs. measured screen size query

2010-08-07 Thread paul graham
Thanks Frederic - as you say, for the case of a square, you'd expect the bounding sphere diameter to contain the bounding box - ie. in this case the square itself. The problem I'm having is trying to relate the pixelSize() returned value to the pixel size of the square's diagonal as measured on

Re: [osg-users] newbie pixelSize() vs. measured screen size query

2010-08-06 Thread Frederic Bouvier
Hi, I discovered recently that it is a bounding box that is first calculated for drawables. Then the bounding sphere of nodes is the bounding sphere of the bounding boxes. -Fred - "paul graham" a écrit : > Hi, I've modified the osg billboard example and am examining the pixel > size compu