Robert Osfield
9e18a7542b
Added ability to set which tree rendering techniques to build (via --featuers bitmask command line) and
...
output scene to using -o outputfilename.extension command line.
2019-04-12 13:55:39 +01:00
Robert Osfield
1c65815f4e
Fixed crash on exit issues with osgFX, osgParticle, osgSim and the osgforest example
2019-01-07 17:46:02 +00:00
Julien Valentin
78b99c7143
Refactored osg::TextureBuffer to support assigning any type of osg::BufferData rather than just osg::Image as was previously required.
...
Refactored osgforest and osggpucull examples to take account of changes to TextureBuffer.
Added osg::DrawIndirectBufferBinding.
2016-06-15 19:05:35 +01:00
Robert Osfield
80e318ce15
Fixed shadows warnigns
2016-05-26 10:35:33 +01:00
Robert Osfield
dd996a3289
Introduced CMake option OSG_PROVIDE_READFILE option that defaults to ON, but when switched to OFF disables the building of the osgDB::read*File() methods,
...
forcing users to use osgDB::readRef*File() methods. The later is preferable as it closes a potential threading bug when using paging databases in conjunction
with the osgDB::Registry Object Cache. This threading bug occurs when one thread gets an object from the Cache via an osgDB::read*File() call where only
a pointer to the object is passed back, so taking a reference to the object is delayed till it gets reassigned to a ref_ptr<>, but at the same time another
thread calls a flush of the Object Cache deleting this object as it's referenceCount is now zero. Using osgDB::readREf*File() makes sure the a ref_ptr<> is
passed back and the referenceCount never goes to zero.
To ensure the OSG builds when OSG_PROVIDE_READFILE is to OFF the many cases of osgDB::read*File() usage had to be replaced with a ref_ptr<> osgDB::readRef*File()
usage. The avoid this change causing lots of other client code to be rewritten to handle the use of ref_ptr<> in place of C pointer I introduced a serious of
templte methods in various class to adapt ref_ptr<> to the underly C pointer to be passed to old OSG API's, example of this is found in include/osg/Group:
bool addChild(Node* child); // old method which can only be used with a Node*
tempalte<class T> bool addChild(const osg::ref_ptr<T>& child) { return addChild(child.get()); } // adapter template method
These changes together cover 149 modified files, so it's a large submission. This extent of changes are warrent to make use of the Object Cache
and multi-threaded loaded more robust.
git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@15164 16af8721-9629-0410-8352-f15c8da7e697
2015-10-22 13:42:19 +00:00
Robert Osfield
4174d72a52
2014-05-14 10:19:43 +00:00
Robert Osfield
4b9aa1fd24
Replaced deprecated osg::Geometry::set*Binding() usage.
2013-06-27 09:54:12 +00:00
Robert Osfield
02e4aef5cb
From Martin Naylor, "I am receiving 1 build error whilst building the SVN, its in osgforest as follows:
...
error C2065: 'GL_RGBA32F' : undeclared identifier
Shoudlnt that be GL_RGBA32F_ARB as defined in texture header?
Attached is the easy fix :)."
2013-05-27 08:13:23 +00:00
Robert Osfield
5de095cb1d
From Pawel Ksiezopolski, Added example of using osg::TextureBuffer + GLSL to render forest.
2013-05-23 15:55:22 +00:00
Robert Osfield
116b9a978c
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
Robert Osfield
c7542d5cd8
Fixed indentation
2011-11-18 08:15:36 +00:00
Robert Osfield
8a4956a257
Replaced glColor4fv call with osg::State::Color(..)
2009-11-03 16:48:48 +00:00
Robert Osfield
4d0a3444be
From Christian Buchner, "I am hereby amending the osgforest sample with some code (functionally
...
equivalent to the GLSL shaders sample) that displays the forest with
shaders on Intel 945 GM hardware. This card supports OpenGL 1.4 and
ARB_fragment/vertex_program only.
I would be pleased if this change made it into the official set of
examples, as it illustrates the use of ARB shaders quite nicely. I did
not find any other example covering this topic."
2009-02-19 16:58:05 +00:00
Robert Osfield
bad9854d71
Added very basic osgvnc example that uses the LibVNCServer client libries for implementing a vnc client
...
as an osg::Image with the vnc data stream going to it.
2008-10-31 12:03:44 +00:00
Robert Osfield
907a51b198
Replaced usage of depreacted IntersectVisitor with IntersectionVisitor
2008-10-07 14:01:14 +00:00
Robert Osfield
9ce276c5d7
From Alberto Luaces, "Here I send minor corrections to the text output by the osgforest example when
...
building its graphs. The message "Creating billboard based forest" appears
four times regardless of the actual type of the graph being built.
"
2008-03-13 13:43:22 +00:00
Robert Osfield
998ba32501
Added parsing of parameters to Viewer constructor.
2007-12-16 13:29:02 +00:00
Robert Osfield
fddcebd479
Added StateSetManipulator for testing purposes, and fixed typo
2007-12-16 13:25:40 +00:00
Robert Osfield
cc0f1cb0fe
From Martin Lavery and Robert Osfield, Updated examples to use a variation of the MIT License
2007-06-12 14:20:16 +00:00
Robert Osfield
5be86601bb
Removed old GNUmakefile.inst files
2007-04-10 13:58:18 +00:00
Robert Osfield
2e6ee4bb39
Removed old gmake and VisualStudio build files
2007-04-10 13:10:25 +00:00
Robert Osfield
d9a94f7890
Moved the TARGET_NAME setting into the SETUP_APPLICATION/EXAMPLE macro
2007-03-19 17:18:59 +00:00
Robert Osfield
da64127539
Ran dos2unix on CMakeLists.txt files.
2007-03-19 13:26:34 +00:00
Robert Osfield
be3f61c49f
From Luigi Calori, move to using local CMakeLists.txt files and explicit file lists.
...
From Robert Osfield, small ammendments of the above to seperate example and application installs, and fix the osgPlugins install directory.
2007-03-19 12:30:26 +00:00
Robert Osfield
19a7ec0f6b
Ported osgcopy, osgcubemap, osgdelaunay, osgdepthpartion, osgdistortion, osgfadetext, osgforest and osgfxbrowser to osgViewer
2007-01-06 21:35:57 +00:00
Robert Osfield
d40e12a27b
Removed deprecated GUIEventHandler method
2006-10-05 14:32:39 +00:00
Robert Osfield
def74d3471
Introduced new osg::View, and osg::RenderInfo classes into the core OSG to help
...
handle scenes with multiple views with elements that need coordinating on a per view basis.
Added beginings of new osgText::FadeText class (not functionality yet).
2006-09-18 20:54:48 +00:00
Robert Osfield
b81cea3963
Added missing include <osg/TexEnv>
2006-08-02 21:04:29 +00:00
Robert Osfield
41a4aa1548
Added viewer.cleanup_frame() to all examples.
2006-08-02 19:55:03 +00:00
Robert Osfield
91855e7c50
Replaced tabs with spaces in examples.
2005-11-17 20:22:55 +00:00
Robert Osfield
db24ea247c
Changed #if
2005-09-05 13:27:48 +00:00
Robert Osfield
75987a045d
Added osgshaderterrain example.
2005-08-15 13:54:25 +00:00
Robert Osfield
7cb6bbdfea
Added GLSL shader pathway into osgforest.
2005-08-09 09:11:15 +00:00
Robert Osfield
8dd013171c
Ported all the render to texture examples across to using the new osg::CameraNode.
...
Added support for texture cube maps in FBO + CameraNode.
2005-07-19 16:30:55 +00:00
Robert Osfield
d35ea68f3e
Renamed Byte2,3,4 and Short2,3,4 and UByte4 to use the Vec*b, Vec*s and Vec4ub form
2005-07-15 14:41:19 +00:00
Robert Osfield
8bc1910767
Added experimental OpenGL shader path for positioning of trees (doens't work yet though..)
2005-06-22 11:01:22 +00:00
Robert Osfield
538ced579e
Removed deprecated API in preparation for 0.9.9 release.
2005-05-09 13:09:07 +00:00
Robert Osfield
a61a99251f
Removed multiple inheritance from TechniqueEventHandler.
2005-03-23 10:41:51 +00:00
Robert Osfield
3005f34cc4
Fixed old handle(..) method call parameters
2005-03-11 20:19:16 +00:00
Robert Osfield
b70ff91eaf
Changed ABSOLUTE and RELATIVE to ABSOLUTE_RF and RELATIVE_RF to avoid stooppid Win32 #define
2004-10-24 20:04:00 +00:00
Robert Osfield
6821a80e14
Changed the ReferenceFrame enums to be RELEATIVE and ABSOLUTE, and
...
deprecated the RELATIVE_TO_ABSOLUTE and RELATIVE_TO_PARENTS.
2004-10-22 19:26:45 +00:00
Robert Osfield
eb4ee3afad
*** empty log message ***
2003-10-27 16:07:21 +00:00
Robert Osfield
42a8ec7eb5
Adding clamping of the tree textures.
2003-10-17 10:22:46 +00:00
Robert Osfield
80d1e69e2c
Added text hud instructions.
2003-09-30 15:50:46 +00:00
Robert Osfield
af8b5df0ae
Added quad tree support into osgforest
2003-09-30 13:48:58 +00:00
Robert Osfield
f8df9991b2
Improves to CullStack.
...
From M.Grngr. options support for f=switching off internal imagery in .ive files
2003-09-26 11:20:43 +00:00
Robert Osfield
7fb9f6be4b
Added the beginnings of a new osgforest example.
...
Added support into osg::TriangleFunctor for specifying whether the vertices
being generates are temporary or not.
2003-09-25 21:54:33 +00:00