OpenSceneGraph/examples
Robert Osfield 1fd5eefbcf From Maciej Krol, "As promised to Roland I assembled simple shader generator. ShaderGenVisitor converts accumulated fixed function pipeline state sets to ones with shader programs. Generated state sets are attached to geometries and stored in ShaderGenCache for reuse.
Very simple cases of state configuration are supported (all the ones I really need):
- single per pixel not attenuated non spot light source ON/OFF
- exp2 fog ON/OFF
- diffuse texture in rgb + optional specular gloss in alpha (Texture unit 0) ON/OFF
- normal map texture (Texture unit 1 and Tangent in VertexAttribArray 6) ON/OFF
- blending and alpha testing (not in shader pipeline)

To view fixed function pipeline files and paged databases simply run >osgshadergen myfile.osg"
2009-03-23 11:53:06 +00:00
..
osg2cpp From Gary Quinn, spelling fixes 2009-02-06 15:17:49 +00:00
osganimate From Martin Lavery and Robert Osfield, Updated examples to use a variation of the MIT License 2007-06-12 14:20:16 +00:00
osganimationmakepath Fixed warnings 2009-01-07 11:24:47 +00:00
osganimationmorph Warning fixes 2009-03-13 11:06:12 +00:00
osganimationnode Fixed warnings 2009-01-07 11:24:47 +00:00
osganimationskinning From Fabien Lavignotte, "Here is some various small fixes i have done while playing with 2009-02-09 22:56:21 +00:00
osganimationsolid Fixed warnings 2009-01-07 11:24:47 +00:00
osganimationtimeline From Gary Quinn, spelling fixes 2009-02-06 15:17:49 +00:00
osganimationviewer From Bryan Thrall, "Attached files fix typos, from svn 9791: 2009-02-20 11:53:49 +00:00
osgautocapture From Jean-Sebastien Guay, "osgautocapture uses M_PI to convert degrees to radians, which didn't compile on Win32. Switched to using osg::DegreesToRadians. Also removed the "convert to radians" comment on each line, as the code clearly conveys this without needing a comment now." 2008-11-27 09:45:41 +00:00
osgautotransform To osg::AutoTransform added support for MinimumScale, MaximumScale and AutoScaleTransitionWidth parameters 2008-03-18 15:37:38 +00:00
osgbillboard From Martin Lavery and Robert Osfield, Updated examples to use a variation of the MIT License 2007-06-12 14:20:16 +00:00
osgblendequation From Martin Lavery and Robert Osfield, Updated examples to use a variation of the MIT License 2007-06-12 14:20:16 +00:00
osgbrowser Cleaned up osgWidget::VncClient and osgWidget::Browser so that their implementations are all more consitent with the osgWidget::PdfReader. 2008-12-09 11:05:04 +00:00
osgcallback From Martin Lavery and Robert Osfield, Updated examples to use a variation of the MIT License 2007-06-12 14:20:16 +00:00
osgcamera From Martin Lavery and Robert Osfield, Updated examples to use a variation of the MIT License 2007-06-12 14:20:16 +00:00
osgcatch From Roland Smeenk, "Attached you will find a large set of small typo fixes (mainly in the comments)." 2007-12-10 17:30:18 +00:00
osgcegui Removed old GNUmakefile.inst files 2007-04-10 13:58:18 +00:00
osgclip From Martin Lavery and Robert Osfield, Updated examples to use a variation of the MIT License 2007-06-12 14:20:16 +00:00
osgcluster From Petr Salinger, fix for build under GNU/kFreeBSD. 2009-03-02 09:56:39 +00:00
osgcompositeviewer From Paul Melis, "While trying out the osgbrowser example (where I had forgotten to update 2009-02-08 15:56:35 +00:00
osgcopy From Martin Lavery and Robert Osfield, Updated examples to use a variation of the MIT License 2007-06-12 14:20:16 +00:00
osgcubemap From Martin Lavery and Robert Osfield, Updated examples to use a variation of the MIT License 2007-06-12 14:20:16 +00:00
osgdelaunay From Roland Smeenk, "Attached you will find a large set of small typo fixes (mainly in the comments)." 2007-12-10 17:30:18 +00:00
osgdepthpartition From Tim Moore, compile fix for gcc 4.3 2008-04-15 11:50:34 +00:00
osgdepthpeeling From Michael Platings, Converted std::fstream/ifstream/ofstream to osgDB::fstream/ifstream/ofstream and 2008-11-07 15:08:08 +00:00
osgdistortion Added support for --sky-light and headlight with local position at 0,0,0 2007-07-11 14:16:02 +00:00
osgdrawinstanced Fixed compile errors for when ref_ptr<> auto conversion is disabled 2009-01-21 19:01:26 +00:00
osgfadetext From Mathias Froehlich, "n examples/osgfadetext/CMakeLists.txt osgSim as dependency is missing." 2007-12-06 17:07:04 +00:00
osgfont From Paul Melis, "While trying out the osgbrowser example (where I had forgotten to update 2009-02-08 15:56:35 +00:00
osgforest From Christian Buchner, "I am hereby amending the osgforest sample with some code (functionally 2009-02-19 16:58:05 +00:00
osgfxbrowser From Roland Smeenk, "Attached you will find a large set of small typo fixes (mainly in the comments)." 2007-12-10 17:30:18 +00:00
osggameoflife Removed geomoflife_frag.cpp experiement from CMakeList.txt file 2008-10-14 15:10:10 +00:00
osggeodemo From Gary Quinn, spelling fixes 2009-02-06 15:17:49 +00:00
osggeometry From Roland Smeenk, "Attached you will find a large set of small typo fixes (mainly in the comments)." 2007-12-10 17:30:18 +00:00
osggeometryshaders Added missing *. 2009-01-08 12:47:20 +00:00
osghangglide From Mathias Froehlich, "This is a generic optimization that does not depend on any cpu or instruction 2008-09-17 16:14:28 +00:00
osghud Fixed warnings 2009-01-07 11:24:47 +00:00
osgimagesequence Warning fixes 2009-02-03 15:28:53 +00:00
osgimpostor From Roland Smeenk, "Attached you will find a large set of small typo fixes (mainly in the comments)." 2007-12-10 17:30:18 +00:00
osgintersection From Martin Lavery and Robert Osfield, Updated examples to use a variation of the MIT License 2007-06-12 14:20:16 +00:00
osgintrospection Introduced a OSG_PLUGIN_PREFIX variable into CMake build system with it set to 2007-10-02 21:26:22 +00:00
osgkdtree Cleaned up osgkdtree example 2008-07-12 11:19:25 +00:00
osgkeyboard From Melchior Franz, "The GUIEventAdapter header file had KeySymbols for the super and 2008-04-11 11:10:12 +00:00
osgkeyboardmouse From Peter Hrenka, "Due to popular demand I would like to submit this 2007-12-08 16:37:05 +00:00
osglauncher From Jean-Sebastien Guay, warning fixes 2009-02-05 10:14:49 +00:00
osglight From Martin Lavery and Robert Osfield, Updated examples to use a variation of the MIT License 2007-06-12 14:20:16 +00:00
osglightpoint From Martin Lavery and Robert Osfield, Updated examples to use a variation of the MIT License 2007-06-12 14:20:16 +00:00
osglogicop From Martin Lavery and Robert Osfield, Updated examples to use a variation of the MIT License 2007-06-12 14:20:16 +00:00
osglogo Fixed positioning of wings 2008-10-27 10:40:13 +00:00
osgmanipulator From Adrain Egli, "i added a default scene with 7 different draggers attached. it's more easy to test the draggers." 2008-07-11 19:52:25 +00:00
osgmemorytest From Gary Quinn, spelling fixes 2009-02-06 15:17:49 +00:00
osgmotionblur From Martin Lavery and Robert Osfield, Updated examples to use a variation of the MIT License 2007-06-12 14:20:16 +00:00
osgmovie Warning fixes 2009-03-13 11:06:12 +00:00
osgmultiplerendertargets From J.P Delport, "I changed the default HDR mode to the ARB format and put in comments for some other possible modes. 2008-12-17 17:23:17 +00:00
osgmultitexture From Gary Quinn, spelling fixes 2009-02-06 15:17:49 +00:00
osgmultitexturecontrol Fixed warnings 2008-12-18 13:56:30 +00:00
osgoccluder Replaced usage of depreacted IntersectVisitor with IntersectionVisitor 2008-10-07 14:01:14 +00:00
osgocclusionquery From Paul Melis, "While trying out the osgbrowser example (where I had forgotten to update 2009-02-08 15:56:35 +00:00
osgpackeddepthstencil Fix for build with OSG_USE_REF_PTR_IMPLICIT_OUTPUT_CONVERSION off 2008-11-25 15:57:27 +00:00
osgpagedlod From Roland Smeenk, "Attached you will find a large set of small typo fixes (mainly in the comments)." 2007-12-10 17:30:18 +00:00
osgparametric From Martin Lavery and Robert Osfield, Updated examples to use a variation of the MIT License 2007-06-12 14:20:16 +00:00
osgparticle From Martin Lavery and Robert Osfield, Updated examples to use a variation of the MIT License 2007-06-12 14:20:16 +00:00
osgparticleeffects Replaced usage of depreacted IntersectVisitor with IntersectionVisitor 2008-10-07 14:01:14 +00:00
osgpdf Cleaned up osgWidget::VncClient and osgWidget::Browser so that their implementations are all more consitent with the osgWidget::PdfReader. 2008-12-09 11:05:04 +00:00
osgphotoalbum Where possible moved redundent C header includes from headers to source files 2008-12-12 18:47:30 +00:00
osgpick From Chris Denham, added transform to cube to test picking fixes 2008-11-06 13:36:25 +00:00
osgplanets From Roland Smeenk, "Attached you will find a large set of small typo fixes (mainly in the comments)." 2007-12-10 17:30:18 +00:00
osgpoints From Paul Martz, added --points option for forcing points rendering of polygonal models 2009-01-05 17:06:09 +00:00
osgpointsprite From Martin Lavery and Robert Osfield, Updated examples to use a variation of the MIT License 2007-06-12 14:20:16 +00:00
osgprecipitation Added support for user defined clipping of the precipitation effect, to test use: 2008-12-19 16:13:19 +00:00
osgprerender Added support for Camera::PACKED_DEPTH_STENCIL_BUFFER to .osg and .ive formats 2008-11-09 11:56:02 +00:00
osgprerendercubemap From Roland Smeenk, "Attached you will find a large set of small typo fixes (mainly in the comments)." 2007-12-10 17:30:18 +00:00
osgreflect From Roland Smeenk, "Attached you will find a large set of small typo fixes (mainly in the comments)." 2007-12-10 17:30:18 +00:00
osgrobot From Jean-Sebastien Guay, replaced M_PI with osg::PI. 2008-11-08 17:53:51 +00:00
osgscalarbar From Martin Lavery and Robert Osfield, Updated examples to use a variation of the MIT License 2007-06-12 14:20:16 +00:00
osgscreencapture Where possible moved redundent C header includes from headers to source files 2008-12-12 18:47:30 +00:00
osgscribe From Martin Lavery and Robert Osfield, Updated examples to use a variation of the MIT License 2007-06-12 14:20:16 +00:00
osgsequence From Martin Lavery and Robert Osfield, Updated examples to use a variation of the MIT License 2007-06-12 14:20:16 +00:00
osgshadergen From Maciej Krol, "As promised to Roland I assembled simple shader generator. ShaderGenVisitor converts accumulated fixed function pipeline state sets to ones with shader programs. Generated state sets are attached to geometries and stored in ShaderGenCache for reuse. 2009-03-23 11:53:06 +00:00
osgshaders From Martin Lavery and Robert Osfield, Updated examples to use a variation of the MIT License 2007-06-12 14:20:16 +00:00
osgshaderterrain Replaced usage of depreacted IntersectVisitor with IntersectionVisitor 2008-10-07 14:01:14 +00:00
osgshadow Added StandardShadowMap to list to test cases 2008-12-19 12:28:53 +00:00
osgshape From Martin Lavery and Robert Osfield, Updated examples to use a variation of the MIT License 2007-06-12 14:20:16 +00:00
osgsharedarray From Mike Garrity, "There was an on again/off again thread on OSG users about 2007-12-11 15:55:02 +00:00
osgsidebyside Fixed warnings 2008-12-18 13:56:30 +00:00
osgsimplifier From Martin Lavery and Robert Osfield, Updated examples to use a variation of the MIT License 2007-06-12 14:20:16 +00:00
osgsimulation From Michael Platings, Converted std::fstream/ifstream/ofstream to osgDB::fstream/ifstream/ofstream and 2008-11-07 15:08:08 +00:00
osgslice From Roland Smeenk, "Attached you will find a large set of small typo fixes (mainly in the comments)." 2007-12-10 17:30:18 +00:00
osgspacewarp From Martin Lavery and Robert Osfield, Updated examples to use a variation of the MIT License 2007-06-12 14:20:16 +00:00
osgspheresegment Replaced usage of depreacted IntersectVisitor with IntersectionVisitor 2008-10-07 14:01:14 +00:00
osgspotlight From Martin Lavery and Robert Osfield, Updated examples to use a variation of the MIT License 2007-06-12 14:20:16 +00:00
osgstaticviewer Added mechanism for registering proxy objects in the .osg plugin in a way that is compatible with static linking. 2008-12-10 16:26:02 +00:00
osgstereoimage From Michael Platings, Converted std::fstream/ifstream/ofstream to osgDB::fstream/ifstream/ofstream and 2008-11-07 15:08:08 +00:00
osgstereomatch Added reference to osgstereomatch example to osgmultiplerendertargets. 2008-04-11 13:04:21 +00:00
osgteapot Added include/osg/GLObjects + .cpp which provide osg::flush*DeletedGLObjects() methods. 2007-07-06 13:08:51 +00:00
osgterrain Moved IncrementalCompileOperation out of include-src/osgUtil/GLObjectVisitor into their own files. 2009-03-12 15:21:04 +00:00
osgtessellate From Martin Lavery and Robert Osfield, Updated examples to use a variation of the MIT License 2007-06-12 14:20:16 +00:00
osgtext Reverted back to previous version of osgtext 2008-02-25 13:07:37 +00:00
osgtext3D From David Callu, added support of 3D text to osgText and associated plugins. 2007-12-10 15:15:56 +00:00
osgtexture1D From Roland Smeenk, "Attached you will find a large set of small typo fixes (mainly in the comments)." 2007-12-10 17:30:18 +00:00
osgtexture2D Added setDataVariance(DYNAMIC) to text label as it's being updated dynamically 2009-02-03 12:47:41 +00:00
osgtexture3D From Martin Lavery and Robert Osfield, Updated examples to use a variation of the MIT License 2007-06-12 14:20:16 +00:00
osgtexturerectangle From Martin Lavery and Robert Osfield, Updated examples to use a variation of the MIT License 2007-06-12 14:20:16 +00:00
osgthirdpersonview From Paul Martz, a third person view CompositeViewer example 2008-03-04 13:30:41 +00:00
osgunittests Warning fixes 2009-02-03 15:28:53 +00:00
osgvertexprogram From Mathias Froehlich, "This is a generic optimization that does not depend on any cpu or instruction 2008-09-17 16:14:28 +00:00
osgviewerCocoa From Eric Sokolowski, Cmake support for osgviewerCocoa 2008-06-26 13:08:24 +00:00
osgviewerFLTK Added setting of the Camera's projection matrix to fit the windowing aspect ratio. 2007-06-23 11:21:54 +00:00
osgviewerFOX Ran conversion of tabs to four spaces 2007-09-14 11:00:32 +00:00
osgviewerGLUT From Jean-Sebastien Guay, warning fixes 2009-02-05 10:14:49 +00:00
osgviewerGTK Removed std:: from in front of strcmp and added a string.h 2008-09-01 10:19:06 +00:00
osgviewerMFC From Almalric Alexandre, "I've noticed that all osgViewerMFC example from osg 2.x.x are flickering when resizing 3D view, to avoid this only add OnEraseBkgnd callback in CMFC_OSG_MDIView class and do nothing in it. Just like the WxWidget example. 2007-09-03 10:04:34 +00:00
osgviewerQT Merged in various changes from the OSG-2.8 to being svn/trunk up to date. 2009-02-19 14:24:10 +00:00
osgviewerSDL From Jeremy Moles, "This extra call to SDL_VideoSetMode() prevents my viewport from getting 2007-12-08 15:04:47 +00:00
osgviewerWX From Paul Melis, "Here is a reworked version of the osgviewerWX example. It changes the GraphicsWindowWX to only inherit from osgViewer::GraphicsWindow and adds a standalone widget, called OSGCanvas, that derives from wxGLCanvas. This solves a problem with the GraphicsWindowWX instance being destructed twice (see "Crash in osgviewerWX" of June 12th on osg-users). At program exit, the main frame deletes all of its children widgets and therefore calls GraphicsWindowWX's destructor, bypassing OSG's reference counting. The GraphicsWindowWX instance is then later destructed a second time when the reference held by osg::Camera goes to zero. This bug isn't exposed by the example directly, but if people are going to use the example as a basis (like the poster in the mentioned thread) they very likely will run into this problem. 2008-06-19 13:49:36 +00:00
osgvnc Cleaned up osgWidget::VncClient and osgWidget::Browser so that their implementations are all more consitent with the osgWidget::PdfReader. 2008-12-09 11:05:04 +00:00
osgvolume Merged in various changes from the OSG-2.8 to being svn/trunk up to date. 2009-02-19 14:24:10 +00:00
osgwidgetaddremove From Jeremy Moles, updates to osgwidget examples. 2008-11-28 14:36:39 +00:00
osgwidgetbox From Cedric Pinson and Jeremey Moles, Changes to OpenSceneGraph-osgWidget-dev branch. 2008-12-16 20:29:00 +00:00
osgwidgetcanvas From Cedric Pinson and Jeremey Moles, Changes to OpenSceneGraph-osgWidget-dev branch. 2008-12-16 20:29:00 +00:00
osgwidgetframe From Jeremy Moles, updates to osgwidget examples. 2008-11-28 14:36:39 +00:00
osgwidgetinput From Jeremy Moles, updates to osgwidget examples. 2008-11-28 14:36:39 +00:00
osgwidgetlabel From Jeremy Moles, updates to osgwidget examples. 2008-11-28 14:36:39 +00:00
osgwidgetmenu From Jeremy Moles, updates to osgwidget examples. 2008-11-28 14:36:39 +00:00
osgwidgetmessagebox From Cedric Pinson and Jeremey Moles, Changes to OpenSceneGraph-osgWidget-dev branch. 2008-12-16 20:29:00 +00:00
osgwidgetnotebook From Jeremy Moles, updates to osgwidget examples. 2008-11-28 14:36:39 +00:00
osgwidgetperformance From Jeremy Moles, updates to osgwidget examples. 2008-11-28 14:36:39 +00:00
osgwidgetprogress From Cedric Pinson and Jeremey Moles, Changes to OpenSceneGraph-osgWidget-dev branch. 2008-12-16 20:29:00 +00:00
osgwidgetscrolled Intoduce new osgWidget::PdfReader and osgWidget::VncClient front ends to osgWidget, 2008-12-07 17:02:30 +00:00
osgwidgetshader Renamed enums in osgWidget from ALLCAPITALS to normal OSG conventional of AllCapital 2008-07-25 20:50:42 +00:00
osgwidgetstyled Fixed warnings 2008-12-18 13:56:30 +00:00
osgwidgettable From Cedric Pinson and Jeremey Moles, Changes to OpenSceneGraph-osgWidget-dev branch. 2008-12-16 20:29:00 +00:00
osgwidgetwindow Fixed warnings 2008-12-18 13:56:30 +00:00
osgwindows From Thibault Genessay, "You'll find attached a fix for the comments of the osgwindows example. It fixes a typo in the comments which is quite disturbing for newbies trying to learn using the source (twice 'left' instead of 'left' and 'right'). 2007-07-03 17:32:19 +00:00
CMakeLists.txt From Maciej Krol, "As promised to Roland I assembled simple shader generator. ShaderGenVisitor converts accumulated fixed function pipeline state sets to ones with shader programs. Generated state sets are attached to geometries and stored in ShaderGenCache for reuse. 2009-03-23 11:53:06 +00:00