Commit Graph

2931 Commits

Author SHA1 Message Date
Robert Osfield
fee1e75fe0 Changed char* to const char* 2005-05-31 05:47:40 +00:00
Robert Osfield
4d960e9ecd From Tom Jolly, fixes to the mapping of the billboard rotate mode. 2005-05-31 05:46:41 +00:00
Robert Osfield
44b8b0177c Added ability to toggle on/off the pre compile of OpenGL objects in the
DatabasePager via the setDoPreCompile(bool) method or via the env var
OSG_DO_PRE_COMPILE=ON or OFF.
2005-05-31 05:37:13 +00:00
Robert Osfield
ac5ffa2bec Added support for reading:
OSG_MINIMUM_COMPILE_TIME_PER_FRAME <float>

and

   OSG_MAXIMUM_OBJECTS_TO_COMPILE_PER_FRAME <int>

environmental variable during the initialization of the DatabasePager
to allow apps to be tweaked for best database pager behavior.
2005-05-30 16:15:11 +00:00
Robert Osfield
55ba67ab76 From James French, fix for multiple definitionwhen compiling osg + plugins into monolithic dll. 2005-05-26 13:56:23 +00:00
Robert Osfield
6385630407 From Blake Williams, fix for VS8.0 build 2005-05-25 17:19:47 +00:00
Robert Osfield
24849f3c70 Renamed ExplosionDebriEffect to ExplosionDebrisEffect 2005-05-25 16:42:36 +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
40ef0026df Updated doxgen docs. 2005-05-25 11:45:02 +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
e229a8cb67 Updates to clean up wrapper generation, and to update wrappers 2005-05-24 15:34:23 +00:00
Robert Osfield
fcd2f504e6 Added check for an empty compile lists. 2005-05-24 10:46:21 +00:00
Robert Osfield
3ba6ce887b Added re-entrent mutex to serialize access to OpenFlight plugin to prevent
any multi-threaded issues.
2005-05-24 10:37:18 +00:00
Robert Osfield
00c3c5dc61 Tweaked wrappers by hand to get them to compile 2005-05-20 22:15:57 +00:00
Robert Osfield
f609185e03 Updated wrappers. 2005-05-20 21:12:57 +00:00
Robert Osfield
b23d3965df Removed long unused and out of date DX writer plugin from distribution, will now
be placed on the wiki just in case its needed.
2005-05-20 11:33:22 +00:00
Robert Osfield
f6298daae4 Added env var report. 2005-05-20 06:39:41 +00:00
Robert Osfield
276dfbd0ad Added support for setting the default render bin sort mode via the
env OSG_DEFAULT_BIN_SORT_MODE variable or via or RenderBin::setDefaultRenderBinSortMode()
method.
2005-05-19 15:17:53 +00:00
Robert Osfield
b71472e592 From Alberto Farre, added support for caching of ProxyNode children. 2005-05-19 09:22:45 +00:00
Don BURNS
702944b67a Fixed fullscreen toggle in ViewerEventHandler that assumed the first
RenderSurface was a window (not a pbuffer).
2005-05-18 21:45:30 +00:00
Robert Osfield
9e91e1e01b Updated wrappers. 2005-05-18 21:17:31 +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
a83f7a245d From Joakim Simonsson, DOFTransform multiplication order support added to .ive format.
With tweak from Robert Osfield to wrap new read and write with a new version number
     to allow old files contain DOFTransforms to continue to work.
2005-05-18 19:04:35 +00:00
Robert Osfield
2ad67b1727 From Joakim Simonsson:
"DOFAnimation's default state could now be controlled by the RW option.

    The option string is "dofAnimation"

    If the option string is omitted the default animation state is off."
