[osg-users] Using OsgViewerMFC to load a sphere

TANG Fangqin fqtang at gmail.com
Tue Jul 15 07:34:09 PDT 2008

Hi All,


I am a beginner of OSG. 

I used OsgViewerMFC to load a sphere into the scene, but it displays as an

The radius doesn't seem to be equal in two orthotropic axes.


I find that it may be related to the width and height of the view window
when initializing.


The following codes are from OsgViewerMFC:


::GetWindowRect(m_hWnd, &rect);


traits->x = 0;

traits->y = 0;

traits->width = rect.right - rect.left;

traits->height = rect.bottom - rect.top;


osg::GraphicsContext* gc =


How to solve this?

Thanks for your advices in advance.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080715/6beeaa2d/attachment-0002.htm>

More information about the osg-users mailing list