[osg-users] AutoTransform scale to screen algorithm - reference?

2011-06-14 Thread Frank Palazzolo
Hi,

Is there any reference for the calculations in AutoTransform::accept(), when 
getAutoScaleToScreen() is true?

It seems to do the right thing, but I really need to understand how it works 
for an application.

Thank you!

Cheers,
Frank

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





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


Re: [osg-users] AutoTransform scale to screen algorithm - reference?

2011-06-14 Thread Paul Martz
Reference as in a research paper? As far as I know, AutoTransform's 
calculations are just linear algebra and a firm grasp of the OpenGL 
transformation pipeline.


Both OpenGL Programming Guide (red book) and OpenGL Distilled (my book) describe 
the transform pipeline found in OpenGL =3.0, and both books also list at least 
one linear algebra text for recommended reading.

   -Paul


On 6/14/2011 1:55 PM, Frank Palazzolo wrote:

Hi,

Is there any reference for the calculations in AutoTransform::accept(), when 
getAutoScaleToScreen() is true?

It seems to do the right thing, but I really need to understand how it works 
for an application.

Thank you!

Cheers,
Frank

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


Re: [osg-users] AutoTransform scale to screen algorithm - reference?

2011-06-14 Thread Frank Palazzolo
As I look at it some more, the good news is that I think I understand the part 
I needed to know about.  :)

That said, I'm curious about the stuff going on when you have 
_autoScaleTransitionWidthRatio set to non-zero (default is 0.25), and then set 
_minimumScale or _maximumScale away from their default values.

It looks like some kind of quadratic interpolation maybe?

Thanks,
Frank

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





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


Re: [osg-users] AutoTransform scale to screen algorithm - reference?

2011-06-14 Thread Frank Palazzolo
It's the block of code that starts here:

http://www.openscenegraph.org/projects/osg/browser/OpenSceneGraph/trunk/src/osg/AutoTransform.cpp#L232

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





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