Robert Osfield
c10acfcc47
From Bob Kuehne, "he attached are conversions of the 3 main places i found in osg where tokens are used to represent bitmasks with 'magic' numbers, like 32. i've changed these to a more representative bitshift representation, showing clearly in which bit you can expect this token to manifest. ie, converted things like:
...
from: DEEP_COPY_STATESETS = 8,
to: DEEP_COPY_STATESETS = 1<<3,
showing clearly that this isn't the _value_ 8, but the _bit_ 8. this is an old pattern i see (and like to promulgate) to make code a bit more readable and maintainable.
"
2008-04-16 15:23:12 +00:00
Robert Osfield
3ef40a2301
Updated version number for nex dev release
2008-04-16 15:22:03 +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
b12d209463
Added docs explaining units
2008-04-14 10:38:37 +00:00
Robert Osfield
f85ced09a6
Changed bias parameter to scale
2008-04-12 10:02:28 +00:00
Robert Osfield
e0a780b404
Updated wrappers, and version numbers in prep for next release
2008-04-11 14:43:22 +00:00
Robert Osfield
2a54ff3e4a
Introduced CMake build option for compiling double or float versions of osg::BoundingSphere and osg::BoundingBox.
...
Introduced code in BoundgingSphere, BoundingBox, ProxyNode and LOD to utilise the above settings.
Added Matrix::value_type, Plane::value_type, BoundingSphere::value_type and BoundingBox::value_type command line
options that report where the types of floats or doubles.
2008-04-03 18:36:50 +00:00
Robert Osfield
3e94d93a66
Changed the Camera::BufferComponent::COLOR_BUFFER0 from being equal to COLOR_BUFFER
...
to being COLOR_BUFFER+1 to enable differentation between non MRT and MRT paths.
2008-04-02 13:47:45 +00:00
Robert Osfield
73b87274b0
Updated version numbers for 2.3.7 dev release
2008-04-01 10:33:01 +00:00
Robert Osfield
64f8631d9d
Added Camera::s/getClearAccum, s/getClearStencil and s/getClearDepth.
2008-03-31 11:44:31 +00:00
Robert Osfield
88ba7cc0d6
Updated version and ChangeLog for 2.3.6 dev release.
2008-03-19 17:10:38 +00:00
Robert Osfield
027b4b0986
Introduced InheritanceMaskActionOnAttributeSetting member to CullSettings, and associated applyMaskAction method that is
...
now used in all CullSettings::set*() methods, which by default helps disable the inheritance mask associated
with settings that are made locally.
2008-03-19 11:40:08 +00:00
Robert Osfield
1d1dcf2cf3
To osg::AutoTransform added support for MinimumScale, MaximumScale and AutoScaleTransitionWidth parameters
...
and a new scheme for computing the scaling when using autoscale that introduces smooth
transitions to the scaling of the subgraph so that it looks more natural.
2008-03-18 15:37:38 +00:00
Robert Osfield
7a7c197af3
Added minimum and maximum scale support to osg::AutoTransform
2008-03-17 15:22:03 +00:00
Robert Osfield
457a28d40e
Improved the indenting
2008-03-14 11:06:54 +00:00
Robert Osfield
1be388c705
Changed the const get(), operator*() and operator->() methods to return non const T versions
2008-03-14 11:06:35 +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
f1fe11f5a9
Added double versions of intersect methods
2008-03-13 16:05:40 +00:00
Robert Osfield
1b9cefa10f
Added extra constructors
2008-03-12 20:15:45 +00:00
Robert Osfield
c4d07194a2
From Art Trevs, add support for saving external shader files.
...
From Robert Osfield, adding missing member variable initializes and Output::getShaderFileNameForOutput() implementation
2008-03-04 14:04:48 +00:00
Robert Osfield
f7c33bb2e8
Change the setViewAsLookAt method to use Vec3d rather than Vec3 for better precision
2008-03-04 11:53:09 +00:00
Robert Osfield
d42eee693f
Added OSG_EXPORT
2008-03-01 13:40:57 +00:00
Robert Osfield
75d35b6ba1
Fixed typo
2008-03-01 12:50:54 +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
a4a39d32ff
From Paul Martz, "Per the discussion in osg-users, this change adds code comments to the Matrix* headers to document assumptions in the getRotate() method."
2008-02-27 11:46:05 +00:00
Robert Osfield
3b4af26136
From Paul Martz, fixed get/set methods API
2008-02-27 11:43:58 +00:00
Robert Osfield
75b9a9c809
From Robert Osfield and Carlo Camporesi, took submission from Carlo for adding LoadingExternalReferenceMode to ProxyNode and extended it
...
to include a wider range of options, also completed implementation
2008-02-25 15:07:35 +00:00
Robert Osfield
55de8b03d9
From Wojciech Lewandowski, "----1----
...
Attached is a fixed version of OverlayNode.cpp. I fixed CustomPolytope::cut( osg::Plane ) method. Bug was apparent in such scenario:
Let P1 be some random frustum polytope
Let P2 be the polytope that was created from P1 bounding box (P2 contains P1 entirely)
Then ignoring precision errors: P1.cut( P2 ) == P2.cut( P1 ) == P1. But this condition was not always met. Cut failed when some of the polytope reference points happened to lie exactly on some intersecting planes in both P1 & P2 (plane distance was = 0).
I only use CustomPolytope for my shadowing stuff so I did not test how this affects rest of OverlayNode.cpp.
----2----
Also attached is a minor precision improvement for osg::Plane intersect method (double version).
----3----
I have also one observation regarding osg::Plane - There are two intersect vertices methods (float and double flavour):
inline int intersect(const std::vector<Vec3>& vertices) const
inline int intersect(const std::vector<Vec3d>& vertices) const
I guess osg::Plane won't compile when someone changes default vec3 typedef to vec3d. Shouldn't the first method be changed to use vec3f explicitly ? Ie:
inline int intersect(const std::vector<Vec3f>& vertices) const"
2008-02-25 14:15:27 +00:00
Robert Osfield
d003972a5f
From Wojciech Lawandowski, "Fixed EllipsoidModel::computeLocalUpVector to use Vec3d instead of Vec3 for
...
normal computation. Its really small issue, maybe not even worth submitting
;-). But one never knows when inadequate precision hits him.
"
2008-02-25 13:17:30 +00:00
Robert Osfield
3333ca2b46
From Mathias Froehlich, "I have extended the X11 pbuffer code to use either the complete set of glx 1.3
...
pbuffer functions or exactly ask for the extensions we need to call the
apropriate glx extension functions for and around pbuffers extensions.
The glx 1.3 version of this functios are prefered. If this is not pressent we
are looking for the glx extensions and check for them.
Prevously we just used some mix of the glx 1.3 functions or the extension
functions without making sure that this extension is present.
"
2008-02-22 18:38:30 +00:00
Robert Osfield
67f1503c7d
Refactored osgTerrain so that the interface for setting up layer is more straight forward, and added support into GeometryTechnique for handling multiple layers
2008-02-22 11:52:23 +00:00
Robert Osfield
6516bf4910
Added TextureUnit entry to osg::TransferFunction and osgTerrain::Layer
2008-02-20 12:34:13 +00:00
Robert Osfield
a97dc84228
Introduced typedef vec_type and value_type into LineSemgment class to allow easier
...
switching between double and float versions.
2008-02-18 14:51:05 +00:00
Robert Osfield
45c6bbb577
Changed constructors to take const pointers
2008-02-15 14:09:44 +00:00
Robert Osfield
c620786420
Updated versions for OSG-2.3.4 release
2008-01-29 10:28:56 +00:00
Robert Osfield
9cab2d59ba
Updated version number for 2.3.3 release
2008-01-21 11:40:27 +00:00
Robert Osfield
6d3a90219c
Removed redundental vertex buffer object flush methods
2008-01-21 11:36:54 +00:00
Robert Osfield
d2d282073c
Moved the setting of _clipPlaneNum from the {} body to the intializer list to
...
avoid reading from an unitialized variable.
2008-01-18 21:01:18 +00:00
Robert Osfield
276fd99da9
Added getNumOperationsInQueue() method
2008-01-18 09:17:32 +00:00
Robert Osfield
802ac3f803
Updated ChangeLog, date and version number for 2.6.2 release
2008-01-14 11:22:23 +00:00
Robert Osfield
9d010e14fe
From Paul Martz, "his pretty much wraps up the OcclusionQueryNode work. I might make some additional modifications if testing reveals any issues, otherwise it's ready for 2.4."
2008-01-10 11:02:21 +00:00
Robert Osfield
a46eb79311
Indentation/bracket fixes and change of default size
2008-01-09 21:17:10 +00:00
Robert Osfield
e73134d6fb
Removed non standard and redundent /*EOF*/
2008-01-08 14:38:58 +00:00
Robert Osfield
578f385760
From Mike Weiblen, support for geometry shaders, and osgeometryshaders example to demonstrate them.
2008-01-08 14:29:44 +00:00
Robert Osfield
ff565128af
Introduced new osg::discardDeletedOpenGLObjects() methods, and usage of it in
...
GrpahicsContext::close() to handle cases where deletingOpenGLObjects is no possible,
such as when GraphicsWindowEmbedded is used.
2008-01-08 13:24:29 +00:00
Robert Osfield
35d9107d81
Added catch for handling cases where undefined settings for dislayNum and screenNum are used
2008-01-04 13:57:36 +00:00
Robert Osfield
d5db983b90
Updated version number for 2.3.1 release
2008-01-04 11:45:25 +00:00
Robert Osfield
b222d4201c
From Paul Martz, "The osgocclusionquery example contained some duplicate code that was also in the core OSG occlusion query code. This change removes the need for that."
2007-12-26 22:00:28 +00:00
Robert Osfield
e39bb04c62
From Jason Daly, "I'm still having a problem with SWING animations on sequences. Here's
...
the fix again, merged with this morning's svn (including the other
Sequence fixes from J-S)."
2007-12-24 14:45:31 +00:00
Robert Osfield
8c5a9ac218
Fixed indentation
2007-12-23 13:08:14 +00:00