Commit Graph

2997 Commits

Author SHA1 Message Date
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
Robert Osfield
8cbba9dc00 Improvements to the repojection code so that it can generate RGBA reprojected
data.
2005-05-02 19:42:13 +00:00
Robert Osfield
015c9a9765 Added support for generating RGBA, RGBA-16 and RGBA-compressed texture databases 2005-05-02 14:16:25 +00:00
Robert Osfield
991feca6cc Added support for reading from RGBA source textures 2005-05-02 13:00:17 +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
4e67b2c989 Moved Impostor from osg to osgSim .osg plugin 2005-05-01 21:33:12 +00:00
Robert Osfield
e10b9a74d4 Added include<osg/AlphaFunc> for OSX build 2005-05-01 20:56:44 +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
7de1265059 From Don Tidrow, spelling fixes 2005-05-01 10:34:48 +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
81f60233a9 From Geoff Michel :
ac3d loader - better sharing of states between objects and Roger James' bug fix for missing normals.

  Tesselator.cpp - faster processing of polygon tesselation for single triangles (which dont need to be tesselated)

  osgtesselate.cpp - added wrap for texture so that appearance is as originally. Default texture behaviour has changed to clamp."
2005-04-30 13:54:21 +00:00
Robert Osfield
67baa30218 Combine LOD fixed properly this time :) 2005-04-30 07:25:15 +00:00
Robert Osfield
bf03f094c2 fixed combined LOD bug 2005-04-30 07:22:56 +00:00
Robert Osfield
a5fcddc5e5 From Mike Weiblen, Progra/Shader fixes 2005-04-30 07:02:02 +00:00
Robert Osfield
7d69b5e562 Updated wrappers 2005-04-29 20:57:04 +00:00
Robert Osfield
7117ff4bd3 Added support for controlling the frequency of checking for OpenGL errors
via:

        enum CheckForGLErrors
        {
            /** NEVER_CHECK_GL_ERRORS hints that OpenGL need not be checked for, this
                is the fastest option since checking for errors does incurr a small overhead.*/
            NEVER_CHECK_GL_ERRORS,
            /** ONCE_PER_FRAME means that OpenGl errors will be checked for once per
                frame, the overhead is still small, but at least OpenGL errors that are occurring
                will be caught, the reporting isn't fine grained enough for debugging purposes.*/
            ONCE_PER_FRAME,
            /** ONCE_PER_ATTRIBUTE means that OpenGL errors will be checked for after
                every attribute is applied, allow errors to be directly associated with
                particular operations which makes debugging much easier.*/
            ONCE_PER_ATTRIBUTE
        };

        /** Set whether and how often OpenGL errors should be checked for.*/
        void setCheckForGLErrors(CheckForGLErrors check) { _checkGLErrors = check; }

        /** Get whether and how often OpenGL errors should be checked for.*/
        CheckForGLErrors getCheckForGLErrors() const { return _checkGLErrors; }
2005-04-29 20:56:20 +00:00
Robert Osfield
68032dafc8 Commented out notify messages to prevent crash under OSX at start up. 2005-04-29 13:30:59 +00:00
Robert Osfield
f2d696f871 Moved osgIntrospection across to standard OSG coding style. 2005-04-29 11:19:58 +00:00
Robert Osfield
af13199e05 Added Copyright 2005-04-29 10:06:50 +00:00
Robert Osfield
6b5238c294 Moved osgParticle across to standard OSG coding style. 2005-04-29 09:47:57 +00:00
Robert Osfield
98126f1706 Moved to standard OSG coding style. 2005-04-29 06:32:13 +00:00
Robert Osfield
178a0b5c7e Reduced the verboseness of the notifaction messages 2005-04-28 19:50:07 +00:00
Robert Osfield
bf13c8ca14 Changed the default texture size to 512x512 to reduce the number of textures
required when rendering text.
2005-04-28 19:24:09 +00:00
Robert Osfield
84aef32552 Removed old LUMINANCE_ALPHA code pathways since they are no longer used. 2005-04-28 19:08:44 +00:00
Robert Osfield
10607dd690 Added proper handling of freeing of font implememtation either when unloading
the freetype plugin or deleting osgText::Font first.
2005-04-28 18:55:08 +00:00
Robert Osfield
7f3d46e110 Added check to see if autoTransformCache had been initialized before
using it in the computeBound.
2005-04-28 05:58:20 +00:00
Robert Osfield
30d20fcf55 From Farshid Lashkari, removed redundent fusion distance calculations from computeRightEyeProjectionImplementation and
computeLeftEyeProjectionImplementation methods.
2005-04-28 05:21:27 +00:00
Robert Osfield
968f54b5db From Ruben, fix for PIV executation by disabling MMXEXT selection. 2005-04-26 20:35:53 +00:00
Robert Osfield
a47a6a4886 Added $(GL_LIBS) to link line to get things linking ok under OSX. 2005-04-26 18:55:51 +00:00
Robert Osfield
63c81a3539 Updated wrappers. 2005-04-26 14:29:25 +00:00
Robert Osfield
a1bda0dab8 Added support for per context extension string.
Note, this required adding a unsigned int context ID to the osg::isGLUExtensionSupported(,)
and osg::isGLExtensionSupported(,) functions.  This may require reimplementation
of end user code to accomodate the new calling convention.
2005-04-26 13:15:27 +00:00
Robert Osfield
59ebf86dd0 Added #include <algorithm> for VS.NET build 2005-04-26 11:20:19 +00:00
Robert Osfield
3c90a5f694 Added support notification of Drawable parents of StateSet that event/update callbacks have been called. 2005-04-26 09:58:19 +00:00
Robert Osfield
38bf740ef4 From Vivek Rajan, "osg::Text was getting stretched when the CharacterSizeMode was set to
SCREEN_COORDS and the SceneView's projection matrix was set to an
Ortho2D matrix (sceneView->setProjectionMatrixAsOrtho2D(-1,1,-1,1)).

