Hi Stephen,

On 11/2/06, Stephen Northcott <[EMAIL PROTECTED]> wrote:
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.

Cool, this is just what I was hoping the the new examples would seed.

As soon as I have a nice clean example I will make it available..
What is the best way to do that?

Just post it to osg-users/wiki if you want some preliminary testing by
members of the community.  If you feel it functional enough you could
just send it direct to the osg_submissions list and I have look at
merging it.

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.

Well the SimpleViewer examples all post date the latest update to the
Xcode projects so I'd certiainly expect a few problems :-)

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...

Perhaps its time for me to refactor the classes, placing them in their
own osgViewer directory, rather than just hanging off the coat tails
of an old and tired osgGA library.  The upshot of this would be that
the Xcode projects will need a new project added, but no mods to
osgGA.

I'll do this refactor today.

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.

Good to hear that your are finding to easy to get up to speed on -
this is what the new classes are about.  For too long end users have
had to pull teeth out to get the OSG integrated with their GUI
applications.

SimpleViewer is simple though, so many users will probably soon out
grow it, but given the separation between SimpleViewer and the
concrete GraphicsWindow implementations writing new viewers should be
easier as the windowing integration will already been done.

Robert.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to