Robert Osfield
bfd1286b25
Add clamping to 0..1 bounds for each of the r,g,b,a components in
...
the CubeMapGenerator::set_pixel() method.
2004-06-04 11:35:13 +00:00
Robert Osfield
bd37f999c4
From Bob Kuehne, change on __DARWIN_OSX__ define to __APPLE__
2004-03-08 11:02:05 +00:00
Robert Osfield
4aa7afedf3
Removed include <iostream> where possible, replacing with istream or ostream and changing
...
std::cout/cerr to osg::notify().
2004-03-03 13:27:21 +00:00
Robert Osfield
f5e2f7c731
Added atan2f to the list of #define's into include/osg/Math.
2004-02-02 08:55:17 +00:00
Don BURNS
15f88f35b2
*** empty log message ***
2003-06-24 15:40:09 +00:00
Robert Osfield
559f5f93e5
Added an osg::absolute template function into osg/Math.
2003-04-08 09:42:03 +00:00
Robert Osfield
7877c55770
Implemented an osg::minimum and osg::maximum template functions to replace
...
the std::min/max functions previously used in parts of the osg, since the
std::min/max methods do not seem implemented under IRIX.
2003-02-24 12:02:00 +00:00
Robert Osfield
48bda9cc79
Added new Copyright/License notice to header and source files.
2003-01-21 16:45:36 +00:00
Robert Osfield
a4404a388d
Fixes for Cywin gcc3.x build in GL and Math headers.
...
Fix for VS build in osgshadowtexture.
2002-12-04 17:34:52 +00:00
Robert Osfield
aca6c3c4f9
Added #define DARWIN_OSX_PRE_10_2 and related #ifdef checks to cope with backwards compatiblity
...
with versions of OSX before 10.2.
2002-11-08 12:26:41 +00:00
Robert Osfield
5db3229b5f
Updates to Math for OSX build.
...
Added 3dmodelworld.com to the data source directory.
Fixed compile problem under VC6.0 in osgimpostor.
2002-11-08 10:25:08 +00:00
Robert Osfield
ee93b70033
From Pavel Moloshtan, fixes for Mingw32 build.
2002-09-12 20:30:41 +00:00
Robert Osfield
cf9e9e2b5b
Fixes to Math for MacOSX build.
...
Converted TextureCubeMap to unix file endings.
2002-08-30 15:32:59 +00:00
Robert Osfield
59a5e800fe
Moved #define's for OpenGL1.2 image formats into the include/osg/Image header
...
to allow compilation of the rgb plugin under Windows with its 1.1 OGL headers.
Added float.h to Math's compile path for VS7 compilation.
2002-08-26 13:04:43 +00:00
Robert Osfield
9e3a282429
Added guard to prevent VS7 builds using the #defines for cosf etc.
2002-08-24 21:12:51 +00:00
Robert Osfield
6d690740a6
Mods for HP-UX port.
2002-07-23 15:01:51 +00:00
Robert Osfield
80afddc08d
Checked in Tino Schwarze's port to HP-UX.
2002-07-23 10:48:22 +00:00
Robert Osfield
3a964a6b93
Updated docs and added osgGA
2002-07-16 20:07:32 +00:00
Robert Osfield
3700e7e2cd
Reimplemted the osgUtil::SceneView::setCalcNearFar() functionality to bring
...
it inline with the CullStack/CullVisitor implementation. Also added the
setSmallFeatureCullingPixelSize() method and wired them up inside
SceneView.cpp so they set the corresponding CullVisitor paramters.
Intergrated pfImage copying change in the Performer plugin, submission sent in by Ulrich Hertlein
2002-07-02 19:53:18 +00:00
Robert Osfield
156a9fbaea
Fixes for Visual .NET and Mingw builds, and fix MacOSX notify() crash.
2002-06-15 20:57:50 +00:00
Robert Osfield
52c36dde70
Added computation of occluders volume scaled relative to the frustum volume,
...
all volumes computed in eye coords.
2002-06-15 12:14:42 +00:00
Robert Osfield
f16a539492
Fixes for warnings under VisualStudio
2002-05-29 19:34:01 +00:00
Robert Osfield
b8d8a8be27
Added osg::State::getCurrentMode and osg::State::getCurrentAttribute().
...
Aded osg::clampAbove(..) and osg::clampBelow() template functions to
include/osg/Math.
2002-05-21 08:59:26 +00:00
Robert Osfield
567989839a
Added new template versions of a commonly used maths functions.
2002-05-13 21:19:42 +00:00
Robert Osfield
1131be56dc
Fixes for Max OSX build from Bob Kuehne.
2002-04-19 16:22:25 +00:00
Robert Osfield
06fcd12598
Fixes for MacOSX build.
2002-03-25 19:04:30 +00:00
Don BURNS
eb0587b5fb
Changes required for SUN Solaris port...
2002-03-18 21:56:00 +00:00
Robert Osfield
e80496d5db
Changed Texture so that is use lazy updating on texture paramters (Filter/Wrap)
...
mode by using a _texParamtersDirty flag in combination with an
applyTexParamters(State&) method which does the paramters setting in one
tidy bundle. This new implementations replaces the CompileFlags submitted
yesterday.
Simplified NodeCallback by remove osg::NodeCallback::Requirements as they
are no longer needed.
Fixed comments in Drawable.
Put guards around cosf definations so that they are only used under Win32/Mac.
Fixed warning in CullVisitor.
2002-03-14 16:01:21 +00:00
Robert Osfield
00e91eec1d
Add support for Metrowerks Codewarrior build under Windows.
2002-02-22 17:12:10 +00:00
Robert Osfield
0c1264f547
Fixed the fabsf define which was eroneous mapped to sqrtf, due to the copy and
...
paste antipattern no doubt.
2002-02-13 22:52:07 +00:00
Robert Osfield
ed45cccc25
Fixes for cygwin and mingw builds.
2002-02-09 10:24:39 +00:00
Robert Osfield
d12a726d5b
Various investigations into culling errors w.r.t matrix inversion resulted in
...
the conclusion that the osg::Matrix::inverse was broken, have lifted a new
implementation from sgl and it seems to work fine. Will need further testing
but looks good.
2002-02-07 01:15:15 +00:00
Robert Osfield
c1283c23e8
Removed the trailing ; after namespace {...} declariations in headers
...
which was being picked as a warning under Codewarrior.
2002-02-03 12:33:41 +00:00
Robert Osfield
4d43f83295
Removed the M_PI defines from include/osg/Math and have use a const double osg::PI etc
...
in its place.
2002-01-30 15:27:45 +00:00
Robert Osfield
58f72ee2d7
Changes to fix compilation problems on the Sparc.
...
GeoSet.cpp simply remove rendundent code that had already been commented out.
2002-01-18 22:34:07 +00:00
Robert Osfield
d20c2795d1
Removed the global scope operators for the isnan(..) etc calls to fix compilation
...
under some compiler combinations.
2002-01-18 14:12:36 +00:00
Robert Osfield
e3ad8a87ee
Updates for Cygwin port, from Norman Vine.
2002-01-03 21:34:57 +00:00
Robert Osfield
6070a9e1b1
Updatedwidley used includes to remove most of the float/double warnings
...
generated when compiling under Windows with STLport.
2001-12-14 18:06:34 +00:00
Robert Osfield
f848c54ba3
Made the following name changes to Matrix and Quat to clean them up and make
...
the functionality clear given the name. This will break user code unfortunately
so please be away of the following mapping.
osg::Matrix::makeTrans(..)?\026 -> osg::Matrix::makeTranslate(..)
osg::Matrix::makeRot(..)?\026 -> osg::Matrix::makeRotate(..)
osg::Matrix::trans(..)?\026 -> osg::Matrix::translate(..)
osg::Quat::makeRot(..)?\026 -> osg::Quat::makeRotate(..)
Also updated the rest of the OSG distribution to use the new names, and
have removed the old deprecated Matrix methods too.
2001-12-12 20:29:10 +00:00
Robert Osfield
2c3b927d6c
Fixed compilation problem under Wndows
2001-11-14 15:32:15 +00:00
Robert Osfield
a434abafd7
Fixes for IRIX build.
...
Updates to the osg::Transform, adding preMult and postMult methods and
deprecating the old preRotate,preTranslate,preScale.
Updated the rest of the OSG so that it nolonger uses the deprecated
osg::Transform nodes.
Renamed osgUtil::SceneView::setGlobalState() to
osgUtil::SceneView::setGlobalStateSet() so that the name reflects its
functionality better. Updated osgGLUT::Viewer etc to cope with new
name change.
2001-11-14 14:09:07 +00:00
Robert Osfield
138a5300b0
Fixed inlcude/Math to compile under Windows.
2001-11-06 11:07:43 +00:00
Robert Osfield
5e6153b428
Added methods to support isNaN,isInfinte and valid to osg::Vec* and osg::Math,
...
and added a guard to IntersectVisitor which uses these new methods to prevent
invalid segments being added.
2001-11-06 10:34:51 +00:00
Robert Osfield
3da57d6d22
Added a osg::DegreesToRadians() and osg::RadiansToDegrees() method to osg/Math,
...
updated the ReaderWriterBMP.cpp (mods sent in my Geoff Michel) and
moved the osgUtil::Statistics to osg::Statistics in preperation to adding it
to the the Drawable base class.
2001-10-06 20:29:42 +00:00
Robert Osfield
9917b6500d
Added a copyright notice to all core headers, which all begin with
...
//C++ header to help scripts and editors pick up the fact that the
file is a header file.
2001-10-04 15:12:57 +00:00
Robert Osfield
2c6e85442b
Integrated changes for MacOSX, submitted by Phil Atkin, with small mods by
...
Robert Osfield to maintain compatability under Linux.
2001-10-03 21:44:07 +00:00