Computing the pixel size separately vertically and horizontally, and
setting the scaling factors appropriately based on that fixed the
problem."
2005-04-26 07:49:18 +00:00
Robert Osfield
edf142222b Updated wrappers using Marco Jez's genwrapper utility. 2005-04-25 20:46:46 +00:00
Robert Osfield
fa996d0745 From Mike Weiblen, added support for --clear-color r,g,b,a and --clear-color r,g,b
to osgProducer::Viewer.
2005-04-25 20:34:23 +00:00
Robert Osfield
baa9af49c4 Reduced the verbosness of debugging messages 2005-04-25 14:28:16 +00:00
Robert Osfield
e24cfa0370 Futher work on supporting update and event callbacks in StateSet, Uniform and StateAttribute 2005-04-25 13:37:12 +00:00
Robert Osfield
78f88247f8 Added SINGLE_THREADED_KEYBOARDMOUSE pathway as a means of testing
exit issues.
2005-04-25 13:27:56 +00:00
Robert Osfield
bc83e63bb4 Futher work on adding event and update callbacks to StateSet, Uniform and StateAttributes 2005-04-25 11:05:02 +00:00
Robert Osfield
193c83cb9c Added ParentList's into StateSet, Uniform and StateAttribute in preparation for
providing update and event handling.
2005-04-24 21:04:54 +00:00
Robert Osfield
4262366f62 Added THREAD_ infront of PRIORITY_MIN settings to reflect changes to OpentThreads 2005-04-24 19:30:01 +00:00
Robert Osfield
0d9887462a Added MergeGeometryVisitor::setTargetMaximumNumberOfVertices(uint); 2005-04-23 16:09:20 +00:00
Robert Osfield
f91efb7f31 Added missing bodes of Uniform::operator = and setEvent/UpdateCallback in StateSet. 2005-04-23 10:41:30 +00:00
Robert Osfield
57c87d644a Added support for using TextureRectangle in --move support in readNodeFile 2005-04-23 10:31:52 +00:00
Robert Osfield
819d2c6c56 Preliminary steps to adding update and event callbacks to StateSet, StateAttribute
and Uniform.
2005-04-22 22:45:39 +00:00
Robert Osfield
b35ded6fb9 Improved handling of unsupported file formats. 2005-04-22 15:44:03 +00:00
Robert Osfield
2914f7c342 Improved handling of invalid imagery in BufferObject 2005-04-22 15:43:34 +00:00
Robert Osfield
bba76cfa31 From Tree, removed dependency on Producer 2005-04-22 14:40:06 +00:00
Robert Osfield
bf317d9cea Removed ViewPoint.h and .cpp from the ive plugin 2005-04-22 13:47:54 +00:00
Robert Osfield
483242c9db Cleaned up the xine plugin to better handle unsupported video files. 2005-04-22 13:32:46 +00:00
Robert Osfield
8b4f9dce60 From Mike Weiblen, added support for samplers and mat4 to .osg 2005-04-22 07:13:50 +00:00
Robert Osfield
7f2ab883f5 Added initialize of version number 2005-04-21 21:07:27 +00:00
Robert Osfield
7182713dcf From Garrat Potts, fixed face memory leak in FreTypeFont destructor. 2005-04-21 21:05:48 +00:00
Robert Osfield
496227d239 From Mike Weiblen, removed Uniform not quite ready notice,
and added .h files into osgshaders project file.
2005-04-20 18:50:50 +00:00
Robert Osfield
e2a85f6bc6 From Brede Johnansen, adding support for EXT, ARB and GL version 1.4 point parameters. 2005-04-20 12:32:43 +00:00
Robert Osfield
3ab9867264 Removed increment of the cursor position by the bearing value in the compute
last character code as this should not be used when moving the cursor.
2005-04-20 09:55:24 +00:00
Robert Osfield
06dc3ebb34 From Reinhard Sainitzer, bug fix, added missing break; 2005-04-19 07:37:59 +00:00
Robert Osfield
b699c8e9ab Further work on uniforms support in .osg 2005-04-18 13:36:10 +00:00
Robert Osfield
59ec503fc9 Added more complete support for writing out data of Uniforms 2005-04-18 13:29:59 +00:00
Robert Osfield
648677ce44 Added next stage of support for osg::Uniform in .osg plugin 2005-04-18 12:34:28 +00:00
Robert Osfield
0a995f8093 Removed mpeg plugin from CVS, now moved to the Community section of
openscenegraph.org as a seperate project.
2005-04-18 09:17:56 +00:00
Robert Osfield
6a22af590a Fixed warnings. 2005-04-17 19:10:32 +00:00
Robert Osfield
000e5f8d10 Changed the animation on default to false, so things only move if you ask them to. 2005-04-17 11:35:26 +00:00
Robert Osfield
6017b810eb From Marco Jez, osgWrappers updates to latest changes in core osg. 2005-04-17 11:30:33 +00:00
Robert Osfield
88e8477cbf Moved istream/ostream includes out of Vec3f, and reimpleted osg::Matrix*::compare. 2005-04-17 10:41:23 +00:00
Robert Osfield
20f26ee011 Fixed wrapping of text string to allow internal "" strings 2005-04-16 10:18:56 +00:00
Robert Osfield
1525a00e1f From Mike Weiblen,added debug info to osg::Program and changed shader uniform names to
avoid conflict with built in functions
2005-04-16 10:11:18 +00:00
Don BURNS
a676f67337 CHanged line 101 in PageLOD.cpp to read
if ( in->getVersion() >= VERSION_0006 ) {
              setDatabasePath(in->readString());
          }

