OpenSceneGraph/examples
Robert Osfield 6d66e1abaa Added support for using GL_UNPACK_ROW_LENGTH in conjunction with texture's + osg::Image via new RowLength
parameter in osg::Image.  To support this Image::setData(..) now has a new optional rowLength parameter which
defaults to 0, which provides the original behaviour, Image::setRowLength(int) and int Image::getRowLength() are also provided.

With the introduction of RowLength support in osg::Image it is now possible to create a sub image where
the t size of the image are smaller than the row length, useful for when you have a large image on the CPU
and which to use a small portion of it on the GPU.  However, when these sub images are created the data
within the image is no longer contiguous so data access can no longer assume that all the data is in
one block.  The new method Image::isDataContiguous() enables the user to check whether the data is contiguous,
and if not one can either access the data row by row using Image::data(column,row,image) accessor, or use the
new Image::DataIterator for stepping through each block on memory assocatied with the image.

To support the possibility of non contiguous osg::Image usage of image objects has had to be updated to
check DataContiguous and handle the case or use access via the DataIerator or by row by row.  To achieve
this a relatively large number of files has had to be modified, in particular the texture classes and
image plugins that doing writing.
2012-01-24 14:34:02 +00:00
..
osg2cpp Fixed the searchAndReplace function so that it correctly skips over the newly inserted replacement strings. 2011-05-27 11:07:04 +00:00
osganalysis From Alberto Luacas, typo fixes 2011-07-17 16:24:47 +00:00
osgAndroidExampleGLES1 From Jorge Ciges, "two clean example viewers (GLES1/2) that permit load models withouth recompiling by options in the menu and some basic options. basic options. 2011-06-09 14:11:04 +00:00
osgAndroidExampleGLES2 From Jorge Ciges, "two clean example viewers (GLES1/2) that permit load models withouth recompiling by options in the menu and some basic options. basic options. 2011-06-09 14:11:04 +00:00
osganimate Replaced .osg with .osgt file usage 2011-06-14 16:54:20 +00:00
osganimationeasemotion Fixed warning 2010-03-25 14:12:28 +00:00
osganimationhardware From Cedric Pinson, "Here a list of changes: 2010-01-27 12:24:55 +00:00
osganimationmakepath Converted FrameStamp::g/setFrameNumber from int to uint 2010-12-22 20:11:05 +00:00
osganimationmorph Fixed memory leak by introducing use of ref_ptr<> 2010-12-20 12:03:56 +00:00
osganimationnode Converted FrameStamp::g/setFrameNumber from int to uint 2010-12-22 20:11:05 +00:00
osganimationskinning Tightened up float usage. 2011-06-25 07:07:16 +00:00
osganimationsolid From Jan Klimke, "I did recently some work understanding the osgAnimation classes. Here the osganimationsolid example seems not to be very helpful at the moment. There are basically no comments in it and additionally there is a second animation defined which was simply not working (wrong channel type for angle animation). I added some comments and fixed the example to contain 2 working animations by now. I think this could help others who are trying to understand the osgAnimation plugin. 2010-11-04 15:24:00 +00:00
osganimationtimeline From Cedric Pinson, updates to osganimation example to keep in sync with changes with osgAnimation, and introduction of a hardware skinning example 2009-10-28 13:31:24 +00:00
osganimationviewer From Bryan Thrall, "Attached files fix typos, from svn 9791: 2009-02-20 11:53:49 +00:00
osgautocapture Build fixes to keep up with changes in head inclusions/API in osgDB 2010-12-10 13:22:21 +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 Replaced .osg with .osgt file usage 2011-06-14 16:54:20 +00:00
osgcallback Replaced .osg with .osgt file usage 2011-06-14 16:54:20 +00:00
osgcamera Replaced .osg with .osgt file usage 2011-06-14 16:54:20 +00:00
osgcatch Replaced .osg with .osgt file usage 2011-06-14 16:54:20 +00:00
osgclip Replaced .osg with .osgt file usage 2011-06-14 16:54:20 +00:00
osgcluster Windows warning fixes 2011-06-16 15:57:40 +00:00
osgcompositeviewer Replaced .osg with .osgt file usage 2011-06-14 16:54:20 +00:00
osgcopy Replaced .osg with .osgt file usage 2011-06-14 16:54:20 +00:00
osgcubemap Replaced .osg with .osgt file usage 2011-06-14 16:54:20 +00:00
osgdatabaserevisions Fixed typo of commercial 2010-11-22 11:22:03 +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 Simplified the osgdepthpartion example to use the osgView::View::setUpDepthPartition(..) feature 2011-06-08 09:24:29 +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
osgdirectinput Replaced .osg with .osgt file usage 2011-06-14 16:54:20 +00:00
osgdistortion Resolved warnings reported by g++ 4.6's -Wunused-but-set-variable. 2011-06-22 12:30:01 +00:00
osgdrawinstanced Replaced .osg with .osgt file usage 2011-06-14 16:54:20 +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 Added StateSet event handler to osgfont and osgtext to aid with debugging 2010-03-18 17:10:48 +00:00
osgforest From Trajce Nikolov, "Here is extended version of the osgforest example - technique with geometry shader added, was doing it for a project so I thought might be useful to update the example as well 2011-11-18 08:20:04 +00:00
osgfpdepth Changed the ref_ptr<T> observer_ptr<>::lock() method to be 2010-05-28 08:57:48 +00:00
osgfxbrowser Replaced .osg with .osgt file usage 2011-06-14 16:54:20 +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 Replaced .osg with .osgt file usage 2011-06-14 16:54:20 +00:00
osggeometryshaders Added missing *. 2009-01-08 12:47:20 +00:00
osggpx Added support for a wider range of gpx files 2010-05-31 15:51:59 +00:00
osggraphicscost Moved GraphicsCostEstimator from osgUtil into core OSG library 2011-02-03 12:22:09 +00:00
osghangglide Renamed osgGA::MatrixManipualtor to osgGA::CameraManipulator so its name better reflects it's function 2010-05-27 15:54:37 +00:00
osghud Replaced .osg with .osgt file usage 2011-06-14 16:54:20 +00:00
osgimagesequence Warning fixes 2009-02-03 15:28:53 +00:00
osgimpostor Renamed osgGA::MatrixManipualtor to osgGA::CameraManipulator so its name better reflects it's function 2010-05-27 15:54:37 +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
osgkdtree Cleaned up osgkdtree example 2008-07-12 11:19:25 +00:00
osgkeyboard From Alexander Sinditskiy, "reason of this changes described in http://forum.openscenegraph.org/viewtopic.php?t=7596 2011-01-27 16:23:48 +00:00
osgkeyboardmouse Replaced .osg with .osgt file usage 2011-06-14 16:54:20 +00:00
osglauncher From Jean-Sebastien Guay, warning fixes 2009-02-05 10:14:49 +00:00
osglight Replaced .osg with .osgt file usage 2011-06-14 16:54:20 +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 Replaced .osg with .osgt file usage 2011-06-14 16:54:20 +00:00
osglogo Fixed positioning of wings 2008-10-27 10:40:13 +00:00
osgmanipulator Fixed indentation 2011-05-26 16:13:04 +00:00
osgmemorytest From Gary Quinn, spelling fixes 2009-02-06 15:17:49 +00:00
osgmotionblur Replaced .osg with .osgt file usage 2011-06-14 16:54:20 +00:00
osgmovie From Jean-Sebastien Guay, build fixes for Mingw 2010-01-18 14:27:20 +00:00
osgmultiplerendertargets From Anthousis Andreadis, added multiple sampling test for multiple rendering targets which is activated by the --ms command line option. 2011-06-15 09:35:25 +00:00
osgmultitexture Replaced .osg with .osgt file usage 2011-06-14 16:54:20 +00:00
osgmultitexturecontrol Converted FrameStamp::g/setFrameNumber from int to uint 2010-12-22 20:11:05 +00:00
osgmultiviewpaging From Mathias Froehlich, "Attached are most of the fixes that are required to build osg on solaris and 2010-12-02 14:13:54 +00:00
osgoccluder Replaced .osg with .osgt file usage 2011-06-14 16:54:20 +00:00
osgocclusionquery Improved the handling of command line parameters 2011-06-14 16:50:40 +00:00
osgoit From Mathias Froehlich, "I have now put together what I have for the order independent transparency or 2010-07-12 11:30:15 +00:00
osgoutline Replaced .osg with .osgt file usage 2011-06-14 16:54:20 +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 Alberto Luacas, typo fixes 2011-07-17 16:24:47 +00:00
osgparametric Fixed compile warnings 2009-12-15 14:45:33 +00:00
osgparticle From Martin Scheffler, "osgParticle: method to set start and end tile for particle texture (for animated particles). I also updated examples/osgParticle to show the feature. 2009-11-24 15:00:11 +00:00
osgparticleeffects From Alberto Luacas, typo fixes 2011-07-17 16:24:47 +00:00
osgparticleshader From Wang Rui, reverted changes to osgPartcile that caused problems with osgparticleeffects. 2010-09-20 11:50:24 +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 Added support for using GL_UNPACK_ROW_LENGTH in conjunction with texture's + osg::Image via new RowLength 2012-01-24 14:34:02 +00:00
osgpick Replaced .osg with .osgt file usage 2011-06-14 16:54:20 +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 Fixed permissions 2010-06-03 15:04:58 +00:00
osgposter Resolved warnings reported by g++ 4.6's -Wunused-but-set-variable. 2011-06-22 12:30:01 +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 Replaced .osg with .osgt file usage 2011-06-14 16:54:20 +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
osgqfont Updated example to use new GraphicsWindowQt::getGLWidget() method instead of deprecated getGraphWidget() method 2011-05-16 09:16:22 +00:00
osgQtBrowser Changed the use of a viewer thread to be off by default because it was causing the application to crash when any users input was recieved 2011-03-09 10:35:00 +00:00
osgQtWidgets Changed the use of a viewer thread to be off by default because it was causing the application to crash when any users input was recieved 2011-03-09 10:35:00 +00:00
osgreflect Replaced .osg with .osgt file usage 2011-06-14 16:54:20 +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 Added support for using GL_UNPACK_ROW_LENGTH in conjunction with texture's + osg::Image via new RowLength 2012-01-24 14:34:02 +00:00
osgscribe Replaced .osg with .osgt file usage 2011-06-14 16:54:20 +00:00
osgsequence Replaced .osg with .osgt file usage 2011-06-14 16:54:20 +00:00
osgshadercomposition Added debug State::print(std::ostream&) method and extra debug messages in ShaderComposer and ShaderAttribute. 2010-07-10 17:14:59 +00:00
osgshadergen Ran svn propset -R svn:eol-style native . on the OpenSceneGraph 2011-04-19 11:40:22 +00:00
osgshaders Moved osgshaders example across to use the new osgUtil::PerlinNoise example 2011-12-13 21:14:33 +00:00
osgshaderterrain Replaced usage of depreacted IntersectVisitor with IntersectionVisitor 2008-10-07 14:01:14 +00:00
osgshadow Added --num-sm and --parallel-split and --cascaded command line options to set the appriopriate ViewDependentShadowMap settings. 2011-12-19 09:09:30 +00:00
osgshape Added enabling of lighting, and disabling of mipmapping to help out testing of GLES2 target 2009-11-10 12:01:28 +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 Replaced .osg with .osgt file usage 2011-06-14 16:54:20 +00:00
osgsimplifier Replaced .osg with .osgt file usage 2011-06-14 16:54:20 +00:00
osgsimulation Replaced .osg with .osgt file usage 2011-06-14 16:54:20 +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 .osg with .osgt file usage 2011-06-14 16:54:20 +00:00
osgspotlight Replaced .osg with .osgt file usage 2011-06-14 16:54:20 +00:00
osgstaticviewer From Wang Rui, "I've finally completed the static build support for dotosg wrapper and 2010-11-11 11:47:24 +00:00
osgstereoimage Replaced .osg with .osgt file usage 2011-06-14 16:54:20 +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 From Jean-Sebastien, "In my auto-build today there are 3 errors caused by using a ref_ptr<T> in a function taking a T* when building without the implicit conversion." 2010-12-23 09:59:35 +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 Cleaned up example 2011-04-19 09:53:34 +00:00
osgtext3D Resolved warnings reported by g++ 4.6's -Wunused-but-set-variable. 2011-06-22 12:30:01 +00:00
osgtexture1D Replaced .osg with .osgt file usage 2011-06-14 16:54:20 +00:00
osgtexture2D Added support for using GL_UNPACK_ROW_LENGTH in conjunction with texture's + osg::Image via new RowLength 2012-01-24 14:34:02 +00:00
osgtexture3D Introduced osg namespace to new local GLU functions 2010-10-07 11:53:28 +00:00
osgtexturecompression Added osgtexturecompression example to demonstate the quality difference between 2009-03-26 17:24:28 +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 Replaced .osg with .osgt file usage 2011-06-14 16:54:20 +00:00
osgthreadedterrain Resolved warnings reported by g++ 4.6's -Wunused-but-set-variable. 2011-06-22 12:30:01 +00:00
osguniformbuffer From Tim Moore, "Here is initial support for uniform buffer objects. The binding between a buffer object and an indexed target is implemented as a new StateAttribute, UniformBufferBinding. I've included an example program based on the code in the ARB_uniform_buffer_object specification. 2010-11-29 17:43:27 +00:00
osgunittests Replaced .osg with .osgt file usage 2011-06-14 16:54:20 +00:00
osguserdata Refactored the UserDataContainer so that the osg::UserDataContainer is now a pure virtual base class, 2011-06-09 12:57:14 +00:00
osguserstats Converted FrameStamp::g/setFrameNumber from int to uint 2010-12-22 20:11:05 +00:00
osgvertexattributes Changed default enabling of vertex attribute mapping 2009-11-10 12:03:03 +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 Replaced .osg with .osgt file usage 2011-06-14 16:54:20 +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
osgviewerIPhone Removed the executable property from source files 2011-01-27 09:41:37 +00:00
osgviewerMFC From Wang Rui, "I've encountered a strange problem that osgviewerMFC doesn't work well 2011-09-12 10:47:59 +00:00
osgviewerQt Replaced .osg with .osgt file usage 2011-06-14 16:54:20 +00:00
osgviewerSDL From Jean-Sebastien Guay, build fixes for Mingw 2010-01-18 14:27:20 +00:00
osgviewerWX Fixed memory leak 2011-09-14 10:45:11 +00:00
osgvirtualprogram From Magnus Kessler, "After a closer look at this particular issue, I used some grep and sed magic 2010-09-30 16:57:02 +00:00
osgvnc Added password support into osgvnc example and vnc plugin 2011-10-26 12:29:38 +00:00
osgvolume Fixed typo in command line output, and add an explanation message for when createTexture3D fails to create an osg::Image from a list of input osg::Image. 2011-10-20 08:59:47 +00:00
osgwidgetaddremove From Mattias Helsing, "Fixes two of the osgWidget examples that were broken due to changed 2011-04-26 12:07:37 +00:00
osgwidgetbox Replaced .osg with .osgt file usage 2011-06-14 16:54:20 +00:00
osgwidgetcanvas Resolved warnings reported by g++ 4.6's -Wunused-but-set-variable. 2011-06-22 12:30:01 +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 Alberto Luacas, typo fixes 2011-07-17 16:24:47 +00:00
osgwidgetmessagebox Replaced .osg with .osgt file usage 2011-06-14 16:54:20 +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 Replaced .osg with .osgt file usage 2011-06-14 16:54:20 +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 Replaced .osg with .osgt file usage 2011-06-14 16:54:20 +00:00
osgwindows Replaced .osg with .osgt file usage 2011-06-14 16:54:20 +00:00
CMakeLists.txt Fixed build under Tiny Core. 2011-11-30 19:14:14 +00:00