Robert Osfield
e1eeabcea0
Improved the NaN depth detection within CullVisitor and debug output.
2008-05-29 11:13:29 +00:00
Robert Osfield
2a11d25bbc
Improved the NaN error detection and reporting.
2008-05-29 11:09:56 +00:00
Robert Osfield
4745ab040b
Added catch for NaN depth values
2008-05-28 17:56:22 +00:00
Robert Osfield
3c6b6e4d97
From Stephane Lamoliatte, "Here is a patch that fix the strange bug describe on the osg-user group.
...
Finally it seems to not come from the empty geode. The origin of the problem seems to be the uniform initialization during the building of the program which call a glUseProgram.
If your scene never display the node that contains the shader and if there is no other shader on the scene, this "glUseProgram" is the only one that is called during your simulation. So, this shader is applied on all the scene.
I fix this bug by switching off the shader (by calling glUseProgram(0) ) during the compilation of a state which does not contain the shader.
"
2008-05-27 11:04:52 +00:00
Robert Osfield
9623731185
Added RenderStage::setClear*() methods from Camera::getClear*() sources
2008-05-24 09:24:37 +00:00
Robert Osfield
7a074acd49
From Mathias Froehlich, Fixed FrameBufferObject attachement code to handle cases
...
where no texture or image is attached
2008-05-12 11:39:02 +00:00
Robert Osfield
78964b4baa
Reverted the changes for ill fated tweaks for Apple build
2008-04-24 11:34:43 +00:00
Robert Osfield
8ae30c9bfc
Refactored the inclusion of the headers in the ADD_LIBRARY so that they aren't
...
added under OSX.
2008-04-23 20:50:53 +00:00
Robert Osfield
55c6348cba
Fixed bug in FBO colour attachement code
2008-04-18 14:33:14 +00:00
Robert Osfield
651c93e6c7
Added optional compiled in debugging output to CullVisitor::apply(osg::Camera&)
2008-04-18 14:14:33 +00:00
Robert Osfield
648199cb2b
Changed the FrameBufferObject::setAttachment() methods so it now use osg::Camera::BufferComponent
...
to enable it to distinguish between MRT and non MRT paths
2008-04-18 13:25:14 +00:00
Robert Osfield
9724303f38
From Art Trevs, moved multile render targets support from RenderStage into FrameBufferObject.
...
From Robert Osfield, refactored the FrameBufferObejcts::_drawBuffers set up so that its done
within the setAttachment method to avoid potential threading/execution order issues.
2008-04-15 19:36:40 +00:00
Robert Osfield
6691824244
Added subdivision of Goedes
2008-04-13 19:31:09 +00:00
Robert Osfield
db8cb2a644
From Jose Delport, added support for MRT via glDrawBuffers
2008-04-02 17:08:40 +00:00
Robert Osfield
f5c9b548a8
Updated to reflect new COLOR_BUFFER0 value
2008-04-02 13:55:50 +00:00
Robert Osfield
4d4a75e818
From Jose Delport, typo fixes
2008-04-02 11:28:10 +00:00
Robert Osfield
64f8631d9d
Added Camera::s/getClearAccum, s/getClearStencil and s/getClearDepth.
2008-03-31 11:44:31 +00:00
Robert Osfield
b4245023a9
Fixed LessGeode operator.
2008-03-25 12:26:43 +00:00
Robert Osfield
292be66ecc
Removed gl and glu prefixes from SceneGraphBuilder methods to avoid problems under Solaris
2008-03-13 19:44:10 +00:00
Robert Osfield
3a11483ba8
Added support for assigning state to created drawables, implemented gluDisk.
2008-03-13 13:44:34 +00:00
Robert Osfield
db256b962c
Added proper implementations of OpenGL 1.0 calls to OSG object representation methods in SceneGraphBuilder.
2008-03-12 20:15:28 +00:00
Robert Osfield
a26bdd9446
Added default implementations of new SceneGraphBuilder class
2008-03-11 13:29:12 +00:00
Robert Osfield
23bc6c2fe5
Refactored the way that the camera settings are inhertied
2008-03-04 16:03:37 +00:00
Robert Osfield
aa43b3c8a6
Added Camera::g/setIntialDrawCallback and g/setFinalDrawCallback(), and added
...
screen snapshot example code to osghud.
2008-02-29 15:25:57 +00:00
Robert Osfield
11db24e6b3
From Colin McDonald, build fixes for Solaris.
2008-01-08 18:13:06 +00:00
Robert Osfield
2aca19a4e6
From David Callu, further work in support of shapefile support in VirtualPlanetBuilder
2007-12-26 21:39:29 +00:00
Robert Osfield
4c46475ca2
From Paul Martz, "added include<alogrithm> to prevent VS8 compile error"
2007-12-21 16:18:54 +00:00
Robert Osfield
4889342c4a
From Paul Martz, Introduced osg::OcclusionQueryNode with support for OpenGL occlusion query extension
2007-12-21 14:45:16 +00:00
Robert Osfield
cf1a30841a
From David Callu, various classes in support of VirtualPlanetBuilder
2007-12-21 13:07:54 +00:00
Robert Osfield
2c0842c7b7
Added an optional use of doubles for computing error metrics to help investigate precision issues seen in VPB when working with small segments of geographic data.
2007-12-20 15:50:07 +00:00
Robert Osfield
c5704586f9
From Richard Schmidt, "attached you will find a set of small fixes and features.
...
CullVisitor/SceneView:
*Feature: This version supports multiple clearnodes in the graph, one per renderstage.
Text:
*Feature: Performance Enhancement when calling SetBackdropColor
Material:
*Fix: OpenGL calls are now made according to the OpenGL Standard
"
2007-12-10 20:30:05 +00:00
Robert Osfield
f4afa427a7
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
Robert Osfield
65bef96a6e
From Peter Hrenka, "Due to popular demand I would like to submit this
...
enhanced version of PolytopeIntersector.
New features of PolytopeIntersector :
* Dimension mask: The user may specify the dimensions of the
primitives to be tested. Checking polytope-triangle and
polytope-quad intersections is rather slow so this can
be turned off.
* Reference plane: The resulting intersections are sorted
by the distance to this plane.
New memebers of PolytopeIntersector::Intersection :
* distance: Distance of localIntersectionPoint to the reference plane
* maxDistance: Maximum distance of all intersectionPoints to the
reference plane.
* intersectionPoints: The points intersecting the planes of the polytope
or points completely inside the polytope.
* localIntersectionPoint: arithmetic mean of all intersection points
* primitiveIndex: Index of the primitive that intersected
I added some more output to the example osgkeyboardmouse."
2007-12-08 16:37:05 +00:00
Robert Osfield
1b1c5bbdd1
Added support for new double Vec*Array classes in various functors.
2007-12-04 14:46:46 +00:00
Robert Osfield
1f7b27f851
Changed the simplifier so that it produces deterministic results, no longer
...
using memory pointers for sorting.
2007-09-19 10:14:52 +00:00
Robert Osfield
0b39152321
Fixed warnigns
2007-09-13 10:38:38 +00:00
Robert Osfield
8e7e6529be
From David Callu, warning fixes
2007-09-07 15:03:56 +00:00
Robert Osfield
b20d542317
From David Callu, improved consistency of Version strings and add version support
...
for osgIntrospection and osgManipulator.
2007-09-05 17:12:24 +00:00
Robert Osfield
92b1e7d53f
Changed tabs to four spaces to make merges more straight forward
2007-09-05 17:03:43 +00:00
Robert Osfield
4ba3f3c1a1
Changed RenderLeaf and StateGraph so that they use ref_ptr<> by default for Drawable and StateSet.
2007-08-31 16:05:24 +00:00
Robert Osfield
6827104532
From Galen Faidley," Please find attached the modifications to get the new checkerboard
...
stereo format to work. It's a good thing I tested these on a TV
before submitting them since I did indeed have a bug. One thing I
did not test was to see how this would work in windowed mode. Does
the interlaced stereo code have support for 'absolute' positions?
For example a given pixel on the screen is always shown in a given
eye no matter where the graphics context is placed?
"
2007-08-23 14:31:23 +00:00
Robert Osfield
ef4dafaea1
Cleaned up copy constructor and switched on thread safe ref/unref.
2007-08-22 09:50:09 +00:00
Robert Osfield
e3b7b2f617
Added new statc prototype() and create() methods to CullVisitor and DatabasePager to allow overriding of the default implementations
2007-08-08 08:10:38 +00:00
Robert Osfield
4c3a13c3a1
From Andy Skinner, fixes for avoiding warnings about mixing c and c++ versions of c libs.
2007-08-05 14:51:56 +00:00
Robert Osfield
1b36cfc928
Added save and restoring of the cull mask to Camera handling code
2007-08-02 08:50:39 +00:00
Robert Osfield
8fa79e8c7e
Ported across Viewer's to use osgUtil::GLObjectOperation, added second option
...
in GLObjectOperation to handle cases when no subgraph is registered, in these
case the code now compile all Camera subgraphs.
2007-07-30 10:52:37 +00:00
Robert Osfield
59d3e0ceb7
From Andy Skinner, adding C includes to avoid issues when mixing C and C++ standard includes
2007-07-28 10:44:03 +00:00
Robert Osfield
6dec61842d
Introduce Camera::s/getRenderer().
2007-07-28 10:28:40 +00:00
Robert Osfield
8c60ea437f
Commented out debug messages
2007-07-18 16:14:59 +00:00
Robert Osfield
1f0edca631
Added support into osg::RenderInfo for a stack of Cameras that allow querries
...
of which camera is currently active to be querried from within the draw traversal.
2007-07-14 17:07:59 +00:00