instead of
              if ( in->getVersion() > VERSION_0006 ) {
              setDatabasePath(in->readString());
          }

Seems DatabasePath _is_ present in ive files of version 6.
2005-04-16 04:00:18 +00:00
Robert Osfield
f4be038d46 Moved Plane and Quat << operators into the io_utils headers 2005-04-15 20:59:24 +00:00
Robert Osfield
47a2b3aa23 From Paul de Repentinguy, DXF loader plugin. Ported to Linux by Robert Osfield. 2005-04-15 20:39:06 +00:00
Robert Osfield
08f593a54b From Joran Jessurun, Added setting of original node mask to flatten transforms 2005-04-15 20:11:50 +00:00
Robert Osfield
066c829768 Added setValue and setSwitchSet methods 2005-04-15 20:05:30 +00:00
Robert Osfield
e67ed01612 From Mike Weiblen, fix for Win32 build 2005-04-15 18:28:44 +00:00
Robert Osfield
78577e1aa6 In the ldexp(,) call removed the /256.0f by replacing it with a -8 on the exponent. 2005-04-15 09:56:28 +00:00
Robert Osfield
0503712fe4 Removed osgGL2 from CVS, osgGL2 now can be found on the Community/NodeKits section on the OSG website. 2005-04-15 08:35:06 +00:00
Robert Osfield
678b22ce83 Updated Copyright notices to 1998-2005. 2005-04-14 21:41:28 +00:00
Robert Osfield
25d1fa2e2c Changed uint for unsigned int. 2005-04-14 20:34:59 +00:00
Robert Osfield
086efcdff1 Removed setProgram from osg::StateSet as Program works just fine right now
as a standard osg::StateAttribute and set in a StateSet with setAttribute.
2005-04-14 15:53:28 +00:00
Robert Osfield
16c55531da Preparation for moving osgGL2 out of the core OSG into its own seperate distribution. 2005-04-14 11:28:23 +00:00
Robert Osfield
6b86d2d70d From Joson Daly, fix for forward/backward/swing animation handling both 15.8 and
versions prior to 15.8, and...

" Here's another fix for OpenFlight.  The symptom was that ATTR files were
not being read correctly, and the TexEnv on a texture that should have
been set to DECAL was instead defaulting to MODULATE.  The cause is that
the ATTR reader cannot tell by itself what version it's reading (the
version information isn't present in the ATTR files), and instead relies
on the ReaderWriter::Options passed in to get the OpenFlight version.

