Hi Eric / Robert,
I checked out the latest CVS version of Open Scene Graph, because I
wanted to adapt Robert's SimpleViewer example to MFC on the PC, and
use a corresponding version on OS X.
As soon as I have a nice clean example I will make it available..
What is the best way to do that?
Initially (as you mentioned you suspected in your post to the list
about Simple Viewer, Robert) there were potentially some build
problems for Xcode and OS X.
It got a bit late last night but this is what I remember changing..
for those that are interested....
Basically header files in 'include'.. GraphicsWindow and SimpleViewer
are not copied at build time. These need to be added to the Copy
Headers build phase for osgGA.
And SimpleViewer.cpp is not included in the compile and linking
phases. This can be done by putting it in the osgGA Compile Sources
Build phase.
Also osgGA needs to have the osgDB.framework added to it's 'Link
Binary with Library' build phase as some of the new stuff uses
Database functions in one place. And, of course, this needs to be
reflected in any build sets that you use in Xcode for OSG.
I think that was all of it...
SimpleViewer is great.. I now have a very small tight main loop on
both the PC and Mac, which is pretty much cross platform, and allows
me mouse, keyboard and Pick callbacks working seamlessly together.
Thanks, Robert.
Thanks,
Stephen.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/