Hi Charles,

You have a range of windowing options with osgViewer, and you also
still have SceneView as a fallback as its still exists and works as
before.

The windowing options with osgViewer are:

  Use GraphicsWindowEmbedded to embed a viewer in an existing window, see the
  osgviewerFLTK, osgviewerQT, osgviewerSDL, osgviewerGLUT examples.  You won't
  get threading support though, but it is at least pretty straight
forward. This approach
  is closest to just using SceneView.

  Use the OSG's own native windowing support (GraphicsWindowWin32/X11/Carbon)
  to create your windows.  This provides full multi-window,
multi-threadeding support.

  Implement your own custom GraphicsWindow implementation to adapt your own
  OpenGL window to work with viewer, implementing things like
  makeCurrentImplementation etc.

  Use the inherit window support in GraphicsWindowWin32/Carbon to
allow the native
  GraphicsWindow implementations to work directly with your own window.
  GraphicsWindowX11 does yet have this ability but I plan to add
this, although am too
  busy to do this right away.  osgviewerMFC is an example of this.

Robert.

On 6/11/07, Cole, Charles E. (LARC-B702)[GENEX SYSTEMS]
<[EMAIL PROTECTED]> wrote:
I'm having a hard time converting my existing application from OSG v.1.2
to v.1.9.x/2.0.  I use my own rendering window and have previously used
the SceneView class for handling the rendering.  So, what I'm trying to
do is convert my current implementation to use the osgViewer class.
Unfortunately, this has become a more difficult task than I had
envisioned.

I've gone through the examples, specifically the osgviewer examples, and
for reasons that I haven't been able to trace down yet, I haven't been
able to produce a proper view with the osgViewer class.  The most
applicable example in my case is the osgviewerMFC example, and when I
replicate that as much as possible, all I get is a window with the blue
background (and strobes like a buffer swapping issue).  I fear that
there is just something simple that I'm missing (as is the usually the
case), but I can't for the life of me spot what it is.  I was hoping
that the weekend off would help me with this, but no such luck.  :-(

On the FAQ page, there's an example of how to use the osgUtil::SceneView
class to render OSG in an existing window
(http://www.openscenegraph.com/osgwiki/pmwiki.php/FAQ/FAQ#faq_34).  My
code is almost identical to that provided in this FAQ.  I've been unable
to find something similar for using osgViewer.  So, my question is, is
there a similar "how-to" at this point for using the new osgViewer class
in this way?  Or is there any advice that someone can give me on my
conversion?

I realize that much of the effort now is focusing on getting v.2.0
ready, so any help with this issue would be greatly appreciated.
Thanks.

chuck

_____________________________________
Charles E. Cole (Chuck), ConITS Team
130 Research Drive
Hampton, VA  23666
E-mail: [EMAIL PROTECTED]

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

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

Reply via email to