My change clones the current ReaderWriter::Options and prepends the
appropriate FLT_VER option before the ReaderWriterATTR object is
called.  I also made the parsing of the FLT_VER string and value more
robust in the ReaderWriterATTR itself.  I think I commented things OK,
but let me know if you need me to explain anything."
2005-04-14 07:55:45 +00:00
Robert Osfield
d6d764a729 From Terry Welsh, added copy texture support to TextureRectangle 2005-04-13 18:19:38 +00:00
Robert Osfield
789cb7dea7 Added applying of all parents uniforms 2005-04-13 14:31:25 +00:00
Robert Osfield
0015a31de8 Added basic support for applying uniforms to programs, non lazy state updating
is yet applied though.
2005-04-13 14:12:06 +00:00
Robert Osfield
2e10cffb4d Work in progress on shader language uniform support 2005-04-13 12:00:28 +00:00
Robert Osfield
9c55486746 Added inline to float convertComponent(,) 2005-04-12 08:59:33 +00:00
Robert Osfield
25f738a8ee From Olaf Flebbe, change from powf to ldexp. 2005-04-12 08:55:52 +00:00
Robert Osfield
d268cf46fa Renamed SG_LIBRARY and SG_EXPORT macro's to OSG_LIBRARY and OSG_EXPORT 2005-04-11 17:14:17 +00:00
Robert Osfield
813bb559aa Changed optimization flag to -O instead of -O2 to aid compile speed. 2005-04-11 15:40:30 +00:00
Robert Osfield
4fec031e6c Moved #include <osg/State> from header into .cpp to clean up build. 2005-04-11 15:17:24 +00:00
Robert Osfield
a9270a7c89 Build fix 2005-04-11 15:01:57 +00:00
Robert Osfield
2fb3d9aae5 Fixed warning, and sorted entries in GNUmakefile 2005-04-11 10:12:32 +00:00
Robert Osfield
20882b6b4b From Olaf Flebbe, Fixed cross platform compile error 2005-04-11 07:51:43 +00:00
Robert Osfield
0d8bd24250 Fixed typo 2005-04-09 11:17:12 +00:00
Don BURNS
e3091ac4bd Added check for _last_of for fileName and merged all definitions for socklen_t
to one line.
2005-04-08 19:39:05 +00:00
Robert Osfield
72a0e38ed0 From Stephan Huber, changed fixed string sizes for dynamically allocated ones in OSX file system gets. 2005-04-08 18:46:51 +00:00
Robert Osfield
d52e02aaeb From James French, a tweak with fix a compile problem related to STLport. 2005-04-08 14:44:44 +00:00
Robert Osfield
2ae269c447 From Olad Flebbe, compile fix for HP-UX. 2005-04-08 14:11:15 +00:00
Robert Osfield
b401b97bce From James French, fix to header guard 2005-04-08 14:09:32 +00:00
Robert Osfield
cd8634776d From Stephan Huber (contains Registry.cpp changes from David Guthrie):
"Attached is the new source for the Quicktime-Plugin which adds the
ability to write pictures in various formats (tested: jpg, png, tif,
psd) (24bit + 32bit only, 8bit not tested)

There are changes in the attached osgDB::Registry, which allows osg to
find resources/plugins in the right folders under OS X"

Note, from Robert Osfield, changed the FilePathList* filepath + delete to a
FilePathList filepath to avoid possible memory leaks when expections are thrown/
make it more maintainable.  Also didn't merge the automatic playing of movies.
2005-04-08 13:52:03 +00:00
Robert Osfield
d31cd3dce6 From Mike Weiblen, updates to GL Shadler Language support 2005-04-08 13:10:44 +00:00
Robert Osfield
dd3db860a2 From Carlo Camporesi, add support for text into .ive plugin, tweak by
Robert Osfield to allow font names to be exported correctly with extension
2005-04-08 13:06:14 +00:00
Robert Osfield
7d24d9fdd5 Added #include <algorithm> 2005-04-08 12:22:03 +00:00
Robert Osfield
fed42a46ed Added #include <osg/io_utils> 2005-04-08 09:59:40 +00:00
Robert Osfield
a8d4da8163 Added #include <osg/io_utils> 2005-04-08 09:36:42 +00:00
Robert Osfield
cc47a520ae Added #include <osg/io_utils> 2005-04-08 09:18:15 +00:00
Robert Osfield
3c76c9fd60 Added io_utils include 2005-04-08 09:14:50 +00:00
Robert Osfield
fcab21f9cc Added osg/io_utils include 2005-04-08 09:13:07 +00:00
Robert Osfield
a2974de978 Moved the istream and ostream support from Vec* and Matrix* into a seperate io_utils file. 2005-04-08 09:01:23 +00:00
Robert Osfield
84e8338be1 From Mike Weiblen, "adds sourcefiles for beginnings of .osg fileformat i/o support
> - enhancemens to core GLSL classes to support file i/o"
2005-04-07 20:23:58 +00:00
Robert Osfield
923048fdb6 Warning fixes by Mike Weiblen + Robert Osfield 2005-04-07 20:08:54 +00:00
Robert Osfield
7a27a0bef7 From Marco Jez, improvements to osgIntrospection, and new automatically generated
osgWrappers/osg set.
2005-04-07 20:00:17 +00:00
Robert Osfield
9dd9464638 Fix to compute coordinate frame callback so that it can handle scaled
coordinate frames, rescaling as required.
2005-04-07 16:09:34 +00:00
Robert Osfield
d160b4977b Fixed the MatrixTransform(Matrix&) constructor so that it correct sets _inverseDirty = true; 2005-04-07 15:27:53 +00:00
Robert Osfield
83e21611f6 Fixed sort of sources so that the layer number is taken into account. 2005-04-07 10:55:17 +00:00
Robert Osfield
88d65263ec Fixed layer and levels handling in reprojection of source imagery. 2005-04-07 10:19:47 +00:00
Don BURNS
af3ac699aa Rolled in Olaf's changes for HP-UX build 2005-04-05 19:08:48 +00:00
Robert Osfield
9e5d905b05 Renamed _A and _B to make them more meanigful 2005-04-04 20:25:57 +00:00
Don BURNS
ed0f780321 Removed annoying "Can't find the ground" message 2005-04-04 18:07:27 +00:00
Robert Osfield
56787b4195 Fixed output of MultiTextureControl. 2005-04-04 16:06:28 +00:00
Robert Osfield
5f75f765f0 From Marco Jez, updates to osgIntrospection. 2005-04-04 13:50:07 +00:00
Robert Osfield
816df3a1d0 Fixes for VS6.0 build 2005-04-04 12:24:18 +00:00
Robert Osfield
2e32a7cb78 From Carlo Camporesi,fixed for loop bug 2005-04-04 11:47:50 +00:00
Robert Osfield
ed0200162c From Alberto Farre, nested files bug fix. 2005-04-04 11:22:43 +00:00
Robert Osfield
d9828731d8 From Alberto Farre:
"Here there are fixes for several flt loader problems.