2005-05-18 18:43:03 +00:00
Robert Osfield
51458ceea7 Fixed copy and paste mistakes in setEventCallback methods 2005-05-18 18:31:03 +00:00
Robert Osfield
4645217733 Added RADEON as render type for disabling mipmapped NPO2T 2005-05-17 20:12:13 +00:00
Robert Osfield
5947b97cde Improved the handling of data attached to proxy nodes 2005-05-17 14:25:11 +00:00
Robert Osfield
83d3f7639f Changed the default behavior to not writing out proxynode children. 2005-05-17 13:50:07 +00:00
Robert Osfield
f9bc0454f8 Improved the handling of writing out of proxy node files. 2005-05-17 13:47:13 +00:00
Robert Osfield
9c27121f77 From Daniel Sjölie, for the purpose of maintainability, made the load proxy nodes code the standard, remove the older
code that remained as part of #else #endif blocks, and remove the erroneous
implementation of caching of proxynodes.
2005-05-17 13:34:04 +00:00
Robert Osfield
895ed7916c Updated wrappers. 2005-05-17 11:11:58 +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
cc7bb579b0 From Thom DeCarlo, build fixes for Cygwin. 2005-05-17 09:06:12 +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
428608e781 Warning fixes for IRIX 2005-05-16 15:51:57 +00:00
Robert Osfield
af0abf58ef Updated wrappers 2005-05-16 15:50:35 +00:00
Robert Osfield
fa0f53e2d5 Workaround for Mipspro compiler bug. 2005-05-16 14:09:39 +00:00
Robert Osfield
8a6aaba351 Updated wrappers. 2005-05-16 11:22:25 +00:00
Robert Osfield
10232cf81a Fixed method signatures. 2005-05-16 11:18:11 +00:00
Robert Osfield
74bce0e410 Updated wrappers 2005-05-16 09:41:10 +00:00
Robert Osfield
4f71be21d4 Yet another using namespace osg to try and work out the spat betwen MipsPro and VS.6.0. 2005-05-13 21:39:34 +00:00
Robert Osfield
2f91acdf98 Updated wrappers. 2005-05-13 14:36:42 +00:00
Robert Osfield
3b4636311b Moved BaseOptimizerVisitor out of Optimizer into osgUtil namespace to try and
get round MipsPro compile problems.
2005-05-13 13:29:45 +00:00
Robert Osfield
3a4b09940b Refinement of includes to help IRIX build 2005-05-13 12:06:58 +00:00
Robert Osfield
e82a63ca81 Cross platform build fixes. 2005-05-13 11:11:52 +00:00
Robert Osfield
ec2adb2477 Added #include "dxfBlock.h" 2005-05-13 09:52:17 +00:00
Robert Osfield
cb1f2f4761 Removed unused function. 2005-05-13 08:54:11 +00:00
Robert Osfield
2dc54fc61d fixed warning. 2005-05-12 20:46:12 +00:00
Robert Osfield
ec12a1091b Updated wrappers. 2005-05-12 20:06:39 +00:00
Robert Osfield
a8550e6536 Fixed pairing of write and read of Matrixd 2005-05-12 20:03:55 +00:00
Robert Osfield
a209542c60 Added missing Uniform(Matrixd) constructor implementation 2005-05-12 19:05:33 +00:00
Robert Osfield
d44977490c From Alberto Farre,
"ConvertFromFLT::addMultiTexture makes ENDIAN conversion for SMultiTexture
 struct attributes.
 When an flt object is multi-instantiated y should be done just first time,
 because SMultiTexture struct is always the same, currently is being done for
 each instance.

 Attached file fix the problem but perhaps a more clean fix would be making
 ENDIAN conversion at writing attributes time instead of at reading time. "
2005-05-12 15:51:28 +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
ad2bd31ac8 Added setTextureFileName method. 2005-05-12 08:58:28 +00:00
Robert Osfield
fe384e53c7 Added clear of lazy uniform updating structure on relink, also added debug
output of shader being compiled.
2005-05-12 08:54:11 +00:00
Robert Osfield
8b60ee74d4 Updated wrappers. 2005-05-11 21:36:04 +00:00
Robert Osfield
6abe4c8f8c Updated wrappers 2005-05-11 20:05:51 +00:00
Robert Osfield
bdc7e8b4a9 From Don Tidrow, "I added some code to assign the archive pointer in TXPnode
with the archive that ReaderWriterTXP actually loads.  I also added a
function in TXPArchive to help in manipulating the lightpoints."
2005-05-11 19:34:03 +00:00
Robert Osfield
679c44f4ae Changed the info log so that it output to INFO on success, to WARN when an
error has occured.
2005-05-11 19:32:57 +00:00
Robert Osfield
afb92b2372 Added .osg support for new ParticleEffect::s/getDefaultParticleTemplate. 2005-05-11 16:05:27 +00:00
Robert Osfield
52666a6dee Added support for setting the texture filename and more fine control over
the particle template used in ParticleEffects
2005-05-11 15:26:16 +00:00
Robert Osfield
4c613896ff Fixed compile warning. 2005-05-11 13:40:07 +00:00
Robert Osfield
aa6ea8c047 Completed GLSL support in .ive 2005-05-11 13:37:38 +00:00
Robert Osfield
8d31e75364 Further work on GLSL support in .ive 2005-05-11 11:42:09 +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
d9c50ee7c4 Put in place the class to implement GLSL support in .ive 2005-05-10 20:20:20 +00:00
Robert Osfield
d681d47c72 Moved the infolog to the error handling block and upping its notification
level to WARN to provide better feedback on failure with needing to use
DEBUG notification level.
2005-05-10 18:21:31 +00:00
Robert Osfield
5e0a5b39e0 Added tab to space converted to .obj plugin 2005-05-10 16:13:37 +00:00
Robert Osfield
1afd5e48a7 Added support for PROTECTED and OVERRIDE to uniforms. 2005-05-10 13:56:05 +00:00
Robert Osfield
aa61f87abe From Farshid Lashkari, bumped IVE version number to 9, and added support in Texture for
_borderWidth
    _useHardwareMipMapGeneration
    _unrefImageDataAfterApply
    _clientStorageHint
    _resizeNonPowerOfTwoHint
