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
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
a1ce3ffd9d
Updated version number for 2.3.0 dev release
2007-12-17 21:08:52 +00:00
Robert Osfield
d7a2728fea
From David Cullu, added various mathematical operators
2007-12-17 17:43:57 +00:00
Robert Osfield
ffab16ba2f
From Karl Heijdenberg, moved set/getFrameStamp() from osgViewer::View to osg::View.
2007-12-11 16:34:37 +00:00
Robert Osfield
be5f709bdb
From Mike Garrity, "There was an on again/off again thread on OSG users about
...
creating subclasses of osg::Array that referenced data
stored an application's internal data structures. I took
a stab at implementing that and ran into a couple of
downcasts in Geometry.cpp. Enclosed is my take at fixing
those along with a simple example of how to do this."
2007-12-11 15:55:02 +00:00
Robert Osfield
298e07fc72
From Mathias Froechlich, "I have extended the StateSet api with a
...
StateSet::removeAssociatedModes(const StateAttribute*)
and a
StateSet::removeAssociatedTextureModes(unsigned, const StateAttribute*)
call. These funktions are just missing for a complete api IMO."
2007-12-11 11:42:02 +00:00
Robert Osfield
4e5ce63c85
From Per Fahlberg, "Attached is a fix allowing removal of shaders from a program after it is
...
first compiled. It will also allow new shaders to be attached after the
program is first compiled."
2007-12-11 11:21:13 +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
5e6bab7de1
Updated wrappers
2007-12-09 14:54:02 +00:00
Robert Osfield
13e8af6305
From Robert Osfield and Richard Schmidt, made fixes inspired by an original submission from Richard which
...
highlighted problems with Light, ClipPlane and Hint usage in osg::State's usage of cloneType
and reassignment of target/num in StateSet/these StateAttributes.
2007-12-08 13:29:31 +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
a909a62b85
Added double Vec*Array support
2007-12-04 14:44:21 +00:00
Robert Osfield
6cd4cc682c
Fixed the Polytop::setFrustum and setBoundingBox method
2007-12-01 15:30:35 +00:00
Robert Osfield
316b36fab7
Added getColor method to allow easy reading of individual pixels.
2007-10-31 12:55:15 +00:00
Robert Osfield
3882ad034c
From Mathias Froehlich, "since we patched our hp to an other patchlevel, I need the following to
...
include/osg/Texture"
2007-10-05 10:46:46 +00:00
Robert Osfield
146c140be1
Updated version for 2.2 release
2007-10-04 10:05:20 +00:00
Robert Osfield
28438c5dbf
Updated version for 2.1.15 dev release
2007-10-03 23:27:59 +00:00
Robert Osfield
73b5712a7a
Added GLU_TESS_CALLBACK_TRIPLEDOT path into include/osg/GLU and enabled this
...
for AIX as reading the old paths this was required. This looks like it is needed
under Xcode build as well.
2007-10-03 20:21:01 +00:00
Robert Osfield
5fe003d1a2
Updated version, authors and change log for the 2.1.14 release
2007-10-03 12:49:02 +00:00
Robert Osfield
f6c5cd184a
Changed the GLU_TESS_CALLBACK in an attempt to avoid compile problems under OSX.
2007-10-02 20:54:12 +00:00
Robert Osfield
d32effbdbc
Updated Version number for 2.1.13 and updated ChangeLog.
2007-10-01 10:21:52 +00:00
Robert Osfield
7086aeeebc
Removed log2 and replaced the places where is was used with a new Image::computeNumberOfMipmapLevels method.
2007-10-01 08:50:58 +00:00
Robert Osfield
91900254f0
Moved ViewerBase class out into its own header and source file.
...
Improved the support for stats collection in CompositeViewer/StatsHandler.
2007-09-30 11:37:00 +00:00
Robert Osfield
f8729af8b2
Refactor Viewer/CompositeViewer so the both inherit from the a ViewerBase class
2007-09-29 16:46:08 +00:00
Robert Osfield
6d822cbf45
Updated Version and AUTHORS for 2.1.12 dev release
2007-09-24 16:34:28 +00:00
Robert Osfield
5c36fbb18f
From David Callu, added findSlaveIndexForCamera method
2007-09-21 19:43:06 +00:00
Robert Osfield
3bfaee3654
Added support for basic viewer configuration files
2007-09-21 15:34:25 +00:00
Robert Osfield
7ea3632dfc
Added support for bool in ArgumentParser::Parameter.
...
Added support for using Input::read(...) methods using ArgumentParser::Paramter
to adapter to multiple paramter types.
2007-09-19 15:29:57 +00:00
Robert Osfield
acfa793032
Updated version numbers for 2.1.11 dev release
2007-09-17 09:26:02 +00:00
Robert Osfield
0c5d6da793
Fixed warnings of casting void* by refactoring the type and extensiosn setup.
2007-09-13 10:15:48 +00:00
Robert Osfield
a933587753
Rejigged the casting to avoid warnings under Windows
2007-09-12 16:20:40 +00:00
Robert Osfield
c15ec121f4
Updated version, ChangeLog and AUTHORS file for 2.1.10 release
2007-09-12 10:43:49 +00:00
Robert Osfield
d8f875ec9e
Added log2(int) and log2(uint) methods
2007-09-11 20:54:39 +00:00
Robert Osfield
b89a1480fc
Removed int version of log2 to avoid possible errors in assuming log2(10) should ~= log2(10.0)
2007-09-11 20:24:48 +00:00
Robert Osfield
b63ce0dee9
From Art Tevs, Added log2 function.
2007-09-11 17:08:06 +00:00
Robert Osfield
0bd4d303e3
From Art Tevs, build fix.
2007-09-11 16:59:19 +00:00
Robert Osfield
175c3ce806
From Art Trevs, "File Changes:
...
- GL2Extensions, Program and Program.cpp
Features:
- Support for fragment output binding. (e.g. You can now specify in the fragment shader varying out vec3 fragOut; fragOut = vec3(1,0,1); to write to the fragOut variable. In your program you call glBindFragDataLocation(program, 1, "fragOut") to bind the fragOut variable with the MRT 1 - GL_COLOR_ATTACHMENT1_EXT)
- new methods Program::add/removeBindFragDataLocation Program::getFragDataBindingList
"
2007-09-11 13:34:41 +00:00
Robert Osfield
c51e893ba4
Changed the isTextureIntegerSupported method so that it no longer has the EXT entry in it
...
for forward compatability reasons.
2007-09-11 12:28:03 +00:00
Robert Osfield
5e83ae4821
From Art Trevs, "Features of the patch are:
...
- Implementation of integer textures as in EXT_texture_integer
- setBorderColor(Vec4) changed to setBorderColor(Vec4d) to pass double values
as border color. (Probably we have to provide an overloading function to
still support Vec4f ?)
- new method Texture::getInternalFormatType() added. Gives information if the
internal format normalized, float, signed integer or unsigned integer. Can
help people to write better code ;-)
"
Futher changes to this submission by Robert Osfield, changed the dirty mipmap
flag into a buffer_value<> vector to ensure safe handling of multiple contexts.
2007-09-11 12:04:58 +00:00
Robert Osfield
bea07b5f72
From Mike Wittman and Robert Osfield, added support for SO_VERSION number in
...
runtime version info. Added checks for OpenThreads version.
2007-09-11 10:10:43 +00:00
Robert Osfield
409cdd0b28
Intoduced a new setGLExtensions template method to do a copy of void* pointer to
...
local function pointer to avoid compiler warnings related to case void*.
Moved various OSG classes across to using setGLExtensions instead of getGLExtensions,
and changed them to use typedef declarations in the headers rather than casts in
the .cpp.
Updated wrappers
2007-09-10 15:19:23 +00:00
Robert Osfield
c747c7dbd6
Moved defined from Texture2DArray into Texture
2007-09-07 13:25:28 +00:00
Robert Osfield
c7a72c8435
From Art Tevs,
...
"A new texture class Texture2DArray derived from
Texture extends the osg to support the new
EXT_texture_array extensions. Texture arrays provides
a feature for people interesting in GPGPU programming.
Faetures and changes:
- Full support for layered 2D textures.
- New uniform types were added (sampler2DArray)
- FrameBufferObject implementation were changed to
support attaching of 2D array textures to the
framebuffer
- StateSet was slightly changed to support texture
arrays. NOTE: array textures can not be used in fixed
function pipeline. Thus using the layered texture as a
statemode for a Drawable produce invalid enumerant
OpenGL errors.
- Image class was extended to support handling of
array textures
Tests:
I have used this class as a new feature of my
application. It works for me without problems (Note:
Texture arrays were introduced only for shading
languages and not for fixed function pipelines!!!).
RTT with Texture2DArray works, as I have tested them
as texture targets for a camera with 6 layers/faces
(i.e. replacement for cube maps). I am using the array
textures in shader programming. Array textures can be
attached to the FBO and used as input and as output."
2007-09-07 11:21:02 +00:00
Robert Osfield
8414a16e52
From Sherman Wilcox, added extension checking support for compressed texture subloading.
2007-09-03 15:43:58 +00:00
Robert Osfield
d80632bc81
Updated version number for 2.1.9 dev release
2007-09-03 14:05:24 +00:00
Robert Osfield
2415b8e4b1
Added default contructors to Operation
2007-09-03 09:43:33 +00:00
Robert Osfield
86e998f64c
Added mutex locking add addParents/removeParents in Drawable, Node and StateSet.
2007-08-31 20:14:36 +00:00
Robert Osfield
0a16f653ef
Updated version numbers for 2.1.8 dev release
2007-08-27 10:28:47 +00:00
Robert Osfield
0da0127857
Updated for 2.1.7 dev release
2007-08-23 15:36:45 +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
f8ac71d7e5
Addd control for serializing draw dispatch.
2007-08-23 11:00:12 +00:00
Robert Osfield
de4a4042f7
Set main scene graph elements to use thread safe ref/unref by default
2007-08-22 10:34:11 +00:00
Robert Osfield
57a18ff112
Added default setting of use of thread safe ref/unref.
2007-08-22 09:42:27 +00:00
Robert Osfield
5e7a7f6b3c
Updated version number for 2.1.6 release and updated wrappers
2007-08-20 09:28:03 +00:00
Robert Osfield
f2925791ca
Updated version for 2.1.5 dev release
2007-08-13 11:45:20 +00:00
Robert Osfield
d57a16e023
Added DisplaySetting::s/getCompileContextHint() and use of this hint in osgViewer::Viewer/CompositeViewer.
...
Removed the CustomViewer in osgterrain example as the above now removes the need for it.
2007-08-11 14:49:14 +00:00
Robert Osfield
e5a365afee
Added support for an update OperationQueue to Viewer and CompositeViewer to allow asyncrnous adding of operations to be added
...
to the view to be done during syncronous updateTraversal().
This feature can be used for doing things like merging subgraphs that have been loaded
in a background thread.
2007-08-11 10:28:14 +00:00
Robert Osfield
0e475106dc
Updated wrappers
2007-08-10 17:44:54 +00:00
Robert Osfield
7366daca91
Refactored the way the Scene is used in Viewer and CompositeViewer to ensure
...
that only on Scene exists per scene graph.
2007-08-10 10:52:35 +00:00
Robert Osfield
f94bfa7589
Added preliminary code to allow build specification of glu tesscallback with ... parameter
2007-08-07 10:31:24 +00:00
Robert Osfield
c11f5a3441
Updated version numbers for release
2007-08-06 11:24:53 +00:00
Robert Osfield
9b9e4cd7c8
Added perlimnary support for reading the DISPLAY variable.
2007-08-03 14:50:58 +00:00
Robert Osfield
5eb2bc4851
Added return 0;
2007-08-02 12:27:09 +00:00
Robert Osfield
c346f5b943
Introduce new osgViewer::Renderer class for implementing of the rendering
...
of cameras in viewers
2007-08-02 11:02:47 +00:00
Robert Osfield
cc6740176f
From Andy Skinner,adding c includes to avoid problems with mixing c and c++ versions
...
of c functions.
2007-07-31 17:28:09 +00:00
Robert Osfield
3111fccb3f
Updated version number for 2.1.3 dev release
2007-07-30 15:25:21 +00:00
Robert Osfield
6dec61842d
Introduce Camera::s/getRenderer().
2007-07-28 10:28:40 +00:00
Robert Osfield
4542c04046
Updated version for dev release
2007-07-24 14:43:46 +00:00
Robert Osfield
3eae87854b
Added FlushDeletedGLObjectsOperation.
2007-07-23 16:42:25 +00:00
Robert Osfield
c3adce3ef4
Added osg::RefBlockCount subclassed from the new OpenThreads::BlockCount and used it into osgterrain example
2007-07-19 15:24:11 +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
Robert Osfield
af19e71024
Changed BarrierOperation so that it isn't limited to jut working within GraphicsContexts.
2007-07-14 09:17:18 +00:00
Robert Osfield
a28588a84c
Introduce GraphicsOperation subclass from osg::Operation, and osgUtil::GLObjectOperation
...
for compiling subgraphs.
2007-07-13 17:25:35 +00:00
Robert Osfield
ecf0b58a19
Renamed include/osg/OperationsThread to OperationThread.
...
Created a new GraphicsThread subclass from OperationThread which allows the
GraphicsContext specific calls to be moved out of the base OperationThread class.
Updated the rest of the OSG to respect these changes.
2007-07-12 15:54:45 +00:00
Robert Osfield
4d7e8b12ae
Renamed OperationsThread to OperationThread and add two way link between OperationQueue and OperationThread
2007-07-12 12:15:42 +00:00
Robert Osfield
4ed9940e71
Added better description of TransferFunction.
2007-07-12 08:29:39 +00:00
Robert Osfield
095da72020
Fixed typo
2007-07-11 16:06:04 +00:00
Robert Osfield
691a49d0fa
From Paul Melis, fixes to spelling mistakes/typos.
2007-07-11 15:51:17 +00:00
Robert Osfield
55f3b67dbb
Updated version number in prep for 2.1.1 dev release
2007-07-11 15:50:05 +00:00
Robert Osfield
6a9551ebfb
Wired up OperationsThread to use the new OperationQueue and thereby support
...
thread pooling where multiple OperationsThreads share a single OperationsQueue
2007-07-10 17:36:01 +00:00
Robert Osfield
44c07b9fad
Separated OperationsThread out from the GraphicsThread header and introduced
...
new OperationQueue class.
2007-07-09 19:04:36 +00:00
Robert Osfield
4d04f3f645
Fixed unitialized variables.
2007-07-09 15:02:03 +00:00
Robert Osfield
26e8ba27ca
Updated version number for 2.1.0 dev release
2007-07-09 11:05:24 +00:00
Robert Osfield
d70228c98d
Added OperationQueue class for future work on support thread pools that share
...
a single OpeationQueue.
2007-07-09 11:03:33 +00:00
Robert Osfield
6931ae4878
Added include/osg/GLObjects + .cpp which provide osg::flush*DeletedGLObjects() methods.
...
Added and cleaned up DeleteHandler calls in osgViewer to help avoid crashes on exit.
Changed DatabasePager across to dynamically checcking osg::getCompileContext(..)
Updated wrappers.
2007-07-06 13:08:51 +00:00
Robert Osfield
d1fa520349
Added support for managing a CompileContext. Rearranged the DeleteHandler::flushAll call.
2007-07-05 18:33:20 +00:00
Robert Osfield
aee902720e
Added s/getUsage() method
2007-06-30 14:30:44 +00:00
Robert Osfield
847a7c1644
Added Point::Extension::isPointSpriteCoordOriginSupported() method
2007-06-29 17:01:37 +00:00
Robert Osfield
15ff70d298
From Brad Colbert with ammendments by Robert Osfield, add set/getVolume support
2007-06-28 14:19:30 +00:00
Robert Osfield
eac3dc1963
From Paul Melis, "Here is a list of fixes to misspelled APIs. Unfortunately, more than one
...
of these are public APIs and therefore will break linkage to existing
shared libraries."
Note from Robert Osfield, updated wrappers.
2007-06-27 20:36:16 +00:00
Robert Osfield
c0a8c9dd53
Added texture format into Traits.
2007-06-27 10:12:10 +00:00
Robert Osfield
5f088ef914
Set the Traits::supportsResize flag to true in default constructor.
2007-06-23 21:54:56 +00:00
Robert Osfield
276ac74196
Updated version numbers for 2.0 release
2007-06-15 10:15:54 +00:00
Robert Osfield
56a24486cd
Updated wrappers and Version numbers for 1.9.9 release
2007-06-13 21:00:28 +00:00
Robert Osfield
a64dc27595
Added clear()
2007-06-13 19:54:00 +00:00
Robert Osfield
d2c16c2fa0
Added better handling of 0,0,0 values
2007-06-13 13:41:23 +00:00
Robert Osfield
a7a0e2c4d3
Added Image::g/setOrigin to help movie plugins tell applications that the imagery
...
is not the usual OpenGL BOTTOM_LEFT orientation, but with the origin TOP_LEFT. This
allows geometry setup code to flip the t tex coord to render the movie the correct way up.
2007-06-12 16:55:44 +00:00
Robert Osfield
e01e50c271
Moved the className, libraryName and isSameAs into public.
2007-06-12 15:32:04 +00:00
Robert Osfield
90ae3f385b
Added DisplaySettings to osg::Camera, and support into osg::View for initializing
...
the Camera to the DisplaySettings ScreenWidth/Height/Distance. Added support
for dual screen horizontal split stereo.
2007-06-09 10:06:38 +00:00
Robert Osfield
211abb16dc
Updated version numbers for release
2007-06-06 21:43:38 +00:00
Robert Osfield
497604a192
Removed redundent comma
2007-06-05 08:30:24 +00:00
Robert Osfield
5138ff300b
Updated version for 1.9.7 release
2007-06-04 16:20:24 +00:00
Robert Osfield
448efe0722
Added osg::Hint class
2007-06-04 10:47:15 +00:00
Robert Osfield
053ba0c543
From Wojciech Lewandowski, "I did few tests to see whether adding PreDraw callback would help us with SPI problems when using Viewer. Results were positive so I decided to give it a try and ask you to verify and maybe merge with existing codebase.
...
I added _preDrawCallback member and neccessary access methods plus modified osgUtil RenderStage.cpp to invoke it before all drawInner calls are made. I tried to maintain symmetry with postDrawCallback but you know better where is a proper place for this call ;-)
"
2007-06-01 19:45:24 +00:00
Robert Osfield
fcafd4db06
From Stephan Huber, "attached you'll find the modified ImageStream
...
and a small fix for QuicktimeImageStream to disable debug-logging :)"
2007-06-01 19:19:23 +00:00
Robert Osfield
02d2963df4
Updated version number, wrappers and readme for release
2007-05-28 10:17:52 +00:00
Robert Osfield
005268e982
Fixes to help C# binding dev.
2007-05-26 15:49:35 +00:00
Robert Osfield
02b31fdcd9
From Peter Hrenka, fixes regarding line-strips and -loops.
2007-05-24 10:15:50 +00:00
Robert Osfield
30a06a033e
From Peter Hrenka, (note from Robert Osfield, renamed GenericPrimitiveFunctor mention below to TemplatePrimitiveFunctor).
...
"Since we desperately needed a means for picking Lines
and Points I implemented (hopefully!) proper geometrical tests
for the PolytopeIntersector.
First of all I implemented a new "GenericPrimiteFunctor"
which is basically an extended copy TriangleFunctor which also
handles Points, Lines and Quads through suitable overloads of
operator(). I would have liked to call it "PrimitiveFunctor"
but that name was already used...
I used a template method to remove redundancy in the
drawElements method overloads. If you know of platforms where
this will not work I can change it to the style used
in TriangleFunctor.
In PolytopeIntersector.cpp I implemented a
"PolytopePrimitiveIntersector" which provides the needed
overloads for Points, Lines, Triangles and Quads to
the GenericPrimitiveFunctor. This is then used in the
intersect method of PolytopeIntersector.
Implementation summary:
- Points: Check distance to all planes
- Lines: Check distance of both ends against each plane.
If both are outside -> line is out
If both are in -> continue checking
One is in, one is out -> compute intersection point (candidate)
Then check all candidates against all other polytope
planes. The remaining candidates are the proper
intersection points of the line with the polytope.
- Triangles: Perform Line-Checks for all edges of the
triangle as above. If there is an proper intersection
-> done.
In the case where there are more than 2 polytope
plane to check against we have to check for the case
where the triangle encloses the polytope.
In that case the intersection lines of the polytope
planes are computed and checked against the triangle.
- Quads: handled as two triangles.
This is implementation is certainly not the fastest.
There are certainly ways and strategies to improve it.
I also enabled the code for PolytopeIntersector
in osgkeyboardmouse and added keybindings to
switch the type of intersector ('p') and the picking
coordinate system ('c') on the fly. Since the
PolytopeIntersector does not have a canonical
ordering for its intersections (as opposed to
the LineSegementIntersector) I chaged the
implementation to toggle all hit geometries.
I tested the functionality with osgkeyboardmouse
and several models and it seems to work for
polygonal models. Special nodes such as billboards
do not work.
The next thing on my todo-list is to implement
a an improved Intersection-Structure for the
PolytopeIntersector. We need to know
which primitives where hit (and where).
"
2007-05-23 11:05:59 +00:00
Robert Osfield
c58221ddae
Added _firstTimeToInitEyePoint = true to the setAutoRotateMode to force the AutoTransform
...
to recompute its position on next frame.
2007-05-22 15:17:52 +00:00
Robert Osfield
5056f6fee6
Added osg::Camera::ProjectionResizePolicy enum and associated methods for controlling
...
how the field of view is adjust on window resizes.
2007-05-22 09:32:38 +00:00
Robert Osfield
ccede7740e
Updated version numbers for 1.9.5 release
2007-05-21 09:27:01 +00:00
Robert Osfield
dd796df02a
Added support for SG_USE_FLOAT_MATRIX and OSG_USE_FLOAT_PLANE in CMake build and
...
include/osg/Matrix and include/osg/Plane.
2007-05-20 11:45:09 +00:00
Robert Osfield
e37ec98748
Various additions to better support view dependent overlay node, and updated wrappers
2007-05-19 13:43:38 +00:00
Robert Osfield
c7fc2e018e
From Andre Garneau, warnings fixes fo VC++
2007-05-17 10:59:05 +00:00
Robert Osfield
8c10301d30
From Andre Garneau,"Please find attached changes to have the GraphicsWindowWin32 class
...
selectively set the pixel format for windows that are inherited, following
some discussions on the mailing list last week.
This is implemented through a new traits flag
(setInheritedWindowPixelFormat) with a default state of false (to avoid
breaking existing applications). When set to true, the pixel format of the
inherited window will be set according to the traits specifications.
"
2007-05-17 10:33:44 +00:00
Robert Osfield
ab4398e440
From Farshid Lashkari, "I made a modification to the setClientActiveTextureUnit and
...
setActiveTextureUnit methods of osg::State so they return false if the
texture unit is outside the range of allowable units for the driver.
Currently, the functions would return true even if the units are
invalid. This would cause the osg::State to become out of sync with
the actual driver state, which can cause some bugs in certain cases.
The change I made would verify that the unit passed to
setClientActiveTextureUnit is below GL_MAX_TEXTURE_COORDS, and the
unit passed to setActiveTextureUnit is below
max(GL_MAX_TEXTURE_COORDS,GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS). I
modeled this behavior from the OpenGL docs for these commands which
can be found here:
http://www.opengl.org/sdk/docs/man/xhtml/glClientActiveTexture.xml
http://www.opengl.org/sdk/docs/man/xhtml/glActiveTexture.xml
"
2007-05-15 11:25:14 +00:00
Robert Osfield
51a4de5ec7
Fixed parameter name
2007-05-14 16:16:22 +00:00
Robert Osfield
74e968df76
Clean up comments and rebuilt wrappers.
...
Added extra event handlers to osgsimulator example
2007-05-14 16:14:40 +00:00
Robert Osfield
9e60a5d222
Updated wrappers and version numbers for 1.9.4 dev release
2007-05-14 09:33:32 +00:00
Robert Osfield
c1332f6893
Removed rendundent const
2007-05-10 18:07:15 +00:00
Robert Osfield
d8ee198735
From John Kelso,
...
"Attached are updates of src/osg/Sequence.spp and include/osg/Sequence.
I've taken _sbegin/_send/_ubegin/_uend and _step our of the include file
and made them local variables in whatever method might need them.
I got rid of the _recalculate method as it was only getting used in
one place.
I also found a cut/paste bug in setMode's START case."
Note from Robert Osfield, Also includes some guards against crashes that was occuring in this new
code when handling empty Sequences.
2007-05-09 11:11:19 +00:00
Robert Osfield
6c74589014
Added signOrZero template method, and to Matrix_implementation.cpp usage of this
...
method in the get(Quat&) code.
2007-05-09 09:26:33 +00:00
Robert Osfield
5b9883516a
Added CullSettings inheritance mask for LIGHTING_MODE and LIGHT
2007-05-08 10:02:07 +00:00
Robert Osfield
963cd837e3
Added s/getLightingMode and s/getLight to osg::View to allow control of the viewers
...
global light source.
2007-05-07 22:07:23 +00:00
Robert Osfield
0612fabc47
Updated version numbers for 1.9.3 release, combined INSTALL.txt and README.txt
2007-05-07 07:51:02 +00:00
Robert Osfield
859bcf3c4b
Further perfomrmance optimizations and clean up on new VBO/EBO/PBO API.
2007-05-01 18:03:32 +00:00
Robert Osfield
40db1a8934
Moved VBO switching code into inline methods into osg::State to speed performance
2007-05-01 06:28:20 +00:00
Robert Osfield
d625a5e114
Implementated new dirty buffer mechansim for BufferObjects to make it more efficient
2007-04-30 12:18:27 +00:00
Robert Osfield
22ad53d7d9
Updated version number for 1.9.2 dev release
2007-04-30 08:31:25 +00:00
Robert Osfield
921eb0fdd0
Further work on new VertexBufferObject/ElementsBufferObject support
2007-04-29 08:12:29 +00:00
Robert Osfield
4968eb7136
Further work on the new VBO support
2007-04-27 14:52:30 +00:00
Robert Osfield
a3e6d8283d
Further work VertexBufferObject and ElementsBufferObject classes
2007-04-26 16:50:06 +00:00
Robert Osfield
a1639c3d2d
From Brad Colbert, "Added a new method to ImageStream called getLength that is used to
...
return the length of the stream.
Implemented the virtual methods in QuicktimeImageStream, (getLength,
getReferenceTime, setTimeMultiplier), to return valid value for each.
"
2007-04-26 08:11:09 +00:00
Robert Osfield
4b71e3948b
Added VertexBufferObject and ElementBufferObject class interfaces, and wired
...
up osg::Array and osg::DrawElements* to these respectively.
Updated wrappers
2007-04-25 18:50:11 +00:00
Robert Osfield
0e6bcc61f0
Updated version to 1.9.1
2007-04-23 20:21:06 +00:00
Robert Osfield
f242570269
Unified the setup of version numbers so that they all are based on the version
...
number setup in the include/osg/Version header file.
2007-04-22 20:19:43 +00:00
Robert Osfield
9db23e0b22
Fixed bug associated with complex RenderBin setup.
2007-04-16 12:18:56 +00:00
Robert Osfield
8a5b8d9656
Set default ShadeModel back to SMOOTH
2007-04-05 20:27:02 +00:00
Robert Osfield
6c12c71337
Added constructor argument to ShadeModel
2007-04-05 16:12:10 +00:00
Robert Osfield
538a83dad4
Added support for flushing buffer objects
2007-04-04 09:07:46 +00:00
Robert Osfield
307a9a9a78
From Andy Skinner, warning fix for Windows 64-bit build
2007-04-03 19:42:43 +00:00
Robert Osfield
31d9f40a2f
Preliminary work on TransferFunction support
2007-04-03 15:39:05 +00:00
Robert Osfield
43c24da12d
Added setValue method and osg::Image setup to osg::TransferFunction1D, and setup
...
of TransferFunction1D into osgterrain example.
2007-04-02 13:06:59 +00:00
Robert Osfield
a2ecb93c2b
Converted osg::HeightField across to using a osg::FloatArray internally to enable
...
it to be assigned as a vertex attribute array to an osg::Geometry.
Removed the osgTerrain::ArrayLayer as its no longer required thanks to the above change
which makes the osgTerrain::HeightFieldLayer more flexible.
Updated wrappers
2007-03-29 19:42:07 +00:00
Robert Osfield
0f507e317d
Removed the using to avoid VS 7.1 build problem
2007-03-29 15:41:59 +00:00
Robert Osfield
b7967b7007
From Mike Wittman, "Here is a change to the .cpp file to fix it by disambiguating the cull invocation."
2007-03-28 15:05:49 +00:00
Robert Osfield
7fc714ada1
Removed deprecated drawImplementation(State&) method from Drawable and Drawable::DrawCallback
2007-03-28 11:30:38 +00:00
Robert Osfield
7013c12a0d
From Mike Wittman, "This is another weirdo change to support code generation. It brings all the Drawable::supports and Drawable::accepts overloads into the ShapeDrawable scope to avoid errors invoking the ones that are not defined in ShapeDrawable. Currently you'll get compilation errors if you pass a Drawable::AttributeFunctor or PrimitiveIndexFunctor to the "accept" function invoked on a ShapeDrawable pointer or reference, since those overloads are only defined in the base class. You'll also get the same error passing a PrimitiveIndexFunctor to the "supports" function. These errors occur because C++ function overload resolution does not cross inheritance boundaries."
2007-03-26 13:00:29 +00:00
Robert Osfield
37f4740c45
From Mike Wittman, remove redundent const from in front of unsigned int.
...
From Robert Osfield, updated wrappers
2007-03-23 17:27:53 +00:00
Robert Osfield
541c3f13e9
Added GeometryTechinque to osgTerrain. Added usage of GeometryTechnique into osgterrain example
...
Added --width and --height command line options to osgdistortion to allow users
to control the window size.
2007-03-21 16:34:04 +00:00
Robert Osfield
aa28f60357
Added WindowData structures to GraphicsWindowX11,Win32 and Carbon to help support
...
GraphicsWindow inheriting their window handles from an external toolkit
2007-03-16 13:22:05 +00:00
Robert Osfield
083618cc65
Added inheritedWindowData member variable to Traits.
2007-03-11 11:48:03 +00:00
Robert Osfield
bff1b51361
Added preliminary work on osg::TransferFunction
2007-03-10 11:53:31 +00:00
Robert Osfield
579700bedf
From Mike Wittman, " noticed that some type references of osg::Drawable::AttributeFunctor, osg::Drawable::ConstAttributeFunctor, and osg::StateAttribute::ModeUsage in osg and osgSim were not being properly reflected in osgIntrospection. This appears to be due to Doxygen not handling nested types from superclasses if they're not qualified when referenced in subclasses.
...
These changes add the necessary superclass type qualification so that Doxygen now recognizes the references."
2007-03-05 17:34:36 +00:00
Robert Osfield
96b30c3509
Added mention of LODScale in docs
2007-02-28 10:10:21 +00:00
Robert Osfield
459696fdb2
From Paul Martz, updated the LOD documentation
2007-02-28 10:08:45 +00:00
Robert Osfield
f43cd7332c
Further work on add serialization support for osgViewer configurations
2007-02-25 20:05:23 +00:00
Robert Osfield
ad3cac84e9
Moved Block, ReentrantMutex and ReadWriteMutex into OpenThreads.
2007-02-23 16:31:34 +00:00
Robert Osfield
96f567eff3
Added bool View::Slave::_useMastersSceneData to help manage HUD's and RTT
...
cameras that are embedded in the Viewer's View
2007-02-23 11:53:45 +00:00
Robert Osfield
ee9440d155
Added Camera::s/getAllowsEventFocus() method to allow osgViewer to have non interfactive cameras such as RTT ones
2007-02-21 19:06:43 +00:00
Robert Osfield
228fd04a19
Removed the exclusion of CullSettings from the genwrapper.conf, and then changed the CullStack RefMatrix& methods to RefMatrix*
...
as the RefMatrix& versions caused the wrappers to fail.
2007-02-21 13:48:01 +00:00
Robert Osfield
a3594bc653
Added new osg::ComputeBoundsVisitor
2007-02-16 17:34:34 +00:00
Robert Osfield
3817dbf1a2
From Roland Smeenk, "ClipNode contains a method getClipPlaneList that should actually be called setClipPlaneList."
2007-02-16 15:17:43 +00:00
Robert Osfield
526ba8c506
From Stephan Huber, "I added a bool to GraphicsContext::Traits to indicate wether to use the
...
multithreaded-opengl-engine on os x or not. I set its default to false,
perhaps other os x users can test this setting with their data/apps, to
see if we can enable it by default.
I changed also the borderless-window-type, so expos?works correctly."
2007-02-16 13:33:29 +00:00
Robert Osfield
b717790dcb
Removed inappropriate Stats:: prefix
2007-02-15 10:25:11 +00:00
Robert Osfield
b7b8e7ed98
Removed extrandous Stats:: prefix
2007-02-15 00:53:52 +00:00
Robert Osfield
810e7291fc
Added use of Mutex into osg::Stats to better handle multi-threaded usage
2007-02-14 16:24:49 +00:00
Robert Osfield
07411f3246
Introduced new osg::Object::DataVariance type of UNSPECIFIED, and changed the deafult
...
values of DataVariance to UNSPECIFIED to all types.
2007-02-14 13:18:58 +00:00
Robert Osfield
89c99a88fa
Added computeDataVariance method into osg::Object and implementations in Drawable and StateSet,
...
and calling of osgUtil::StaticObjectDetectionVisitor in osgViewer::Viewer
2007-02-14 11:24:42 +00:00
Robert Osfield
fe177e42d5
Added osgViewer::HelpHandler
2007-02-12 13:39:18 +00:00
Robert Osfield
f1a82f35b2
From Vivek Rajan, MatrixDecomposition implementaion, adapted by Robert Osfield
...
to be part of osg::Matrixf and osg::Matrixd classes.
2007-02-10 18:01:37 +00:00
Robert Osfield
c52207b637
Added new Transform::ReferenceType enum ABSOLUTE_RF_INHERIT_VIEWPOINT to support
...
internal RTT cameras that wish to use the main cameras view/eye point for LOD and other
distance based tests.
2007-02-07 16:32:14 +00:00
Robert Osfield
cfe737c552
Tweak API and updated wrappers to get wrappers to build
2007-02-05 14:56:41 +00:00
Robert Osfield
ebd68ba063
Added Camera's s/getCameraThread() and updated wrappers
2007-02-05 13:44:16 +00:00
Robert Osfield
98b0eb889a
From Brede Johansen, added OSG_EXPORT to DeleteHandler for windows build
2007-02-05 10:48:20 +00:00
Robert Osfield
69da91620f
Convert GraphicsThread/GraphicsOperation to more generic OperationsThread/Operation.
...
This paves the way to running cull traversals in seperate threads.
Updated wrappers
2007-02-02 22:30:36 +00:00
Robert Osfield
6d9641a78b
Added a concrete osg::DeleteHandler implementation which provides support for
...
retain objects for several frames before deleting them. Also added RenderStageCache
into CullVistor.cpp that is used for handling RTT osg::Camera's that are being
used in double buffered SceneView usage.
2007-02-02 12:41:13 +00:00
Robert Osfield
8dfc5155f4
Further work on new threading model.
2007-01-31 22:24:20 +00:00
Robert Osfield
f8213d1c53
Updated wrappers
2007-01-30 14:47:13 +00:00
Robert Osfield
b8d98a2cfe
Added support for compute average stats attributes in inverse space to improve
...
the quality of frame rate reporting.
2007-01-30 13:48:04 +00:00
Robert Osfield
ecedc8d86a
Added Stats::collectStats(string,bool) controls, getAveragedAttribute methods into osg::Stats class, and
...
related support into osgViewer::Viewer and osgViewer::StatsHandler.
Added lazy updating of text in StatsHandler HUD to minimize the impact of
slow text updating on observed frame rates.
2007-01-30 11:40:23 +00:00
Robert Osfield
fd0ea388c2
Began work on providing support for threading camera cull traversals in parallel with
...
the previous frames draw traversal. Changes range from osg::State, through osgUtil::RenderBin, through to osgViewer
2007-01-29 22:44:29 +00:00
Robert Osfield
36330f7e40
Changed osgUtil::RenderBin and osg::State to allow nesting of StateSet's associated with RenderBin's.
2007-01-27 11:13:01 +00:00
Robert Osfield
7232a831da
Added osg::FrameStamp::set/getSimulationTime().
...
Added setting of osg_SimulationTime and osg_DeltaSimulationTime to the uniforms set by SceneView
Added frame(double simulationTime) and advance(double simulationTime) parameters to
osgViewer::SimpleViewer, Vewer and CompositeViewer.
Updated various examples and Nodes to use SimulationTime where appropriate.
2007-01-25 12:02:51 +00:00
Robert Osfield
45dea96d75
Added #define of GL_QUERY_RESULT and GL_QUERY_RESULT_AVAILABLE
2007-01-23 16:02:37 +00:00
Robert Osfield
d6ecce6f5f
Improvements to stats
2007-01-22 11:22:37 +00:00
Robert Osfield
b47ef11d74
Initial on screen stats support
2007-01-21 18:24:54 +00:00
Robert Osfield
15a3972be0
Added OSG_EXPORT to Stats to fix Windows build
2007-01-20 09:03:58 +00:00
Robert Osfield
f0e2404541
Added new osg::Stats class for collecting frame stats of different sorts.
...
Added s/getStats() to osg::View and osg::Camera.
Added population of View::getStats() with frame stats in osgViewer/Viewer.
Added Basic StatsHandler to osgviewer example.
2007-01-19 19:53:23 +00:00
Robert Osfield
a90206bcbb
Added EXT_timer_query support
2007-01-19 14:41:29 +00:00
Robert Osfield
ccc8a922a6
Added osg::StencilTwoSided state attribute to wrap up the stencil_two_sided extension.
...
Added path in osgShadow work for using StencilTwoSided to accelerate shadow volume rendering.
2007-01-18 22:32:18 +00:00
Robert Osfield
ba9e355550
Added support for stencil GL_INCR_WRAP and GL_DECR_WRAP operations
2007-01-18 17:00:42 +00:00
Robert Osfield
552293eb03
Added extra methods WindowSystemInterface for controlling frame rate and resolution, and adde useCursor flag.
2007-01-17 21:11:57 +00:00
Robert Osfield
5ee30edbea
Added support for setThreadSafeRefUnref into TexGenNode
2007-01-11 10:35:03 +00:00
Robert Osfield
d6d1a46db9
From Stephan Huber, GraphicsWindowCarbon implementation
2007-01-09 10:06:20 +00:00
Robert Osfield
462803fd57
From Paul Martz, speeling fixes for Tessellator/Tessellation.
2007-01-08 21:29:49 +00:00
Robert Osfield
16d1c00a3d
Changed the return types of makeCurrent to bool, and added a bool GraphicsContext::releaseContext method
...
along with implementations in osgViewer.
2007-01-08 19:29:59 +00:00
Robert Osfield
4a5eda6522
Added GraphicsContext::ResizedCallback and GraphicsContext::resizedImplementation.
...
Added message on non implementation of GraphicsContext::valid().
Added prelimary GraphicsContext clean up support.
2007-01-08 16:20:10 +00:00
Robert Osfield
773fbd1b16
Added setThreadSafeRefUnref to LightSource
2007-01-07 10:00:50 +00:00
Robert Osfield
9fcace0e73
Added GraphicsContext support for clearing the graphis context. The clearing
...
is off by default (ClearMask is 0), but can be switched on when ClearMask is
non zero. GraphicsContext::clear() is called after each swap buffers
2007-01-05 15:24:06 +00:00
Robert Osfield
9e30014634
Removed inappropriate comment about normal orientation.
2007-01-05 09:55:04 +00:00
Robert Osfield
73fffe1800
Made Refernced::setThreadSafeReferenceCounting(bool) a virtual then overrode
...
this in various scene graph classes to ensure that the scene graph gets
updated as well as the objects that the initialial call is made from.
2007-01-04 16:49:58 +00:00
Robert Osfield
ff195bddf5
Added Object::resizeGLObjectBuffers(uint) method to help improve the ability
...
to change the number of active graphics contexts on the fly during an applications
life.
2007-01-04 14:11:51 +00:00
Robert Osfield
7155f7d1b0
Various work on osgViewer library, including warp point and graphics window resize support
2007-01-01 18:20:10 +00:00
Robert Osfield
93dbfa04b7
Aded new convinience methods to osg::Timer - s/getStartTick and time_s(), time_m() etc
...
to help get time reletive the new start tick.
2006-12-26 17:37:06 +00:00
Robert Osfield
39c0c2df76
Unified the osg::GraphicsThread::Operation and osg::GraphicsContext::Operation classes
...
as osg::GraphicsOperation. Unpdated parts of OSG depending upon these.
Added a virtaul bool valid() method to osg::GraphicsContext to allow apps to
test whether a valid graphis context has been created or not.
2006-12-24 16:40:19 +00:00
Robert Osfield
76461b3ab2
Added support for sample and sampleBuffers to osg::GraphicsContext::Traits and
...
cleaned up the Traits naming
2006-12-22 21:53:44 +00:00
Robert Osfield
4fc9af7ea0
Moved rendering support into GraphisContext, osgViewer::Viewer/View, and
...
added frame stamp updating and update traversal to osgViewer::Scene/Viewer.
Updated osgcamera example to use new Viewer API calls instead of using local
rendering calls.
2006-12-21 16:56:20 +00:00
Robert Osfield
d9d3b99c2e
From Paul Martz, "minor code comment cleaup/rewording"
2006-12-19 17:16:14 +00:00
Robert Osfield
c9c2950759
Moved UnitTestFramework from core osg lib into osgunittests example
2006-12-19 17:06:59 +00:00
Robert Osfield
dcebe4daa0
Added initial GraphicsWindowX11 implementation, and fleshed out more of the
...
osgViewer and osg::GraphicsContext/osg::View infrastructure.
2006-12-19 16:00:51 +00:00
Robert Osfield
afc77f9b39
Added support WindowingSystemInterface for querring the number of screens, the screen size and creating GraphicsContexts.
2006-12-17 20:49:01 +00:00
Robert Osfield
982a4db9e2
Added ViewPoint support into NodeVistor/CullStack/CullVisitor/LOD/PagedLOD etc to facilate
...
management of LOD settings for RTT cameras.
2006-12-15 17:27:18 +00:00
Robert Osfield
81213d47d8
From Andy Skinnder, warning fix
2006-12-14 14:44:10 +00:00
Robert Osfield
afa96fff0e
Added more accurate computation of local height above sea level in the plane intersections routines
2006-12-05 12:58:29 +00:00
Robert Osfield
ab7d1ecc42
Further work on PlaneIntersector
2006-11-29 14:21:59 +00:00
Robert Osfield
345810ef22
Added support for float or double osg::Plane, and the default osg::Plane to double.
...
Performance tests on big models did not indicate any performance penalty in using doubles over floats,
so the move to doubles should mainly impact precision improvements for whole earth databases.
Also made improvements to osgUtil::PlaneIntersector and osgSim::ElevationSlice classes
2006-11-28 16:00:52 +00:00
Robert Osfield
fd2ffeb310
Renamed osg::CameraNode to osg::Camera, cleaned up osg::View.
...
Added beginnings of new osgViewer::Scene,View,Viewer,CompositeViewer and GraphicsWindowProxy files.
2006-11-27 14:52:07 +00:00
Robert Osfield
4ab9c6f5f4
Removed check from objectDeleted(void*) method as this was not catching cases
...
where the registered ptr was different from the deleted ptr - something that
can happen with multiple inheritance.
2006-11-26 22:27:09 +00:00
Robert Osfield
2a8c48c13c
Added isIdentity() method
2006-11-24 21:10:57 +00:00
Robert Osfield
5044a85c9e
Improved handling of bounding polytope
2006-11-24 17:20:01 +00:00
Robert Osfield
1f3a851cfc
From Farshid Lashkari, Added missing initialization of the _scaleByTextureRectangleSize
...
variable in two of its constructors.
2006-11-22 20:39:44 +00:00
Robert Osfield
b67de41991
Rearranged the #ifdef's to prevent compile problems under NVidia 2.1 OGL drivers
2006-11-17 20:45:29 +00:00
Robert Osfield
d0cc014f1b
Further migration to using RenderInfo
2006-11-14 12:51:31 +00:00
Robert Osfield
7cb1bcbd7d
From Farshid Lashkari, "This patch adds a CoordOriginMode to the osg::PointSprite attribute.
...
The mode needs to be changed to LOWER_LEFT when rendering point
sprites to pbuffers or FBOs, otherwise the points will be transformed
on the CPU."
2006-11-14 12:29:54 +00:00
Robert Osfield
c3f3093ecc
From John Kelso, add support for default frame time for children of a Sequence node
2006-11-10 15:25:04 +00:00
Robert Osfield
8983544a86
Further work on osgShadow::GeometryOccluder
2006-11-10 15:07:13 +00:00
Robert Osfield
1c91b505dd
Fixed bug in Polytope::contains(const std::vector<Vec3>& vertices) which resulted
...
in false positives.
2006-11-02 15:22:38 +00:00
Robert Osfield
f257285efc
From Chuck Seberion, added support reading ARB float format textures.
2006-10-14 21:50:29 +00:00
Robert Osfield
660cda57c8
From Terry Welsh, mplemented POINT_ROT_EYE.
2006-10-14 21:47:13 +00:00
Robert Osfield
8e3a092a00
Removed the redundent relaseGLObjects() method declerations
2006-10-03 20:42:57 +00:00
Robert Osfield
e0599f652e
Added releaseGLObjects to NodeCallbacks, Drawable::DrawCallbacks and wired up
...
osgProducer to use it when doing cleanup_frame.
2006-10-02 15:38:31 +00:00
Robert Osfield
f97759405a
From Farshid Lashkari, "Here is the patch we discussed previously about adding a flag to
...
CullSettings which allows CameraNode to inherit the clear color."
2006-10-02 14:11:40 +00:00
Robert Osfield
3bfa8a27a8
From Edgar Ellis, "Changed return type of osg::equivalent methods from float/double to bool.
...
"
2006-10-02 13:11:32 +00:00
Robert Osfield
35d134f712
From Farshid Lashkari, added function for querring whether a mode is a texture related mode or not.
2006-09-21 10:01:27 +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
515225cfb9
Fixed the drawArrays() method checking of _drawArrayPtr
2006-09-12 15:21:41 +00:00
Robert Osfield
5915584b37
Revised the osg::ClampColor API to allow vertex, fragment and read color clamping to
...
be applied together.
2006-09-12 09:26:42 +00:00
Robert Osfield
daa54a3b09
From Farshid Lashkari,
...
"I've made some changes to osg which I think make it easier to control
the render order of CameraNode's. Instead of using the built-in orders
(PRE_RENDER, POST_RENDER, NESTED_RENDER), you can specify an integer
order. Values less than zero are pre rendered in order. Values greater
than zero are post rendered in order. And a value of 0 is equivalent
to NESTED_RENDER.
The changes should be fully backward compatible. Also, I changed the
RenderStageList type from a vector to a list because I needed to be
able to insert values anywhere in the list.
The reason I made these changes was because I wanted to be able to set
the render order of a CameraNode at runtime without having to reorder
it in the scenegraph."
and later in the final submission message (relating to what has been finally been merged) :
"I've rethought my implementation and came up with something a little
better. The setRenderOrder will continue to take an enum, but will
have an optional orderNum parameter which can be both positive and
negative. I think this method is more intuitive and flexible."
2006-09-04 13:15:08 +00:00
Robert Osfield
f0277df858
Added osg::TexMat::s/getScaleByTextureRectangleSize feature that allows
...
one to use the osg::TexMat to automatically scale non dimensional tex coordinats to
the size of the last texture rectangle applied.
2006-09-04 12:46:49 +00:00
Robert Osfield
5d1de02afa
Updated Version number for 1.2 release
2006-08-31 20:55:46 +00:00
Robert Osfield
aaba1c6b23
Made the inheritance of osg::Object in the DrawCallback to be virtual.
2006-08-31 10:10:42 +00:00
Robert Osfield
22e94c9aaf
Added TexMat(Matrix) constructor.
2006-08-29 06:58:22 +00:00
Robert Osfield
179f6100a0
Added missing setDataType and setPacking functions
2006-08-25 15:49:29 +00:00
Robert Osfield
ff61a20315
Added const version of getReadPBuffer()
2006-08-25 14:54:54 +00:00
Robert Osfield
f5d9443b78
Fixed const correctness of get shadow functions
2006-08-25 14:53:09 +00:00
Robert Osfield
0900857333
From Farshid Lashkari,
...
"I was experiencing hard crashes of my application when using PBO's on
machines that don't support PBO's. I think osg incorrectly checks if
PBO's are supported.
I added a new method to the BufferObject::Extensions class which
returns if the "GL_ARB_pixel_buffer_object" string is supported. This
fixes the problem on my end. Machines without PBO support will
continue to work and machines with PBO support will still be able to
use it."
2006-08-25 08:48:16 +00:00
Robert Osfield
62edacece5
From David Guthrie, "I know there are 50,000 changes to osg/Math for OSX a day, but I
...
think it can be simplified quite a bit. The old code includes
<cmath> for pre-10.2 and anything using something other than g++ 4
and then uses std::isnan. For the most current version, it leaves
out cmath and uses isnan(). std::isnan and cmath work for the
current version, so I just made it include cmath if __APPLE__ is
defined and removed the ifdef between versions of OS X for isnan
related things.
This way the code is all the same, and it's not fragile to someone
including <cmath> prior to including osg/Math."
2006-08-24 20:16:25 +00:00
Robert Osfield
49e7607fa0
Simplified swap bytes code to make it more efficient.
2006-08-24 20:15:32 +00:00
Robert Osfield
a33955a56b
From Daniel Larimer, fix for OSX 10.4 when gcc != 4
2006-08-23 14:17:06 +00:00
Robert Osfield
be60b32add
Fixed texture optimization problem associated with mixing already compiled scene graphs - resulting
...
in incorrect texture assignment. Solution was to a compareTextureObjects() test to the Texture*::compare(..) method that
the osgUtil::Optimizer::StateSetVisitor uses to determine uniqueness.
2006-08-14 19:42:22 +00:00
Robert Osfield
14f924c2af
From Daniel Larimer, "Apple updated their developer tools again and broke the __isnanf and
...
__isnand methods... replacing them with a call to isnan(v) seems to
work on both Xcode 2.3 and 2.4"
2006-08-10 08:45:42 +00:00
Robert Osfield
3730d7266d
Removed referecens to the deprecate UByte4
2006-08-09 13:02:52 +00:00
Robert Osfield
174e3b3dc3
Fixed RenderToTexture bug which occured when the viewport dimensions where
...
different than the texture being written to.
2006-08-03 15:57:39 +00:00
Robert Osfield
0336231321
Moved extension function pointer initilization into a method, and the pointers from
...
being static to be local member variables. This should avoid issues under Windows
with multiple graphics contexts have seperate entry points.
2006-08-02 16:14:17 +00:00
Robert Osfield
553d017fd9
From Daniel Trstenjak, build fixes for Hpux 11.11, Irix 6.5, Solaris 8 and Aix
2006-08-02 10:43:26 +00:00
Robert Osfield
564ee34f76
Added Matrix*::getRotate()/setRotate(Quat), deprecating Matrix*::get(Quat&), Matrix*::set(Quat&)
2006-07-31 17:31:21 +00:00
Robert Osfield
28cf404a25
Tweaked the invert() method to avoid silly OSX warnings.
2006-07-31 14:49:36 +00:00
Robert Osfield
f977d7c606
Updated osgunittests with a matrix invert unit test, and added a conditional
...
calling of invert_4x4 or invert_4x3 depending on the the right hand column of the matrix.
Updated wrappers
2006-07-28 13:48:08 +00:00
Robert Osfield
d9b6d87d5a
Cleaned up per context buffers support
2006-07-26 15:29:26 +00:00
Robert Osfield
f1c2694c17
Updated copyright years.
2006-07-18 15:21:48 +00:00
Robert Osfield
419e185895
From Eric Wing, add alternate backdrop implementations.
...
From Robert Osfield, updated naming and copy constructor methods.
2006-07-18 12:24:04 +00:00
Robert Osfield
2ef59b73e9
Change Unit to Units to keep consistent with OpenGL naming.
2006-07-17 11:43:26 +00:00
Robert Osfield
4bae225d39
Added s/getFactorMultiplier(), s/getUnitMultiplier(), areUnitAndMultipliersSet() and
...
setFactorAndUnitMultipliersUsingBestGuessForDriver() static methods to
osg::PolygonOffset to help implement workarounds for lack of portablity of
settings between different hardware.
2006-07-14 14:08:33 +00:00
Robert Osfield
dd6a33da49
Removed StateSet::ENCLOSE_RENDERBIN_DETAILS since it is rendendent, and
...
implemented the OVERRIDE_RENDERBIN_DETAILS.
2006-07-11 21:53:57 +00:00
Robert Osfield
165351196e
From Brede Johansen, "Here's a small patch to BlendFunc::setFunction(source,destination) to
...
make it consistent with the constructor and prevent the
BlendFuncSeparate path being called. This patch fixed the artifact
with the osgpointsprite demo on ATI cards reported by Mike Weiblen."
2006-07-11 14:24:18 +00:00
Robert Osfield
865ee4429c
From Eric Sokolowsky,
...
"Attached is some fixes for Image::readImageFromCurrentTexture. It was
failing when used with a new Image object (some of the fields were
not set before they were used, and some were set to the wrong values).
A new optional parameter was added to give the desired data type, which
defaults to GL_UNSIGNED_BYTE, so programs should only need a recompile
to work properly."
2006-07-06 14:02:14 +00:00
Robert Osfield
88609a5eee
Updated version numbers for 1.1 release
2006-07-06 10:28:12 +00:00
Robert Osfield
ce4b3a7b9e
Changed parameter name from osberver_ptr to observer.
2006-07-04 19:58:53 +00:00
Robert Osfield
7a42716036
Removed template methods that were break VS6.0 build.
2006-07-03 15:21:08 +00:00
Robert Osfield
f181228d4a
From Michael Platings, added support for glBlendFuncSeperate.
2006-06-30 13:50:02 +00:00
Robert Osfield
6a2387373c
From Eric Sokolowsky, made a couple of methods static.
2006-06-30 13:47:12 +00:00
Robert Osfield
3e177ca727
From Tyge Løvset, ref_ptr<> template constructor, operators and associated functions.
...
From Robert Osfield, tweaks and fixes to the above, also removed the deprecated take() method.
2006-06-26 20:41:33 +00:00
Robert Osfield
f8644d08e5
From Leandro Motta Barros, documentation additions to PrimitiveSet & TriangleFunctor.
2006-06-26 09:56:52 +00:00
Robert Osfield
4ab7be2833
Martin Spindler, new osg::ClampColor state attribute.
2006-06-08 15:27:18 +00:00
Robert Osfield
7d3ddc0e1b
From Paul Martz, clean up of comments.
2006-06-08 12:09:51 +00:00
Robert Osfield
78742d6698
From Gustavo Wagner, addition of trim method to TemplateArray class.
...
From Robert Osfield, made trim method a virtual method of the base Array class
and added a trim implementation to TemplateIndexArray.
2006-06-08 11:58:56 +00:00
Robert Osfield
e1c77dfe2a
Minor tweaks of ints to unsigned ints
2006-05-16 21:20:36 +00:00
Robert Osfield
690aeea7e4
From Mike Weiblen, futher work on Uniform array support.
2006-05-16 21:00:45 +00:00
Robert Osfield
bf065ed3a4
From Mike Weiblen, support GLSL uniform arrays. A couple of tweaks and fixes from Robert Osfield.
2006-05-15 15:46:08 +00:00
Robert Osfield
587adca056
From Eric Wing, compile fix for OSX.
2006-05-15 11:53:21 +00:00
Robert Osfield
1dcb923c15
From Daniel Trastenjak, added checking of binding modes to ensure that changes are only applied
...
when the binding mode changes, thereby avoiding uncessary calls to dirtyDisplayList.
Note, from Robert Osfield, moved bodies of set*Binding() into Geometry.cpp to avoid
clutter in the header.
2006-05-15 11:48:05 +00:00
Robert Osfield
83722dc064
From Tree, build fixes for JavaOSG build.
2006-05-09 09:42:17 +00:00
Robert Osfield
bd895f94d4
From Farshid Lashari, round funciton.
2006-05-09 09:35:12 +00:00
Robert Osfield
1c6e165cb3
From Farshid Lashkari, "The setScale(Vec3) method of osg::AutoTransform does not dirty the
...
matrix. The fix is attached."
2006-05-09 09:12:43 +00:00
Robert Osfield
20820c7ce2
Added removeChild(unsigned int, unsigned int) back in for backward compatibility.
2006-05-04 19:36:30 +00:00
Robert Osfield
a8c52a90f0
Added selective support for thread safe ref/unref such that the rendering
...
backend now doesn't use thread safe ref counting where multi-buffering exists.
This reduces the overhead of multi-threading.
2006-05-02 15:52:46 +00:00
Robert Osfield
03c0c856f3
Fixed docs on GL_SCALE_NORMAL
2006-05-02 09:49:37 +00:00
Robert Osfield
43f0efd6d2
Reorganised the Group::removeChild and Geode::removeDrawable methods so
...
that removeChild(Node*), removeChild(uint) and equivilant Geode methods are
now inline methods, not designed to be overriden, and seperated out the
multiple remove method to be called removeChildren(uint, uint) which is
now the only virtual method. There removeChildren is now the method to
override in subclasses.
This reorganisation requires some call code to be rename removeChild usage
to removeChildren.
2006-05-02 09:45:31 +00:00
Robert Osfield
93a425cafb
From Eric Wing, removed trailing semi colonds from namespace end bracket.
2006-05-01 16:05:16 +00:00
Robert Osfield
e7a4ad287b
From Mike Weiblen, changes to internal help class in prep for array uniform support.
...
Small tweaks for build under Linux from Robert Osfield.
2006-03-28 16:08:32 +00:00
Robert Osfield
2b61cf0a1e
From Farshid Lashkari, "The following patch adds a multisample option to the
...
osg::DisplaySettings class. OsgCameraGroup will now read the setting
from the DisplaySettings instead of hardcoding the value. I added the
following commandline option to be able to set the multisample value:
--samples <num>
One thing to note, OsgCameraGroup would previously check if the
computer is an SGI and set multisample to 4. I retained this check in
DisplaySettings to be backwards compatible."
2006-03-13 21:29:17 +00:00
Robert Osfield
4fc4e60cc3
From Bob Kuehne, added osg::getGlVersion() and fixed a minor typo in Texture3D.
2006-03-08 16:11:54 +00:00
Robert Osfield
abed6b7951
Ported NodeTrackCallback and NodeTrackManipulator across to use oberserver_ptr
...
instead of RefNodePath.
Removed now redundent RefNodePath.
2006-02-27 19:49:47 +00:00
Robert Osfield
1dcf4fe81f
Added support in osg::computeWorldToLocal and compteLocalToWorld functions for automatically
...
stripping any absolute or root CameraNode's from the NodePaths.
Added osg::Node::getWorldMatrices() convinience method.
2006-02-27 19:48:34 +00:00
Robert Osfield
8f2ffb7c2d
Added new observer_ptr templated smart pointer to allow one to retain pointers
...
to objects but have the pointer reset to null if that object is deleted.
2006-02-27 19:44:33 +00:00
Robert Osfield
8489b22439
From Gordon Tomlinson, spelling fixes.
2006-02-23 12:41:05 +00:00
Robert Osfield
7ea1c56b4c
Fixed getBound() comment.
2006-02-22 20:51:26 +00:00
Robert Osfield
def7a78842
Fixed typo of Validity.
2006-02-22 19:14:01 +00:00
Robert Osfield
e72a02a083
Fixed documentation.
2006-02-22 14:35:06 +00:00
Robert Osfield
32b929a493
Added support for OpenGL mode black listing to provide better support
...
for extension checking and invalidation of OpenGL modes associated with
extensions.
2006-02-22 14:31:13 +00:00
Robert Osfield
25abad8307
From Paul Martz, "I've attempted to make AutoTransform override computeBounds() to return
...
an invalid bounding sphere if it hasn't seen a cull traversal yet. It
depends on _firstTimeToSetEyePoint, which is initially true, then false
after a cull. There might be a better way? If so, let me know.
This change does resolve the issue I had encountered with auto scale to
screen and incorrect culling."
2006-02-21 13:51:10 +00:00
Robert Osfield
7d5c81bf5e
From Ulrich Hertlein, spelling corrections and a few Doxgen comments.
2006-02-20 21:05:23 +00:00
Robert Osfield
59ad441be1
Added BlenColour(Vec4) constructor and updated wrappers.
2006-02-09 12:20:42 +00:00
Robert Osfield
4bc13ec71b
From David Guthrie, OSX marco reworking to better handling different OSX versions.
2006-02-05 21:53:37 +00:00
Robert Osfield
93a2c3d011
Improved handling of clean up of osg::Program/osg::Shader on closing of a graphis context.
2006-01-16 17:05:17 +00:00
Robert Osfield
0c9ab51e09
Fixed indenting.
2006-01-16 17:03:34 +00:00
Robert Osfield
ab71114219
Moved the body of the FBOExtensions::instance() to the .cpp and added bool to
...
control whether that an FBOExtensions structure can be created if missing.
2006-01-03 10:44:14 +00:00
Robert Osfield
323473144a
Fixed computeWindowMatrix so that it properly accounts for x,y position of the viewport.
2005-12-19 12:00:40 +00:00
Robert Osfield
4535cc0c09
Added back in Switch::removeChild(Node*)
2005-12-16 11:04:33 +00:00
Robert Osfield
6ff781b5b0
Removed Switch::removedChild(Node*) as the Group::removeChild(Node*) implementation
...
should be sufficient, as it calls the virtual removeChild(uint,uint).
2005-12-15 15:50:17 +00:00
Robert Osfield
7d4acba022
Changed constructors to use unsigned int to get round VS6.0 + wrapper problems.
2005-12-09 16:00:01 +00:00
Robert Osfield
479af6e825
Build fix for VS6.0 in the template constructors
2005-12-09 14:52:19 +00:00
Robert Osfield
a8d7234a0b
From Eric Wing, added missing removeChildren method.
2005-12-09 11:22:09 +00:00
Robert Osfield
53ee0ce3ec
Added CameraNode::releaseGLObejcts() to help in clean up, and changed the
...
ordering in SceneView::flushDeleteGLObjects() so that fbo's are deleted
before any texture objects they use are deleted.
2005-12-08 10:06:57 +00:00
Robert Osfield
27ad107378
Added new Node::getParentalNodePaths() method.
...
Added better handling in computeIntersections(..) of nodes that are internal
to the scene graph, correctly accounting for the accumulated transforms.
Changed the EventVisitor so that it only traveses active children rather than
all children.
Updated wrappers.
2005-12-07 15:29:29 +00:00
Robert Osfield
3f3c7b1df8
Added Camera::isRenderToTextureCamera() method, and improved support in PickVisitor
...
and IntersectVisitor for CameraNode, including the ignoring of render to texture cameras,
such that HUD's etc are still intersected against.
2005-12-07 11:36:56 +00:00
Robert Osfield
65d06b4577
From Farshid Lashkari, removed second redundent dirtyDisplayList() call.
2005-12-06 10:18:33 +00:00
Robert Osfield
22d5390784
From Louis Hamilton, fix to LightPoint's under 64 bit build, changing longs to ints in
...
colour conversion code.
2005-12-06 10:16:21 +00:00
Robert Osfield
c45ead4c65
Fixed tabbing.
2005-12-04 20:08:41 +00:00
Robert Osfield
851972beab
Added OSG_EXPORT to PrimitiveSet.
2005-12-03 15:12:52 +00:00
Robert Osfield
b16f40e5ab
Moved the body of the getNumPrimitives() into the .cpp.
2005-12-03 00:03:31 +00:00
Robert Osfield
8d8229cc05
From Marco Jez, hack/fix for VS compile/link problems related to STL containers.
2005-12-02 00:25:40 +00:00
Robert Osfield
6a5a10cf47
Fixed docs of setImage.
2005-11-25 13:45:23 +00:00
Robert Osfield
daefa1cae6
Added releaseGLObjects to PrimitiveSet.
2005-11-25 12:31:04 +00:00
Robert Osfield
736a8433ca
Added FBO deletion support, and better FBO querry and fallback mechansim in RenderStage.
2005-11-24 15:18:12 +00:00
Robert Osfield
09bfbeec8b
Changed the VS template export block to just compile when VS verion >= 1300 (VS.NET onwards.)
2005-11-24 15:17:28 +00:00
Robert Osfield
e1dd759dd8
Changed CameraNode::getDataChangeMutex() to be a pointer rather than a reference to
...
get around osgIntrospeciton build problem with the OpenThreads::Mutex copy constructor being private.
2005-11-23 16:32:55 +00:00
Robert Osfield
74830f9ce1
Added multi-buffering of the CameraNode::_renderingCache to help cope with multiple graphis context usages.
2005-11-23 13:44:27 +00:00
Robert Osfield
a91b8fa40a
Moved getGLExtensionFuncPtr implementation into the .cpp to make it easier to
...
change it implementation without forcing a complete recompile.
2005-11-23 10:16:25 +00:00
Robert Osfield
33f4494830
Added missing dirtyDisplayList call into osg::Geometry::set calls.
2005-11-22 13:56:50 +00:00
Robert Osfield
14f943cc32
From Marco Jez, fix for wchar_t being redefined.
2005-11-22 09:47:18 +00:00
Robert Osfield
8289eecb7e
From Roger James, reworked the export of std::vector<> on standard types to prevent
...
problems with .lib being built for all targets under VS7.x
2005-11-21 13:51:24 +00:00
Robert Osfield
9c93332c03
From Rodger James, changed the Win32 static library compilation support to use
...
OSG_LIBRARY_STATIC to avoid problems with building libs when not required.
2005-11-18 09:52:24 +00:00
Robert Osfield
35fcaf7bde
Convert tabs to spaces.
2005-11-17 17:44:48 +00:00
Robert Osfield
c2f1527fe0
Added better control for cancel GraphicsThreads.
2005-11-10 15:25:06 +00:00
Robert Osfield
83d492162e
Added the support in AnimationPathCallback for taking a pivot, axis and rotation rate
...
paramters in its constructor to allow it to be used to create rotations around a point.
This provides the same interface and functionality as osgUtil::TransformCallback but
has the advantage and AnimationPathCallback is fully supported by the .osg and .ive file formats.
2005-11-09 15:11:22 +00:00
Robert Osfield
258425d649
Bumped the version numbers up to 1.0 in preparation for 1.0-rc1.
2005-11-09 10:49:56 +00:00
Robert Osfield
53e075f78b
From Brad Colbert/Robert Osfield: added s/getSourceFormat and s/getSourceType to osg::Texture
...
along with support for this Texture1D, 2D, 3D, TextureCubeMap and TextureRectangle. The
new SourceFormat and SourceType parameters are only used when no osg::Image is assigned to
an osg::Texture, and main use is for render to texture effects.
Added support for --hdr option in osgprerender, which utilises the new Texture::setSourceFormat/Type() methods.
2005-11-08 15:52:21 +00:00
Robert Osfield
4915259878
Improved support for texture subload/render to texture in various Texture classes
...
and RenderStage.
2005-11-04 12:08:16 +00:00
Robert Osfield
fb2d3ae108
Further work on added IO support from CameraNode.
2005-11-03 15:59:17 +00:00
Robert Osfield
eb28f9f587
From Eric Sokolowsky, added writeEnvironmentSettings to help report what OSG
...
centric environment variables are used.
2005-11-03 10:01:09 +00:00
Robert Osfield
f3cfe97da9
Added support in DisplaySettings and OscCameraGroup for requesting accumulator buffer.
2005-11-02 19:15:18 +00:00
Robert Osfield
a86df172f9
Added doc comment and removed redundent inline keyword
2005-11-02 11:33:10 +00:00
Robert Osfield
8748e21e61
Added static orthoNormal function to match equivilant in Matrixd
2005-11-02 10:49:38 +00:00
Robert Osfield
4c1110858a
From Colin McDonald, "Fix for missing class name qualifier on the orthoNormal function."
2005-11-02 10:45:56 +00:00
Robert Osfield
21c5a129ff
Fixed compile warning
2005-11-02 10:29:13 +00:00
Robert Osfield
a742cb682e
Added RenderTargetFallback option into osg::CameraNode.
2005-11-01 10:42:54 +00:00
Robert Osfield
fa5ab64c94
From Ravi Mathur, "Here is an update to BlendEquation that adds checking for the
...
SGIX_blend_alpha_minmax and EXT_blend_logic_op extensions. It is
tested with the osgblendequation example. If the extensions are not
supported, a WARN level notification is generated."
2005-10-28 13:18:09 +00:00
Robert Osfield
026fba54b4
From Bob Kuehne, "changed two set methods (setFocalLength,setFieldOfView) to perform
...
assignment."
2005-10-26 16:02:24 +00:00
Robert Osfield
be07f48884
From Geoff Michel, compile fixes for VS6.0
2005-10-26 09:22:13 +00:00
Robert Osfield
f46044084a
From Farshid Lashkari & Robert Osfield: Added support for VERTICAL_INTERLACE and HORIZONTAL_INTERLACE
...
stereo modes use the stencil buffer.
2005-10-25 15:43:04 +00:00
Robert Osfield
f2f6e6bb45
Added beginnings of Programming Guide, and NodeTrackerCallback.
2005-10-24 10:51:50 +00:00
Robert Osfield
1e508d432b
Added SmokeTrailEffect which renders created particles as single quad or line
...
strip, in the case of the quad strip the strip is aligned to the be orthogonal with
the eye point.
2005-10-12 18:42:36 +00:00
Robert Osfield
290e0b6eed
From Alberto Jaspe, added double precision interpolation method
2005-10-10 09:17:22 +00:00
Robert Osfield
4b43b22c5a
Added support for CameraView into NodeVistor, and support for CameraNode and CameraView
...
into the AnimationPathCallback so you can now animate both via animation paths.
2005-10-05 09:48:53 +00:00
Robert Osfield
cf2974329f
Added code paths for PBuffer RTT support.
2005-10-04 18:50:00 +00:00
Robert Osfield
8e9ffd09af
Added osg::CameraView to help application/modellers position their cameras in scenes. Note,
...
CameraView is *not* a camera, it isn't an active object, but a passive one that
camera must track each frame to following the path of the CameraView.
2005-10-04 13:41:20 +00:00
Robert Osfield
e749839061
From MFM, Added FreeBSD specific implementation for getGLExtensionFuncPtr using dlsym(RTLD_DEFAULT, xxx)
2005-10-03 19:33:54 +00:00
Robert Osfield
e2f2960704
Added a dirtyDisplayList() to the setColor() and setTesselationHint() methods.
2005-10-01 19:27:52 +00:00
Robert Osfield
d82d598115
Fixed typo of CameraNode::setRenderTargetImplementation(..)
2005-09-29 09:36:51 +00:00
Robert Osfield
f26c3da074
From Chris Hanson, "The following files are drop-in replacements for the include/*/Export files to permit
...
building statically linked osg libraries under Win32."
2005-09-28 14:05:05 +00:00
Robert Osfield
97f6a82b1e
From Leandro Motta Barros: fixed type of ATTRIBUTE_*
2005-09-28 13:55:22 +00:00
Robert Osfield
05528abf25
From Chris Hanson:
...
Spelling fixes in include/osg/LOD
Negated priority in PagedLOD when using _rangeMode==PIXEL_SIZE_ON_SCREEN
Added clampedPixelSize() methods to CullStack and CullingSet to return fabs()ed values.
Changed LOD and PagedLOD ::traverse to use clampedPixelSize() methods.
2005-09-28 13:33:58 +00:00
Robert Osfield
871cc70c32
From Ravi Mathur, added extension checks for point sprite support.
...
From Robert Osfield, tweaks of the above to use osg::buffer_object and a local struct to store
initialized to help with multi-thread and out of order context usage.
2005-09-19 15:28:31 +00:00
Robert Osfield
196eafd70b
Removed duplicate typedef.
2005-09-09 15:42:48 +00:00
Robert Osfield
765db1998c
Added support for cullable state, that uses a polytope to define the extents
...
of objects that will be influenced by it.
2005-09-07 16:18:43 +00:00
Robert Osfield
14980872a7
Standardised the Vec* class interfaces, and added num_components enum to aid
...
generic programming.
2005-09-04 11:17:00 +00:00
Robert Osfield
d58487c763
Changed red()/green()/blue()/alpha() to r()/g()/b()/a() for greater consistency
...
across Vec* classes and with OpenGL Shander Lanaguage.
2005-09-03 20:56:25 +00:00
Robert Osfield
caaeaee321
Fixed typo
2005-09-01 19:12:06 +00:00
Robert Osfield
7fc95ddae7
Added graphics context pointer to osg::Texture in prep for support for Pbuffer
...
Render To Texture.
2005-08-31 12:56:15 +00:00
Robert Osfield
c02e91c1b4
Added support for GrapicsOpeations that are reused each frame, cleaned up
...
osgcamera example.
2005-08-30 22:28:30 +00:00
Robert Osfield
f9bcde3cf0
Added name and keep member variables to osg::GraphicsThread::Operation to allow
...
the names of the operations to be logged for stats purposes, or used when
do searches of the operation list. The keep member variable tells the graphics
thread run loop wether to remove the entry from the list once its been called.
2005-08-30 19:03:02 +00:00
Robert Osfield
aba3b4fa67
Clean up and fixes to GraphicThread class, and osgcamera example.
2005-08-30 14:41:08 +00:00
Robert Osfield
d154c2a4cd
From Eric Sokolowsky, warning fixes for g++ 4.0 under Fedora Core 4.
2005-08-25 17:53:01 +00:00
Robert Osfield
320d0f67e4
Removed old commented out code.
2005-08-24 19:21:12 +00:00
Robert Osfield
dedf81fa51
From Domenico Mangieri, added constructor.
2005-08-24 19:20:36 +00:00
Robert Osfield
b50ac89b9d
From Domenico Mangieri:
...
"I've added a Plane constructor which accepts a normal and a point.
I also removed calculateUpperLowerBBCorners() from the Plane(const
Vec3& v1, const Vec3& v2, const Vec3& v3) since the constructor is
using the function set(const Vec3& v1, const Vec3& v2, const Vec3& v3)
which already computes the upper and lower bounding box."
2005-08-22 14:07:47 +00:00
Robert Osfield
29958a5612
Added OSG_EXPORT to GrephicsThread and fixed typo in osg.dsp.
2005-08-21 15:32:38 +00:00
Robert Osfield
ac07e07705
Further work on GraphicsContext/GraphicsThread
2005-08-20 08:59:03 +00:00
Robert Osfield
356f1ccfaf
Added GraphicsThread class
2005-08-18 20:35:19 +00:00
Robert Osfield
51faa7e43a
Various updates to support the new GraphicsThread class.
2005-08-18 20:17:51 +00:00
Robert Osfield
717a6dcf14
Added beginings of GraphicsThread class
2005-08-18 09:36:40 +00:00
Robert Osfield
84618ffcb3
Merged RenderToTextureStage functionality into RenderStage
2005-08-17 10:12:49 +00:00
Robert Osfield
e8fc5248fa
Added realize() and isRealized() methods to osg::GraphicsContext.
...
Added osgcamera example that uses osg::GraphicsContext to create the required
window for rendering too, will eventually use osg::CameraNode to replace usage
of osgUtil::SceneView.
2005-08-16 13:29:07 +00:00
Robert Osfield
a5d64e5a77
Added getDisplayList access method
2005-08-09 10:48:26 +00:00
Robert Osfield
4e69d46289
Further work on trying to get glGenerateMipMapEXT working in conjunction with
...
frame buffer objects. Still don't work under Linux yet through :-|
2005-07-27 11:27:44 +00:00
Robert Osfield
bddaefd569
Perliminary support for glGenerateMinMapEXT.
2005-07-25 16:12:24 +00:00
Robert Osfield
384830d37e
Added handling of automatic setting up of the contextID.
2005-07-25 14:28:22 +00:00
Robert Osfield
3c23a42f17
Added support for TextureCubeMap into osgUtil::RenderToTextureStage.
2005-07-25 13:05:57 +00:00
Robert Osfield
ee8f7bb756
Added post draw callback to osg::CameraNode/osgUtil::RenderToTextureStage.
...
Added support for Texture1D, 2D, 3D and TextureRectangle into osgUtil::RenderToTextureStage.
2005-07-24 20:31:21 +00:00
Robert Osfield
47651d3c8d
Added glSissor suppor via new osg::Scissor class.
...
Added .osg support for osg::Scissor.
Added .ive support for osg::Viewport and osg::Scissor.
2005-07-22 09:31:19 +00:00
Robert Osfield
37b4df3f71
Added missing typedef
2005-07-22 08:21:17 +00:00
Robert Osfield
302c58fc93
Implemented the beginings of the osgProducer::GraphicsContexImplementation.
...
Added options into osgprerender for controlling how to do the pre rendering i.e.
--fbo, --pbuffer, --fb --window, and also added the option for controlling the
window size with --width and --height.
2005-07-21 19:27:19 +00:00
Robert Osfield
7776924407
Checked in graphics context.
2005-07-21 08:43:24 +00:00
Robert Osfield
1e9fb4ab03
From Marco Jez (with tweaks by Robert Osfield) : clean up of inheritance from std::vector<> classes
2005-07-20 19:42:59 +00:00
Robert Osfield
b9e651baf1
Added new osg::GraphicsContext base class
2005-07-20 15:55:07 +00:00
Robert Osfield
7b23cf930e
Added support for multiple colour buffers into osg::CameraNode/osgUtil::CullVisitor
2005-07-19 20:01:00 +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
5c9bd792a3
Updated wrappers
2005-07-15 21:47:11 +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
cfac4c74bc
Added reference frame to TexGenNode
2005-07-15 08:32:36 +00:00
Robert Osfield
53347812cb
From Mike Weiblen, addiding of Program::validateProgram and osg::isNotifyEnabled() method
2005-07-14 10:27:00 +00:00
Robert Osfield
5cfc42daf8
Added missing copy _referenceFrame in copy constructor
2005-07-14 10:17:20 +00:00
Robert Osfield
99279fbf61
From Marco Jez, added missing method implementations to CameraNode and
...
added check to ensure FBO extension is support to RenderToTextureStage.
2005-07-08 14:46:13 +00:00
Robert Osfield
0d8e38f9ee
Tweaks for better OSX paging support, 6 and 9 keys for control drive manipulator
...
up and down looking, and removed redundent API from osg::Geometry.
2005-07-07 14:14:38 +00:00
Robert Osfield
facb0e2638
From Pavel Moloshtan, Byte2,3,4 and Short2,3,4 classes and their Array counterparts.
...
With a few build tweaks and bug fixes by Robert Osfield.
2005-07-05 15:57:53 +00:00
Robert Osfield
72488d274f
Added support for equalizing the normals along tile boundaries.
2005-07-02 08:11:55 +00:00
Robert Osfield
34be5166ff
From Tom Jolly, added method for getting the number of frames.
2005-06-20 10:38:39 +00:00
Robert Osfield
7453711267
From Mike Weiblen,
...
" - adjustments to improve namespacing on VS
- clarify compilation status message"
2005-06-20 10:36:06 +00:00
Robert Osfield
9c950f0f3c
From Andreas Jochens (submitted by Loic Dachary), addintion of forward declare
...
of class Progam; to fix compile problem under gcc4.0/amd64/debian unstable.
2005-06-20 10:28:52 +00:00
Robert Osfield
ba2aeb52e5
From Mike Weiblen, added OSG_EXPORT to FrameBufferObject files.
2005-06-20 10:16:30 +00:00
Robert Osfield
1641cd7b54
From Pavel Moloshtan, added support of Drawable::Extensions::glDeleteQueries()
2005-06-16 13:53:52 +00:00
Robert Osfield
3a0b742461
Added copyright notices.
2005-06-16 11:45:50 +00:00
Robert Osfield
d702fed0ef
Moved FBO support from osgfbo example into core osg.
2005-06-16 11:42:59 +00:00
Robert Osfield
77a4cef9d6
Futher work on FBO support
2005-06-15 20:06:10 +00:00
Robert Osfield
dfaed083ea
Added osgmultiplecameras example and support for pre/post multiplaction.
2005-06-15 10:59:10 +00:00
Robert Osfield
71122ff38f
Work on the RenderToTexture usage of the new osg::CameraNode. Both osghud
...
and osgprerender now ported across to osg::CameraNode.
2005-06-14 20:51:35 +00:00
Robert Osfield
868d381528
Added osg::CameraNode.
2005-06-14 13:16:58 +00:00
Robert Osfield
27c4c6a956
Moved the set/getName() support from osg::Node etc into the osg::Obejct
...
base class
2005-06-08 13:16:19 +00:00
Robert Osfield
e0cf176590
From Mike Weiblen, added GLSL datatypes mat2 and mat3 to osg::Uniform, with .osg and .ive support
2005-06-08 10:36:56 +00:00
Robert Osfield
a799cdca2f
From Tim Daust, "I fixed the getScale functions in matrixf and
...
matrixd. It was returning the values of the diagonal
of the matrix, which only returns the scale if there
is not a rotation. I fixed this by returning the
length of the vectors that form the basis.
I also added a function to orthonormalize the
rotation component of the matrix. I seem to always run
into situations where non uniform (or even uniform)
scale complicate my calculations, and I thought other
members of the community could use this function as
well."
2005-05-31 06:21:16 +00:00
Robert Osfield
3c308104a9
Updated Version numbers for release.
...
UPdated wrappers.
2005-05-25 20:02:25 +00:00
Robert Osfield
2b08f729f3
Updated change log.
...
From Fredric Marmond, changed unsigned int to unsigned long to avoid compile errors under 64 bit compile.
2005-05-25 15:35:51 +00:00
Robert Osfield
59be8c19f3
Changd unsigned int's to unsigned char* to fix gcc3.4 64 bit issues.
2005-05-25 09:50:11 +00:00
Robert Osfield
cf06b40891
Added pragma to remove warnings under VS.8.0
2005-05-24 18:57:13 +00:00
Robert Osfield
43ad7114be
Reworking to avoid compile issues under VS6.0.
2005-05-20 15:45:12 +00:00
Robert Osfield
955cc1ec2a
Added s/getClearMask() support to osg::ClearNode, osgUtil::SceneView and the
...
.osg plugin.
2005-05-18 19:55:14 +00:00
Robert Osfield
2e4b266c39
Added differentiation between Non power of two textures when mip mapped vs
...
when not mipped mapped to get round the issue of incomplete support under
ATI cards.
2005-05-17 11:00:13 +00:00
Robert Osfield
1dd553ed0e
Bumped version numbers to 0.9.9 in rediness for 0.9.9 release.
2005-05-16 17:17:53 +00:00
Robert Osfield
10232cf81a
Fixed method signatures.
2005-05-16 11:18:11 +00:00
Robert Osfield
a9f37f1f05
Moved computeBounds into public scope.
2005-05-15 20:31:22 +00:00
Robert Osfield
95a9a4362f
From John Grant, added getDrawableList() const.
2005-05-15 05:47:14 +00:00
Robert Osfield
76e7853971
From Tom Jolly, removing trailing comma for last entries in enums to fix
...
IRIX compile warnings.
2005-05-13 21:38:34 +00:00
Robert Osfield
e82a63ca81
Cross platform build fixes.
2005-05-13 11:11:52 +00:00
Robert Osfield
715df123f1
From Mike Weiblen, Added queries of compilation state to Shader (for symmetry with Program's
...
link state queries)
2005-05-12 20:59:53 +00:00
Robert Osfield
7c90800822
From Jan Ciger, gcc 4.0 compile fix.
2005-05-12 20:35:15 +00:00
Robert Osfield
54abc6f471
Added IO support for new intialBound and callbacks to .osg, and initialBound to .ive
2005-05-12 14:48:56 +00:00
Robert Osfield
bf4d63f6ea
Added new Node/Drawable::s/getInitialBound and Node/Drawable::s/getComputeBoundCallback
...
methods and reimplement computeBound so that it passes back a bounding volume rather
than modifying the local one.
2005-05-12 14:03:22 +00:00
Robert Osfield
25b36ef648
Moved OpenGL2 definitions from Uniform header to GL2Extensions
2005-05-12 07:47:43 +00:00
Robert Osfield
ea1dc4dd20
Added missing required includes
2005-05-11 21:06:29 +00:00
Robert Osfield
1f6cdc49e5
Compile fix.
2005-05-11 20:37:22 +00:00
Robert Osfield
9ef29824aa
Moved GL2Extensions back out of Program and into its own header file.
2005-05-11 19:59:21 +00:00
Robert Osfield
aa6ea8c047
Completed GLSL support in .ive
2005-05-11 13:37:38 +00:00
Robert Osfield
fb34b22e34
Cleaned up API of BindAttributeLocation, added deletion of shader objects.
2005-05-11 11:41:44 +00:00
Robert Osfield
1afd5e48a7
Added support for PROTECTED and OVERRIDE to uniforms.
2005-05-10 13:56:05 +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
d1a1b1d95c
Added more comprehensive releaseGLObjects(State*=0) throughout Nodes,
...
Drawables,StateSet, and osgDB::Registry.
Added cleanup_frame() from to osgProducer::OsgCamerGroup to help with proper
clean of OpenGL objects before exit, and modified osgviewer, osghangglider,
osgwindows examples to do the extra frame call to cleanup_frame() before exit.
2005-05-07 20:47:09 +00:00
Robert Osfield
7480d51830
From Mike Weiblen, further work on GLSL support
2005-05-06 09:58:49 +00:00
Robert Osfield
fc585cd33d
From Farshid Lashkari, support for non power of two extension.
2005-05-06 09:04:41 +00:00
Robert Osfield
2798d58a41
Added support for osg_FrameNumber, osg_FrameTime, osg_ViewMatrix, osg_InverseViewMatrix
...
into SceneView, controlled via a setActiveUniforms(.) method.
2005-05-05 12:30:54 +00:00
Robert Osfield
c4e2e85aa1
From Farshid Lashkari, added Texture::Extension support for non power of two extension.
2005-05-05 09:18:03 +00:00
Robert Osfield
f8c855a576
Fix for Tiger build
2005-05-04 11:38:34 +00:00
Robert Osfield
97daa561f4
Added support for lazy state updating of uniforms.
2005-05-03 21:46:47 +00:00
Robert Osfield
b85d4d4e7e
Added support for optimization of Uniforms
2005-05-02 10:18:37 +00:00
Robert Osfield
938d13ecc7
Improved the handling of update/event callbacks on Drawable and Geodes
2005-05-02 09:57:58 +00:00
Robert Osfield
03232ec667
Moved osg::Impostor to osgSim::Impostor, as Impostor isn't a core feature.
2005-05-01 19:48:49 +00:00
Robert Osfield
adba6fa559
Added RemoveLoadedProxyNodes pass to Optimizer, set on by default at present.
2005-04-30 15:16:05 +00:00
Robert Osfield
a5fcddc5e5
From Mike Weiblen, Progra/Shader fixes
2005-04-30 07:02:02 +00:00