First one was an small bug when root database was an empty string we got a database path "/" instead of "./".
Second one is more complex. Flt loader works in two passes, first one reads flt database and second one builds osg scenegraph. Special care must be taken for properly tracking database path as nested files are entered. Because textures are loaded in second pass, mentioned care should be taken once again. I wrote time ago a piece of code and I placed it in both files fltFile.cpp and flt2osg.cpp. After a long period offline I have seen the portion of code at flt2osg was missing, I just made some tests and I could see it is still required.

Finally, I have seen that pool.cpp always try to make IMAGE cache instead of reading what Options says.

Aditonally, I recently wrote an osg change, now it has external references "a la flt" what is called osg::ProxyNode. As part of the change now flt loader builds external references as ProxyNodes. I made the same mistake like pool.cpp and always made ARCHIVE cache instead of see what Options says, it has also been fixed."
2005-04-04 11:18:02 +00:00
Robert Osfield
aa8dbea11c From Mike Weiblen, updates to Shander Language support 2005-04-04 10:08:15 +00:00
Robert Osfield
2e91a74f14 Added FluidProgram 2005-04-04 10:05:35 +00:00
Robert Osfield
22e446dbc9 Improved ParticleEffects 2005-04-04 07:54:52 +00:00
Robert Osfield
e4580f2028 From Farshid Laskari, addiition of FrontFace support to .ive 2005-03-26 10:04:31 +00:00
Robert Osfield
0123cdbe8f From Waltice (don't have full name at time of submission), added support for 16bit tiff files 2005-03-25 11:17:33 +00:00
Robert Osfield
60cecb8959 Added State::getActiveUnit and usage of it in the glTexCopyImage*() implementations 2005-03-25 11:07:48 +00:00
Robert Osfield
9de5dc38f1 Made the ground intersection warning just output to INFO level. 2005-03-25 11:06:44 +00:00
Robert Osfield
7883574d28 From Mike Weiblen,
"updates for GLSL core integration:
Code compiles and runs on win32.
Basic functionality of Program and Shader in place.
Program derived from StateAttribute.
Uniform value propagation is not yet functional (in development)
Includes some patches by Nathan Cournia.
includes example testcase to demo use of new classes."
2005-03-24 09:37:45 +00:00
Robert Osfield
2ab78cfe38 From Marco Jez, fixed constness of data return type 2005-03-23 21:00:28 +00:00
Robert Osfield
58d60476f0 From Mike Weiblen, " Move update of shader values after shader rebuild opportunity, to ensure uniform
state of shaders is consistent"
2005-03-23 20:31:42 +00:00
Robert Osfield
aee1e88f15 Added extra controls for ParticleEffects. 2005-03-23 17:05:21 +00:00
Robert Osfield
60597f4bbb Fixed the scaling in pixelSize computation and the autoscale usage of it. 2005-03-23 10:46:08 +00:00
Robert Osfield
476a83bb9c Added MatrixManipulator::s/getIntersectTraversalMask(uint) to allow control
of which subgraphs should be used in intersection calculations.  Updated
Terrain,Drive and UFO manipulator to use this new flag.
2005-03-22 21:06:06 +00:00
Robert Osfield
0b2ac40fe8 Moved ParticleSystemUpdater into ParticleEffect nodes to simplify usage
of nodes.
2005-03-22 20:26:45 +00:00
Robert Osfield
1c808e4959 Fixed the double transform of ParticleEffects 2005-03-22 17:00:41 +00:00
Don BURNS
8eb0e8ca88 Added getCameraByName method to viewer 2005-03-21 00:33:37 +00:00
Don BURNS
5d10547ac5 Added getCameraByName method to viewer and home(double currentTime) to
MatrixManipulator, UFO, Trackball and ANimation manipulator.
2005-03-20 23:57:17 +00:00
Robert Osfield
7951be9573 Added support for handling transparent geometries and textures. 2005-03-18 11:21:01 +00:00
Robert Osfield
2e67fee738 updates to reflect changes to StateAttribute::Types 2005-03-18 10:27:49 +00:00
Robert Osfield
667ecd91f1 From Alberto Farre, fixes to ProxyNode. 2005-03-18 10:00:16 +00:00
Robert Osfield
c30141d6be From Mike Weiblen, "minor patches to osgFX consisting of changing from
"state.matrix.modelview[0]" to the equivalent "state.matrix.modelview".
Per ARB_vertex_program, the "[0]" syntax is supported only when
EXT_vertex_weighting or ARB_vertex_blend are supported."
2005-03-18 09:37:46 +00:00
Robert Osfield
d801593d35 Improvements to the handling of textures and texture coords. 2005-03-18 02:45:54 +00:00
Robert Osfield
dd4427d1e3 Made the can't find ground intersection message only appear as INFO. 2005-03-18 02:45:02 +00:00
Robert Osfield
d52f4ea23a Added support for a new IsOperationPermissibleForObjectCallback in osgUtil::Optimizer. 2005-03-18 02:44:08 +00:00
Robert Osfield
8bb4649cd5 Added extra controls into osgDB::DatabasePager for customizing how
much time is allocated to compiling and deleting OpenGL objects, also
added support into osgProducer::OsgSceneHandler.cpp for these new parameters.

The new cotrols are:

    DatabasePager::s/getTargetFrameRate(..)
    DatabasePager::s/getMinimumTimeAvailableForGLCompileAndDeletePerFrame()
    DatabasePager::s/getMaximumNumOfObjectsToCompilePerFrame()
2005-03-17 19:32:09 +00:00
Robert Osfield
6904696573 Added check against node.getName() into isNodeEmpty(Node&) method so that nodes
with names arn't assumed to be empty.
2005-03-17 10:24:22 +00:00
Robert Osfield
4beb385d2d Changed tabs to four spaces 2005-03-14 09:28:31 +00:00
Robert Osfield
8c7f71ef39 Added osgGL2 to .ive list of dependencies 2005-03-13 17:26:52 +00:00
Don BURNS
c332d1f751 Chagned osg::Matrix to osg::Matrixd 2005-03-13 05:02:02 +00:00
Don BURNS
4904c20889 Added M_PI definition for winders 2005-03-12 15:57:44 +00:00
Don BURNS
fce7f24347 Added a few things to osgProducer::Viewer to support UFO manipulator and
cleaned up UFOManipulator.
2005-03-12 05:31:26 +00:00
Robert Osfield
a2e8bc6267 Added support for set/getUniform and set/getProgram into osg::StateSet. 2005-03-11 20:29:21 +00:00
Don BURNS
21c1d64b1c Added methods getCameraManipulatorNameList() and selectCameraManipulatorByName(). 2005-03-11 17:48:01 +00:00
Don BURNS
e001d4ddd6 Added the 'H' - home to usage message 2005-03-11 17:46:34 +00:00
Robert Osfield
cc439f11c7 Improvements to handling smoothing 2005-03-11 09:53:13 +00:00
Don BURNS
fd84431d36 Added UFO Manipulator to Viewer 2005-03-11 06:10:07 +00:00
Don BURNS
a7ac8f5992 Added UFO manipulator 2005-03-11 06:09:16 +00:00
Robert Osfield
537fa6c604 Added null pointer check to avoid crash 2005-03-10 11:11:57 +00:00
Robert Osfield
2d9a4d5fa7 Added support for writing base layer 0 texture into texture layer 1 and above
to use as a background.
2005-03-09 22:01:15 +00:00
Robert Osfield
929601f070 Improvements to MultiTextureControl and texture layer handling in osgTerrain::DataSet. 2005-03-09 20:40:31 +00:00
Robert Osfield
6a103aa413 Added osgFX::MultiTextureControl node for managing blending between
different texture layers.
2005-03-09 16:54:10 +00:00
Robert Osfield
8dc1be6707 Added basic multiple texture layer support into osgTerrain::DataSet. 2005-03-08 16:51:48 +00:00
Robert Osfield
99f80a78f1 From Ruben, added handling of vertex indices.
Note from Robert.  New codes produces errors when running
osgfxbrowser cow.osg so I have elected to keep the original
implementation of compute_basis_vectors around and as the default
compile to keep the CVS version working.  Ruben's new version
of compute_basis_vectors has to be explicitly compiled in by
toggling an #if 1 block to #if 0.
2005-03-07 17:25:30 +00:00
Robert Osfield
7bf72cd43b From Marco Jez, improved Texture2D and Image handling of compare(). 2005-03-07 14:30:55 +00:00
Robert Osfield
b3aba84d54 Added ProxyNode.h 2005-03-07 14:27:34 +00:00
Robert Osfield
c59b28ac3f Added support for event callbacks 2005-03-07 14:16:15 +00:00
Robert Osfield
238341b0da From Sebastien Grignard, added support for reading and writing callbacks 2005-03-07 14:14:35 +00:00
Robert Osfield
5684a130b7 From Alberto Farre, addition of ProxyNode, with support in .osg, .ive and .flt loaders 2005-03-07 14:06:09 +00:00
Robert Osfield
f7f61627a8 Fixed tabbing. 2005-03-07 12:32:58 +00:00
Robert Osfield
8993190ec7 From Marco Jez, "Current version of the LWO plugin creates one Geode with a single Geometry
for each Lighwave surface, in order to keep surface names (geometries can't
have names). The attached fix adds a plugin option named "COMBINE_GEODES"
that allows to place all geometries under a single Geode whenever possible,
thus offering better chances of further optimization through
osgUtil::Optimizer. The downside is that surface names are no longer stored
in the scene graph when using this option."
2005-03-07 12:14:24 +00:00
Robert Osfield
d0c79ea638 From Mike Weiblen, warning fix for VS7.1 2005-03-07 12:05:48 +00:00
Robert Osfield
a139d28a12 Added the use of pixel buffer object in ImageStream so that it is only
compiled in on non OSX platforms.
2005-03-07 12:05:22 +00:00
Robert Osfield
f4b864f37b Added looping 2005-03-07 11:58:41 +00:00
Robert Osfield
dd30c457bd Added checking for video file via normal file path checking and handling of
.xine extension as a special case for XINE style filenames.
2005-03-03 12:40:15 +00:00
Robert Osfield
7fca7456ce Added video aliases to xine plugin 2005-03-03 12:35:07 +00:00
Robert Osfield
c3f40e2e67 Added improved handling of center justificaion of multiline text 2005-03-03 12:33:07 +00:00
Don BURNS
678281f2f2 In osg::isGLUExtensionSupported, fixed gluGetString to call GLU_EXTENSIONS
rather than GL_EXTENSIONS.
2005-03-02 15:06:23 +00:00
Robert Osfield
ce68304f90 Improved support GUIEventHandler's being node event callbacks. 2005-02-25 23:02:23 +00:00
Robert Osfield
4fa830315d Added event callback to Optizimer isNodeEmpty function 2005-02-25 23:01:07 +00:00
Robert Osfield
0f61af08bd Added support for new event visitor type into osgGA and osgProducer::Viewer,
and event callback into Drawable.
2005-02-25 14:02:48 +00:00
Robert Osfield
96514b5077 New simplified timer implementation. 2005-02-25 08:38:05 +00:00
Robert Osfield
79833fa704 Added pause, rewind and play support into xine plugin. 2005-02-24 17:07:37 +00:00
Robert Osfield
5fbb1f11cd From Mike Weiblen, adding prelimimnary GL Shader Language support into core OSG lib.
with renaming and reordering by Robert Osfield,
2005-02-24 13:33:35 +00:00
Robert Osfield
164cb8216c Made Referenced::ref() and unref() inline methods. 2005-02-23 12:50:10 +00:00
Robert Osfield
e2f6dc5bf4 Removed the default play() in the MPEG, QuickTime and Xine plugins, moving
it into the osgmovie application, and into readNodeFile method where
--movie is now available for detecting movie code.
2005-02-22 20:56:56 +00:00
Robert Osfield
e01990d419 Made the osg::Referenced Mutex be declared as a pointer to a Mutex, with the
Mutex allocated dynamically when required. Added the following methods to
help manage the usage of the mutex:

        void setThreadSafeRefUnref(bool threadSafe);

        bool getThreadSafeRefUnref() const;
2005-02-22 20:25:58 +00:00
Robert Osfield
10c3f934f1 Added support for control the pitch of the drive manipulator via the
up and down cursor keys.
2005-02-22 19:19:50 +00:00
Robert Osfield
feb06f7e4b Added improved PBO support. 2005-02-22 13:34:24 +00:00
Robert Osfield
25658ad31f Fixes from Marco Jez. 2005-02-22 11:55:30 +00:00
Robert Osfield
64e6b79340 Changed the Switch::addChild(Node*) behavior so it doesn't override the
any pre-exisitng _values value.
2005-02-22 10:08:01 +00:00
Robert Osfield
21c8924d83 Added support for interpolating low res source data onto higher res destination tiles. 2005-02-21 17:02:44 +00:00
Robert Osfield
1223e4c8ca From Alberto Farre, fix to nested OpenFlight file problem. 2005-02-14 15:17:20 +00:00
Robert Osfield
1b805f7bdb Made conversion use BGRA. 2005-02-13 18:10:05 +00:00
Robert Osfield
912cb9386e Added usage of the new xine_register_plugins() call. 2005-02-13 16:35:52 +00:00
Robert Osfield
5aa2f1e7e7 Disable the MMX usage 2005-02-13 15:07:41 +00:00
Robert Osfield
a9c61ad992 Remerged Tugkan's fix to flatten static transforms. 2005-02-12 19:47:38 +00:00
Robert Osfield
8ff060b840 Put spaitalize groups to end. 2005-02-12 16:49:28 +00:00
Robert Osfield
336612359b From Tugkan Calapoglu, bug fix to FLATTEN_STATIC_TRANSFORMS.
Small tweak of the code to make the comparison against Identity matrix clearer.
2005-02-12 16:24:28 +00:00
Robert Osfield
d5409942ee Fixed spatial groups. 2005-02-11 17:22:55 +00:00
Robert Osfield
0420222ce5 From Sebastien Grignard, fixed memory leak where header and databuffers
wern't deleted.
2005-02-11 10:09:06 +00:00
Robert Osfield
192daa0408 Added support into passing the ReaderWriter::Options structure onto readImageFile 2005-02-11 10:00:50 +00:00
Robert Osfield
6747e6ff1f Removed debugging messages 2005-02-11 09:59:16 +00:00
Robert Osfield
dd0c29d19b Added new utilities for handling different '/' and '\' entries. 2005-02-11 09:58:30 +00:00
Robert Osfield
7282adef2b Removed redundent _nodePath entry. 2005-02-10 21:30:03 +00:00
Robert Osfield
7fb8dfe5ed From Chris Xennon, add support for billboard intersections + fix to addLineSegments.
Small addition from Robert Osfield of setLODSelectionMode(..) to control
the LOD selection behavior.
2005-02-10 21:18:04 +00:00
Robert Osfield
d706e9e795 From Igor Kravtchenko, new HDR plugin. 2005-02-10 20:38:50 +00:00
Robert Osfield
5215d43e14 warning fix 2005-02-10 20:21:01 +00:00
Robert Osfield
eb803a420e Fixed the pixelFormat to be RGBA. 2005-02-10 15:53:19 +00:00
Robert Osfield
ec8624f185 Implemented the osg::Image::isImagTranslucent function. 2005-02-10 15:52:18 +00:00
Robert Osfield
3ce382fd45 Changed the mpeg plugin to read movies the original way up rather than the
OpenGL way up to keep them consistent with the xine and quicktime movie codes
2005-02-09 16:18:44 +00:00
Robert Osfield
e5e2cf2d30 Created local XineImageStream class to ensure xine streams are cleaned up correctly. 2005-02-09 15:31:33 +00:00
Robert Osfield
c842dce38c Added setting of the filename 2005-02-09 14:27:54 +00:00
Robert Osfield
58120d0bc9 Added getenv OSG_XINE_AUDIO_DRIVER to xine plugin to allow users to
set what the default audio to use
2005-02-09 13:22:23 +00:00
Robert Osfield
021440b9a4 Commented out the debug messages, added back in the audio into the xine plugin 2005-02-09 12:29:09 +00:00
Robert Osfield
117c791a3b Added osg::BufferObject and a made a number associated to accomodate this
new class. osg::BufferObject wraps up OpenGL pixel and array buffer objects.
Currently implementation is work in progress.
2005-02-09 10:39:45 +00:00
Robert Osfield
850efd10f1 From Paul Melis, fixed the setFrameStatsMode() method 2005-02-07 20:44:18 +00:00
Robert Osfield
46ce4c3df3 Added the full set of buffer object methods 2005-02-07 17:28:03 +00:00
Robert Osfield
802940aec7 Temporarily added xine video_out_rgb xine-plugin inline to the OSG's xine plugin 2005-02-07 15:00:02 +00:00
Robert Osfield
9b7678138f Changed the LightSource::setReferenceFrame() read code so that it doesn't
enable the culling active flag if its was already set to false.
2005-02-06 10:14:26 +00:00
Robert Osfield
3054a612bd Added prototype xine movie plugin. 2005-02-04 19:34:46 +00:00
Don BURNS
7573cc6036 Added Viewport State Attribute to .osg reader/writer 2005-02-02 22:13:07 +00:00
Robert Osfield
72ff1737f4 Added support for OSG_CAMERA_THREADING env variable which is set to
"SingleThreaded" will ensure that OsgCameraGroup runs singe threaded.
2005-02-01 13:19:34 +00:00
Robert Osfield
e668acce27 Added support for internalTextureMode 2005-02-01 10:38:08 +00:00
Robert Osfield
c3c3ed8519 Added support for 8 parameters. 2005-02-01 09:00:10 +00:00
Robert Osfield
049d2055a5 Moved the template function into the global namespace. 2005-01-27 20:26:51 +00:00
Robert Osfield
9a93d7ae06 Fixes to osg::Image's handling of compressed formats. 2005-01-27 20:18:49 +00:00
Robert Osfield
384e647f56 Fixes for Win32 build 2005-01-27 15:54:10 +00:00
Robert Osfield
355650ac1d From Nicolas Brodu, new faster osg::Quat::makeRotate(Vec3d,Vec3d) implmentation.
From Robert Osfield, modes to osg::Quat to keep the original implmentation around
as makeRotate_original(,) and added tests into osgunittest to test the new
methods provide equivilant results to the original implemementation.  The
orignal implementation will be removed once the new method is more widely tested.
2005-01-27 14:39:58 +00:00
Robert Osfield
8cc0cdb25c Fixed tabbing. 2005-01-27 11:16:03 +00:00