2005-05-10 10:01:13 +00:00
Robert Osfield
4811adda0a From Farshid Lashkari, and non power of two resize hint support to .osg ascii 2005-05-10 08:07:37 +00:00
Robert Osfield
44c363dd3f Added code to prevent ProxyNode's from been "flattened" by
osgUtil::Optimizer::FlattenStaticTransforms.
2005-05-09 15:29:18 +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
5e23536683 Added osgUtil, osgDB, osgFX, osgParticle, osgSim, osgTerrain, osgGA
and osgProducer to osgWrappers directory.

Enabled the build of osgWrappers/osg, osgWrappers/osgPartile and osgWrappers/osgSim,
but not osgUtil, osgDB, osgFX, osgTerrain, osgGA and osgProducer due to compile
errors.  I am assuming that these compilers are fixable so I'm checked all the
source code so that members of the community can help fix them.
2005-05-09 10:17:56 +00:00
Robert Osfield
a6e8378a72 Removed debug info 2005-05-08 19:21:43 +00:00
Robert Osfield
cf6e081b93 Updated osgWrappers. 2005-05-08 18:37:13 +00:00
Robert Osfield
7d6c90aaa4 Added missing copy of _stereo 2005-05-08 15:24:26 +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
08d5f9f85a From Tim Daoust/Robert Osfield, added Font::releaseGLobjects(State*state=0) to
facilate clean up of scene when a graphics context is deleted/reused.
2005-05-07 09:17:55 +00:00
Robert Osfield
52e036f425 Added handling of sharing of graphics context data which is now supported
by Producer.  You can get the osgProducer::Viewer to share graphics contexts
by using the env var OSG_SHARE_GRAPHICS_CONTEXTS set to ON or OFF i.e.

   setenv OSG_SHARE_GRAPHICS_CONTEXTS ON
2005-05-06 19:44:24 +00:00
Robert Osfield
2ea6de3d0b Made OSX default to using single threaded keyboard mouse. 2005-05-06 14:28:43 +00:00
Robert Osfield
cdab058b32 Added osg_DeltaFrameTime uniform to default set. 2005-05-06 10:32:31 +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
fd9f5c0f43 Fix for OSX build across both Tiger and 10.3.x 2005-05-05 21:21:14 +00:00
Robert Osfield
9534cd8638 Removed rgb alias for Quicktime mapping since the Quicktime is not reliable
at loading all rgb files that the standard OSG rgb reader can read.
2005-05-05 20:05:11 +00:00
Robert Osfield
a44e33795d Removed the defaulting to setting the camera threading model to MultiThreaded,
instead leave it to Producer's defaults.
2005-05-05 14:03:54 +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
a1f23bbccd Fixed bug where the Optimizer::StateVisitor was trying to optimize
non existant StateSet's.
2005-05-04 09:11:32 +00:00
Robert Osfield
1571209a82 Updated wrappers 2005-05-03 22:02:37 +00:00
Robert Osfield
56882a7413 From Alberto Farre, "Missed a FilepathList pop_back line from my last submission.
I have also commented out the option string set with FLT_VER because it
overwrites other option string and I found it redundant and not needed."
2005-05-03 21:53:25 +00:00
Robert Osfield
2a3831ff41 Removed the default compile of single threaded KeyboardMouse 2005-05-03 21:49:21 +00:00
Robert Osfield
97daa561f4 Added support for lazy state updating of uniforms. 2005-05-03 21:46:47 +00:00
Robert Osfield
2bb2d9bb37 From Bob Kuehne, fixes for OSX 10.4 build. 2005-05-03 14:31:01 +00:00
Robert Osfield
003329fd10 Updated wrappers 2005-05-03 10:09:51 +00:00
Robert Osfield
a0ccaf5f95 Removed Impostor.cpp 2005-05-03 06:23:02 +00:00
Robert Osfield
ce902afa7c Fixed TIFF readers handling of interleaved data 2005-05-02 20:00:42 +00:00