Hi,
I have a WX app with an OpenGL viewer that based on the osgviewerWX
example in the OSG release. I won't include the code, since it's a bit
complicated, but I'm wondering if anyone would know why the viewer
window is empty (I just see the clearcolor of the camera) on OSX while
it works perfectly in Linux?
If it helps, I get the following compilation warnings:
/opt/local/include/wx-2.8/wx/mac/carbon/glcanvas.h:49: warning:
‘AGLDrawable’ is deprecated (declared at
/System/Library/Frameworks/AGL.framework/Headers/agl.h:61)
/opt/local/include/wx-2.8/wx/mac/carbon/glcanvas.h:53: warning:
‘AGLDrawable’ is deprecated (declared at
/System/Library/Frameworks/AGL.framework/Headers/agl.h:61)
Also, once I add something to my scene, I get the following error
printed every frame:
CullVisitor::apply(Geode&) detected NaN,
depth=nan, center=(0 0 0),
matrix={
nan nan nan nan
nan nan nan nan
nan nan nan nan
nan nan nan nan
}
Any idea where I should look?
The code is very similar to osgviewerWX, with one notable exception: the
frame that holds the OSGCanvas is not shown by default. It is created
while hidden, and can be opened (using Show()) by the user when he/she
desires. It's not a problem in Linux though...
Any feedback would be greatly appreciated.
Thanks,
Mike
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org