Robert Osfield
96e1630cc7
Removed the String inhertiance from osg::Referenced.
2006-09-01 12:46:45 +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
6be6bc2eaa
Added TexEnv object into Font and apply this in Text::drawImplementation to make
...
sure that a valid TexEnv is applied
2006-08-28 19:37:40 +00:00
Robert Osfield
6b186a122f
Added support for logging StateSet usage in StatsVisitor.
2006-08-28 19:06:33 +00:00
Robert Osfield
70470bc84a
From Roger James, "I have been going through my modified osg files and came across this fix to the Tesselator. From memory it handles a problem with per primitive normal binding. I must have forgotten to submit it."
2006-08-28 19:01:03 +00:00
Robert Osfield
19f3d975dd
Futher work on TextureAtlasBuilder/Visitor, now functioning enough to deploy on real models.
2006-08-28 15:46:02 +00:00
Robert Osfield
ee7f3fa375
Further work on TextureAlasBuilder and TextureAtlasVisitor.
2006-08-28 10:46:39 +00:00
Robert Osfield
f86c824275
Further work on new TextureAtlasBuilder.
2006-08-25 16:30:23 +00:00
Robert Osfield
1f8c4874f6
Checking in first cut of new osgUtil::Optimizer::TextureAtlasBuilder class
...
for building texture atlas for sets of images or textures.
2006-08-25 15:53:16 +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
98cdf9b3c7
From Eric Wing, fix for compute of the bounding box when handling outline/backdrop text.
2006-08-22 10:23:58 +00:00
Robert Osfield
6f23173c05
Added comments on the meaning of button value
2006-08-21 20:29:32 +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
0220448af3
Fixed value of FLATTEN_BILLBOARDS enum.
2006-08-11 16:03:04 +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
91e9679362
Addd a setNodeMaskOverride(0xffffffff) to cope with models that are hiding
...
subgraphs that still need to be accounted for when optimizer.
2006-08-10 06:43:09 +00:00
Robert Osfield
3730d7266d
Removed referecens to the deprecate UByte4
2006-08-09 13:02:52 +00:00
Robert Osfield
2616174b06
Added support for --affinity command line option for switch on procesor affinity where supported,
2006-08-08 11:27:36 +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
9e7b07fbcf
Reworked the state management within osgText::Text and osgText::Font so that it
...
only applies textures locally rather than whole StateSet.
2006-08-02 21:05:56 +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
5c4446dd5e
From Jason Beverage,
...
"I've attached fixes to DataSet that should fix the problems that Maya was seeing yesterday. The issue was that the new interpolation code I submitted didn't use the SourceData's georef, it was assuming that the GDALDataSet had a proper geo-ref. I've made the getInterpolatedValue method a member of SourceData and now it uses the georef the SourceData's georef.
I also forward declared the GDALRasterBand class in the DataSet header."
2006-07-31 20:56:22 +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
b1994cc60d
Fixed multi-threaded/multi-pipe crash when primitive stats where output in osgProducer::Viewer's stats.
2006-07-29 16:47:28 +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
c0c5e73ff9
From Michael Polak, double click fixes/additions
2006-07-27 12:32:40 +00:00
Robert Osfield
d9b6d87d5a
Cleaned up per context buffers support
2006-07-26 15:29:26 +00:00
Don BURNS
f6efd393b5
Fixed HEIGHEST misspelling to HIGHEST
2006-07-19 17:39:45 +00:00
Robert Osfield
f1c2694c17
Updated copyright years.
2006-07-18 15:21:48 +00:00
Robert Osfield
6b2d32baae
From Farshid Lashakari, fixed popStateSet.
2006-07-18 13:05:26 +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
a74801a0ee
Added Optimizer::FlattenBillboardsVisitor.
2006-07-18 11:03:46 +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
ff00f888db
Fixed popStateSet
2006-07-14 11:34:13 +00:00
Robert Osfield
dd32e6425e
Added StatsVisitor to include/osg/Statistics, and usage of it in osgUtil::Optimizer.
...
Added --optimize <string> option to osgconv
2006-07-13 15:25:22 +00:00
Robert Osfield
93b13c0854
Fixed Statistics::reset() method to include a reset of all member variables
2006-07-13 11:46:55 +00:00
Robert Osfield
519157aeab
From Vincent Vivanloc, Removed commas from end of enum lists, and removed semi-colon
...
from end of namespace.
2006-07-12 09:50:45 +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