Commit Graph

  • 7f546320dd sgv is almost working Bryan THRALL 2001-10-25 00:45:33 +00:00
  • 0551da3613 Completed work on osgText compilation under Win32. We now have fonts under Wndows and Linux :-) Robert Osfield 2001-10-24 23:15:15 +00:00
  • e96a17564f Updates to the visual studio files for osgText. Robert Osfield 2001-10-24 22:29:38 +00:00
  • 939b12a908 Updates of osgDB/FileUtils to fix compilation problems under Win32 Robert Osfield 2001-10-24 19:48:58 +00:00
  • 573f68c35b Updates to osgText. Robert Osfield 2001-10-24 13:46:58 +00:00
  • a30a4132b8 Updates to osgText and osgDB so that the loading of text fonts can use osgDB::findFile() to locate font files from the OSGFILEPATH environmental variable. Robert Osfield 2001-10-24 12:53:27 +00:00
  • 5853215f1c Updated FTGL version to 1.0 and removed a couple of warnings in the osgText demo. Robert Osfield 2001-10-24 09:41:42 +00:00
  • 6ddb40ba70 Updated the osgText implemention, now works under Linux. Robert Osfield 2001-10-24 09:08:02 +00:00
  • 12826653b1 Added stat.c Don BURNS 2001-10-23 23:23:51 +00:00
  • 72796127c1 One last change needed to makedefs.linux to sync Linux and Irix pfb loader Don BURNS 2001-10-23 23:15:40 +00:00
  • 49b7219058 Fixed pfb loader functionality for IRIX Don BURNS 2001-10-23 23:10:47 +00:00
  • 6316d19df8 Fixed pfb loader so that it works for both Linux and IRix with dynamic libraries, and provides support to load (almost) all that Performer loads. Don BURNS 2001-10-23 22:59:54 +00:00
  • a4e26d447b Further work on getting osgText compiling. Robert Osfield 2001-10-23 22:28:41 +00:00
  • b90a734810 Removed old .cc versions of FT font code. Robert Osfield 2001-10-23 22:12:07 +00:00
  • 9d73c2d22d Adding in new .cpp versions of FT font code. Robert Osfield 2001-10-23 22:09:21 +00:00
  • 36d206f40f Updates to the new osgText library to get it to compile under Linux. Robert Osfield 2001-10-23 22:08:02 +00:00
  • 74cdfb9510 Converted FTGL files from mac style return to unix style. Robert Osfield 2001-10-23 20:04:48 +00:00
  • 8e1b1bcfc1 First past integrat of Max Rhiener work on wrapping FTGL to create osgText library and demo. Robert Osfield 2001-10-23 19:51:39 +00:00
  • 63bb05e6fd Added new osgGLUT::Window base class which is very basic right now, all it does is bring up a GLUT window and provide virtual functions from which users should subclass to add functionality. Robert Osfield 2001-10-23 15:55:01 +00:00
  • 25c8b05914 Integrated Geoff Michel's updates to Stats code, whilest move all text rendering back in the viewer from the Statistics header. Robert Osfield 2001-10-22 22:02:47 +00:00
  • aac507e119 Moved all #include "osg/.." references to #include <osg/..> to aid port to MacOS. Robert Osfield 2001-10-21 21:27:40 +00:00
  • 7082abb8ad Added support for an osgUtil::SceneView::init() traversal which is called once per scene view. The user can attach a NodeVisitor to do init for them, or leave it to the default which is to use the osgUtil::DisplayListVisitor which compiles all display lists and texture objects. The init traversal is called automatically by the first call to either app() or cull(), so should not be called by user code during initialization. This ensures that a valid graphics context has been established before OpenGL is initialized. Robert Osfield 2001-10-20 20:26:36 +00:00
  • 489ef2d035 Added #ifdef to Performer ReaderWriterPFB so that pfdLoadFile is used under IRIX and pfdLoadFile_pfb is used under Linux. Robert Osfield 2001-10-20 09:48:22 +00:00
  • 067619d1fb Removed Lighting.cpp from repository, it is nolonger used and was just hanging around erroneously. Robert Osfield 2001-10-19 15:53:59 +00:00
  • 20e5751a4a Updated the osgUtil::Optimize so that the call to Optimize::StateVisitor is #ifdef out under Win32 and STL port isn't being used. This prevents crashes due to MS's flacky STL implementation. Robert Osfield 2001-10-19 15:30:54 +00:00
  • ccc3d3fd8a Added osgUtil::Optimizer which contains four visitor each designed for doing different types of optimization on the scene graph - state optimization, flattening static transforms, combining LOD's and removing redundent groups. The new Optimizer replaces the once seperate OptimizerStateVisitor. Robert Osfield 2001-10-19 14:22:02 +00:00
  • 54d490e24b Added support for specifying whether view frustum and small feature culling should be applied to a node or its child with the new osg::Node::setCullingActive() flag. A mechanism has been implemented so that if child has its culling disabled then their parents, all the way up to the root are also have their culling implicitly disabled. Robert Osfield 2001-10-19 12:56:37 +00:00
  • e467f44575 Fixed static libraries in madefs.linux and error in ReaderWriterPFB.cpp Don BURNS 2001-10-17 22:17:23 +00:00
  • d21a27a0d7 Update the tree to my version of the project file (I thought it was already in) - Hang glide demo works - sgv is still being fixed Bryan THRALL 2001-10-16 22:30:04 +00:00
  • 60d33f91f8 Reverted Bryan's changes to FrameStamp w.r.t std::tm structure which doesn't compile under Win32 and IRIX. Will need to find another solution. Robert Osfield 2001-10-16 21:47:47 +00:00
  • 557e2d8faa This was the old project file. It's no longer used. Bryan THRALL 2001-10-16 21:32:57 +00:00
  • a203a1b127 *** empty log message *** Bryan THRALL 2001-10-16 20:56:46 +00:00
  • 2ce6cdd6b2 Fixes for IRIX build - submitted by Randall Hopper. Robert Osfield 2001-10-16 18:39:57 +00:00
  • ada36c3462 Fixes for Win32 compilation. Robert Osfield 2001-10-16 16:48:19 +00:00
  • 8aefce4524 Fixed then normal smoothing function in the .3ds loader and the osgUtil::SmoothingVisitor so that unused normals at left at 0,0,0 insead of being normalized, which results in (nan,nan,nan). Robert Osfield 2001-10-16 15:03:10 +00:00
  • 0bce843960 Completed implementation of a the new CombineLODsVisitor, ideal for use with the .flt loader. Code is stuff currently in sgv, but will be moved out once more testing has been done. Robert Osfield 2001-10-16 14:24:38 +00:00
  • a9564008f3 Added support for transforming LOD and Billboard centers to the OrientationConverter and the flattenTransformVisitor in sgv. Robert Osfield 2001-10-16 10:04:26 +00:00
  • 659f7ad1ab Modified Veiewer.cpp so that when toggling the light with 'l' the light can be overrided to off and overrided to on, previoulsy it only overrided to off. Robert Osfield 2001-10-16 10:03:19 +00:00
  • c0b0ab5d62 Fixed problem caused by ReaderWriterPFB::writeNode(..) not ensuring that the file extension was .pfb. Have added a check. Robert Osfield 2001-10-16 08:24:26 +00:00
  • 747019d0b9 added float *() operator to Vec{2,3,4} so we can pass Vec3's directly to OpenGL glVertex?fv(). Don BURNS 2001-10-16 03:59:37 +00:00
  • de924ca759 Fixes for compilation under IRIX, submitted by Randal Hopper, with mods from Robert. Robert Osfield 2001-10-15 15:50:55 +00:00
  • 5de4e8e6d8 Made the new global state attribute instances in osg::State use osg:ref_ptr to automatically handle the memory deletion. Robert Osfield 2001-10-15 14:29:40 +00:00
  • 59077fed15 Added support for automatic creation of global StateAttributes to osg::State, these global attributes are created by cloning any attributes which are applied during rendering, the clone in a shallow copy, which will set up default valus for that attribute. This should prevent attribute bleed from one stateset to the next when the global StateSet doesn't contain an attribute used within the scene graph. Robert Osfield 2001-10-15 14:07:54 +00:00
  • f27c006e28 Fixed rotations to account to the fixes made to Quat and Matrix related to right hand rule rotation. Robert Osfield 2001-10-15 11:18:51 +00:00
  • 7c54b58306 The writeImage/Object/Node methods in the .osg and .pfb reader/writer didn't have the new ReaderWriter::Options* structure passed to them, which meant the the virtual functions didn't bind with the new base class methods and wern't called on a write. Robert Osfield 2001-10-15 08:40:30 +00:00
  • d66bfdbbc5 Updated pfb loader to load pfb files into osg. Still broken for loading osg files into Performer, however. Don BURNS 2001-10-15 03:32:47 +00:00
  • 06dafa487e Added osgDB::ReaderWriter::Options class to the ReaderWriter base class, support for settings options in osgDB::Registry, and added the paramter to all of the reaader/writer plugins. The Options structure by default has an string attached for packing basic options, however, it also can be subclassed to encapsulate any users defined option data. In the later case both the client code *and* the plugin need to be aware of subclass, the plugin will need to use dynamic_cast<> to assertain its type. Robert Osfield 2001-10-14 17:54:25 +00:00
  • e719569b42 Added OrientationConverter.cpp to the VisualStudio project files for osgconv. Robert Osfield 2001-10-14 16:56:03 +00:00
  • 407978a248 Changed the OrientationConverter.cpp's to have consitent captilization as its associated header file. Robert Osfield 2001-10-14 16:55:12 +00:00
  • 45eefec3f0 Fixed TransformFunctor code so that it now uses the inverse of the transformation matrix to transform the normal. Robert Osfield 2001-10-14 14:23:47 +00:00
  • 6bb865af25 Fixed a bug in Matrix::invert(..) which did not set full_realised=true, so that one Matrices which had not previously be initialized we're erronously initialized later in the code resetting it to identity. Robert Osfield 2001-10-14 14:23:03 +00:00
  • 39ea16aad7 Added osg::StateSet::merge(const StateSet& rhs) merges merges the modes and attributes of rhs into 'this' stateset. Robert Osfield 2001-10-14 09:58:49 +00:00
  • 72dc08cd9a Fixed the Flight and Drive manipulators to work with the updated Matrix::rotate code. Robert Osfield 2001-10-14 09:57:33 +00:00
  • 3ecaf3cd6c Fixed a small boo-boo in definition of bit masks in include/osg/Drawable Don BURNS 2001-10-14 06:01:31 +00:00
  • a170b06d6d Mr. O added fancy, shmanzy C++ code, but broke normal transform functionality Fixed. Don BURNS 2001-10-14 05:33:36 +00:00
  • 0e8c2ef89b Quick 'n dirty fix to TrackballManipulator to get the rotations doing the right things after the Quat fixes. Don BURNS 2001-10-14 05:14:37 +00:00
  • e8edf1f6e6 Cleaned up some 'make clobber' issues in root Makefile Don BURNS 2001-10-14 04:50:04 +00:00
  • c6f11afbf6 Quaternions were assigning inverted values during conversion to matricies. This is probably due to an error on the gamasutra web page demonstrating this. It caused left-handed rotations rather than right handed rotations. Should be fixed now. Don BURNS 2001-10-14 04:28:50 +00:00
  • 1e4a0cadf5 Changed the naming and calling convention of the new Drawable::AttributeFunctor and have updated GeoSet to use mutable values for the _numverts etc, allowing osg::GeoSet::computeNumVerts() to be a const operation. osg::GeoSet::getNumVerts is now a const once more, so avoiding compilation problems. Also chaned the new osgconv orientation code to use a Drawable::AttributeFunctor so it can work on other Drawables other than just GeoSets. Robert Osfield 2001-10-13 11:16:10 +00:00
  • a57ab6d121 Added Mr. Osfields dynamic_cast<> and test for validity test. Don BURNS 2001-10-13 09:48:37 +00:00
  • 610358033f backed out right-handed coordinate transform for makeRot(vec3,vec3) in Quat.cpp Don BURNS 2001-10-13 08:34:02 +00:00
  • b993f14cac A few more clean ups Don BURNS 2001-10-13 08:32:11 +00:00
  • d391a6edc3 Cleaned up the usage message Don BURNS 2001-10-13 07:41:54 +00:00
  • 79a992ac72 Updated osgconv to be able to handle orientation swapping. Don BURNS 2001-10-13 07:24:25 +00:00
  • 49982ac835 Changed some routines to produce right-handed rotations. Don BURNS 2001-10-13 06:23:55 +00:00
  • fef731c689 checking files in to move development location Don BURNS 2001-10-13 06:22:49 +00:00
  • 5b3a52547a Removed personal note in Matrix header file Don BURNS 2001-10-13 01:28:33 +00:00
  • 58582998fa Added support for the new AttributeUpdateFunctors. Robert Osfield 2001-10-12 20:06:35 +00:00
  • 9db63dfd5d Added != method to Vec2,Vec3,Vec4 and did further work on the AttributeUpdateFunctors. Robert Osfield 2001-10-12 20:05:55 +00:00
  • cb17e99420 Added include/osg/Math to Makefile TARGET_INCLUDE_FILES and fixed references to _mat in ConvertToPerformer.cpp Don BURNS 2001-10-12 17:45:15 +00:00
  • 96085619ee Added support for DYNAMIC/STATIC osg::Transform types and added new osg::Drawable::getStats and supportsAttributeUpdate(..) and applyAttributeUpdate(...) methods which will be to enable hooks into Drawable subclasses. Robert Osfield 2001-10-10 20:20:14 +00:00
  • 3c5b9c813d Fixed spelling of osg::GeoSet::getNumInterleavedIndices, was missing a 'n'! Robert Osfield 2001-10-10 14:38:12 +00:00
  • a7f0cacc41 Fixed a crash when opening an erroneous test file (reopen.bmp). Robert Osfield 2001-10-09 21:55:47 +00:00
  • b096fdcd20 Updated to fix build problems under MSVC. Robert Osfield 2001-10-09 20:22:52 +00:00
  • ed14eba53a Updated MSVC Workspace files to fix build problems. Robert Osfield 2001-10-09 20:09:27 +00:00
  • 22aef83a8f Updated MSVC Workspace files to fix build problems. Robert Osfield 2001-10-09 20:03:51 +00:00
  • ec3388900d Merged Ben Discoe's clean up of the MSVC files. Robert Osfield 2001-10-09 14:18:47 +00:00
  • 68e63ef750 Merged updates to BMP plugin from Geoff Michel. Also modified a little of the code to fix a crash under Linux, Robert Osfield Robert Osfield 2001-10-09 11:58:13 +00:00
  • 81cd3923c3 Put the makedefs.linux back to default to optimize. Robert Osfield 2001-10-08 19:01:37 +00:00
  • 8df894924c Fixed a recently introduced crash in the flt plugin which was happen when a std::string was be be set with NULL char*. Also added support for stripping the filename from its original path, inside the osgDB::findFile function. Robert Osfield 2001-10-08 15:54:16 +00:00
  • c66557087d Added support for using osgDB::fineFile into the .flt plugin. Robert Osfield 2001-10-08 08:35:06 +00:00
  • 2b85ce5c1c Merged Geoff Michel's udpdates to bmp plugin, and fixed a double fclose bug which was causing a seg fault under Linux. Robert Osfield 2001-10-07 20:10:58 +00:00
  • 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. Robert Osfield 2001-10-06 20:29:42 +00:00
  • c56a1b8c31 Added bmp plugin files, bmp plguin written by Geoff Michel Robert Osfield 2001-10-05 19:55:58 +00:00
  • df362da11b Added bmp osgPlugin, written by Geoff Michel. Robert Osfield 2001-10-05 10:39:27 +00:00
  • c16fe83d0a Fixed a bug in osg::Image::ensureDimensionsArePowerOfTwo() which only scaled dimensions if *both* axis wern't a power of two, have fixed it to rescale if either of the axis arn't a power to two. Robert Osfield 2001-10-05 10:38:16 +00:00
  • e4a20dfecf *** empty log message *** Bryan THRALL 2001-10-05 01:27:54 +00:00
  • 1fc623ad15 Added the Copyright message to the top of osgWX, with Ben Disoe's name as he wrote all the code. Robert Osfield 2001-10-04 16:49:13 +00:00
  • 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. Robert Osfield 2001-10-04 15:12:57 +00:00
  • d5bff10797 Changed the ordering of comparing modes and attributes in osg::StateAttribute::compare() as part of an investigration into state sorting. Robert Osfield 2001-10-04 14:39:24 +00:00
  • d5ed4e2305 Added an implemention of basic state sorting to the RenderBin, but have commented out the sort operation as Peformance benifit is currently negligable, will need to improve on the sort functor to see real benifits. Robert Osfield 2001-10-04 14:35:42 +00:00
  • c614c2f622 Added extra precision to the app,cull and draw timings in the Viewer. Robert Osfield 2001-10-04 14:25:50 +00:00
  • f0bb34c4fe Removed some notify which were only used for debugging of the camera class and are now redudent. Robert Osfield 2001-10-04 14:20:23 +00:00
  • 4be1324b8c Changed the numeric ordering of StateAttributes Types, as part of an investigation into state sorting. Robert Osfield 2001-10-04 14:10:20 +00:00
  • 2c6e85442b Integrated changes for MacOSX, submitted by Phil Atkin, with small mods by Robert Osfield to maintain compatability under Linux. Robert Osfield 2001-10-03 21:44:07 +00:00
  • 1ebddc2af7 Added missing EarthSky.cpp file to osg plguin. Robert Osfield 2001-10-03 07:56:33 +00:00
  • 7a7a26c2ea Added include/osg/EarthSky and src/osg/EarthSky to cvs. Robert Osfield 2001-10-02 15:59:49 +00:00
  • 430c8606e9 Added osg::EarthSky node to the core osg library, and added support for it into osgUtil::SceneView, osg::CullVisitor, osgPlugin/osg and updated the hangglide demo to use the new earth sky node. Robert Osfield 2001-10-02 11:36:14 +00:00
  • fc1fa57275 Added support for osg::StateSet comparison operators and using this new feature added support in osgUtil::OptimizeStateVisitor for removing duplicate StateSet's from the scene graph, previously only duplicated StateAttributes we're removed. Robert Osfield 2001-10-01 23:02:14 +00:00
  • 0d0b33f4b0 Integrated a bug fix to osg::TexMat from Geoff Michel which adds a glMatrixMode( GL_MODELVIEW ); after the setting of the texture matrix. Previously the texture matrix mode could run into normal model view matrix operations which were assuming the defaul of GL_MODELVIEW. Robert Osfield 2001-10-01 12:06:22 +00:00