= Integration with GUI Toolkits = [[TracNav(TracNav/CommunityTOC)]] with the introducion of !OpenSceneGraph 2.0 it has become more straight forward to integrate the OSG with 3rd party windowing toolkits virtue of the new osgViewer library. To illustrate how easy integration can now be there are a set of !OpenSceneGraph/examples that integrate with: * Qt3 & Qt4 - osgviewerQT * SDL - osgviewerSDL * GLUT - osgviewerGLUT * FLTK - osgviewerFLTK * !WxWidgets - osgviewerWX * MFC - osgviewerMFC Also development in community ontop of OpenSceneGraph-2.0: * Thibault Genessay's [attachment:wxMultiView-1.0.zip wxMultiView] example, integrating `osgViewer::CompositeViewer` and wxWidgets. Compiles against OSG 2.0 and wxWidgets 2.8.x Unicode. Prior to !OpenSceneGaph 2.0 the community has been developing a set of separate libraries/examples that integrate the !OpenSceneGraph with a range of Windowing toolkits. This libraries/examples are listed below. ---- == Producer == * Don Burns's [http://www.andesengineering.com/Producer/index.php?main=download.php OpenProducer] for run-time configurable multi-threaded, multi-window/pipe rendering. == QT == * Antoine Hue's Qt4 based [attachment:osgqt4_2.zip OSG Widget/viewer], extension of Gazihan's work below. * Gazihan Alankus's Qt4 based OSG widget [http://www.cse.wustl.edu/~gazihan/software/qt/ QOsgWidget] == Win32 & MFC == * Trale's MFC + Producer based OSG viewer's [attachment:OSGMFC.zip OSGMFC] (compatible with latest version of the OSG in CVS, to compile against OSG-9.6-2 you'll need to comment out non compiling sections.) * People/JohnDavis' MFC based OSG viewer [attachment:OsgMS.NETViewer.zip OsgMS.NETViewer] (compatible with OSG-0.9.3) and [attachment:OsgMfcApp0.9.2.zip osgMFC] (compatible with OSG-0.9.2) * Joseph Steel's Win32 based OSG demo [http://66.220.18.234/bazaar/osgWin32Demo/demo.html osgWin32Demo] == ActiveX == * Michael Gronager !OSGAx - Full !ActiveX implementation of [http://osgax.vr-c.dk/ OSGAx.vr-c.dk] * Wang Rui - A simple implementation of osgActivex. The project will generate a .ocx file which displays specified model/image files and resizes itself if required. The generated .ocx file can be simply embedded into internet browsers (e.g. IE) or VisualBasic forms. See [attachment:osgActiveX.rar osgActiveX] for details. The VS8 project attached may not be able to run on every system. So just create your own 'MFC ActiveX Control' project instead and insert the source code into necessary places. == FOX == * Charlse Cosse's [attachment:osgfox_110706.tgz osgfox] example. == SDL == * [http://osgsdl.sourceforge.net/ osgSDL] (orginal author People/MarcoJez, now maintained by Andew Sampson). * Marco Jez's [http://web.tiscali.it/areavr/osg/index.html osgConsole] * Daniel Sjoelie's SDL based OSG library [attachment:osgsdl-2003-01-30.tgz osgsdl] * Timothy Pratley's SDL based OSG viewer [attachment:osg_sdl_world-0.1.zip osg_sdl_world] == !WxWidgets == * Toshiyuki Takahei's [http://orihalcon.sourceforge.net/ Orihalcon framework] contains !wxWindows widgets for OSG * Jeff Biggs' example application integrating !wxWindows and OSG [http://home.hiwaay.net/~jbigz/mVue mVue]. * Geoff Michel' example application integrating !TclTk and OSG [wiki:Support/KnowledgeBase/TclTk TclTk]. * Andreas's [attachment:wxAndreas01.tar "Hello World"] for integration of OSG together with wxWidgets (provided by Charles Cosse). * Gian Lorenzetto's simple [attachment:wxOsgCanvas-0.2.zip example] integrating OSG with wxWidgets. Built against OSG 1.1 and wxWidgets 2.6.3. Supports full event handling and open dialog for file load. == GTK == * Luca Cappa' GTKGLEXTMM based OSG viewer [attachment:osggtkglextmm.tar.gz osggtkglextmm.tar.gz] (usage of gtkglextmm 1.1 and gtkmm 2.6.5 and OSG 1.0). * Ruben Lopez's [http://osgedit.sourceforge.net OSG-Edit] has an integration layer that allows using OSG inside GTK+ projects either by chosing gtkglext or gtkglarea. The integration layer is not distributed separately but is isolated and usable in other projects. == SWT == * [http://www.arakhne.org/rubrique.php3?id_rubrique=17 libosgswt] is an standalone library that integrates the openscenegraph with the SWT toolkit, and is the base of [http://www.arakhne.org/rubrique.php3?id_rubrique=16 josgviewer]. * [http://www.ccr.buffalo.edu/etomica/index.html Etomica] project integrates OSG into the SWT toolkit and the Eclipse platform for molecular simulations, but the integration component is not distributed separately. It uses the [http://osgedit.sourceforge.net OSG-Edit] GTK+ component. == GLUT == * RoberOsfield's GLUT based OSG viewer library and demos suite, now maintained by Mike Weiblen [http://sourceforge.net/projects/osgglut/ osgGLUT] ---- == 3D GUI Toolkits implemented with the !OpenSceneGraph == * Davide Pippa's [http://osgim.sourceforge.net/ osgIM] nodekit library which adds support for 3D GUI's. * Jeffrey Barber's GUI framework, implemented directly in OSG, [http://sourceforge.net/projects/ggplus/ GGplus] ---- == 2D GUI Toolkits implemented with the !OpenSceneGraph == * The [http://freshmeat.net/projects/poker3d/ Poker3D] multiplayer online poker game contains an adapter for [http://insitu.lri.fr/~chapuis/metisse/ Metisse] that embeds arbitrary 2D X11 programs within an OSG 3D scenegraph. All [http://freshmeat.net/projects/poker3d/ Poker3D] 2D interfaces are implemented using this adapter. For instance, it can be used to run a KDE or Gnome environment within an OSG scene. Extracting this adapter from [http://freshmeat.net/projects/poker3d/ Poker3D] is relatively easy because it only relies on OSG. (License : GNU GPL).