Robert Osfield
07f96583f5
Removed the osg::notify() calls from the RenderBin prototype construction to
...
avoid problems under OSX with construction/deletion of std::cout/cerr.
2003-02-10 16:48:53 +00:00
Robert Osfield
fa643c8795
From Geoff Michel, updates to the Geo loader including handling of
...
.geo files from the rc1 of the GEO modeller.
2003-02-10 15:16:51 +00:00
Robert Osfield
1b08b02df2
From Tree, added support for using wchar_t strings with osg::Text/EncodedText.
2003-02-10 15:01:27 +00:00
Robert Osfield
ebb31fb339
Updates from Ulrich for sharing of textures.
2003-02-10 14:47:20 +00:00
Robert Osfield
c3c70c9415
Changed int to GLint for OSX build.
2003-02-10 14:23:31 +00:00
Robert Osfield
c2b4a05825
Minor fixes to ReaderWriter and Paragraph to help work with use of Doxygen.
...
Fix to CullVisior to handle the new no referenced counted cull and draw traversal.
2003-02-10 13:58:39 +00:00
Don BURNS
d4f7da7bb8
Right, em.... fixed eh.. problem with destruction of RenderBin prototype list
2003-02-05 23:13:27 +00:00
Robert Osfield
9cc9b0000b
Fixed infinite loop in osgProducer::CameraGroup::advance().
2003-01-31 23:46:15 +00:00
Robert Osfield
fa70860427
Port of osghangglide to use osg producer. Default build still uses GLUT.
2003-01-31 00:44:56 +00:00
Robert Osfield
4c4735a586
Added FrameStats support into osgProducer lib, and removed them from the
...
osgproducer demo.
Removed the producer config files osgproducer demo.
Added a search the osgDB::DataFilePath for the producer config file.
2003-01-30 23:02:32 +00:00
Robert Osfield
f485304665
Fix for endianess of colour set up of RGBA values.
2003-01-30 21:46:57 +00:00
Robert Osfield
03eee3b700
Fixed warning in osgText
...
Added getBound() to begining of osgProducer::CameraGroup::frame() to ensure
that the parallel cull traversals don't all do a getBound().
Added osgProducer::CameraGroup::getTopMostSceneData() convinience method.
2003-01-30 16:11:39 +00:00
Robert Osfield
787bbef714
From Max, fixes to UniCode support for bitmap fonts.
2003-01-30 01:31:22 +00:00
Robert Osfield
8422040e97
Fixes to osgprerender and osgshadow scene for new cull and draw implemention
...
without use of ref counting.
New StatsEventHandler for osgprerender demo to add keyboard control of stats
output.
2003-01-30 00:34:35 +00:00
Robert Osfield
6439a719aa
Fixed CullVisitor::getDistanceFromEyePoint so that withLODScale is handled
...
correctly.
2003-01-29 17:24:54 +00:00
Robert Osfield
6c4f2f5207
Fixes for multipipe support.
...
Addition of FrameStatsHandler to osgproducer demo to add frame stats.
2003-01-29 17:16:26 +00:00
Don BURNS
cf1ff34d38
Fixes to osgProducer for IRIX build.
2003-01-27 20:40:08 +00:00
Robert Osfield
6d02ccfc58
Removed the inline declarations of several method implementations.
2003-01-24 16:57:28 +00:00
Robert Osfield
31e4185aa6
Added an #ifdef to osgGLUT/Window.cpp to handle the case of compiling against
...
older versions of GLUT.
2003-01-24 15:12:54 +00:00
Robert Osfield
63303787fc
Changes to try and placate the Sun Forte compiler.
2003-01-24 12:39:18 +00:00
Robert Osfield
1ce53fcfba
Changed the setUpViewer so it takes unisigned int to make it easier to
...
do OR'ing of the various enumerates when passing in paramters (avoids a
warning).
2003-01-24 09:37:11 +00:00
Robert Osfield
df21d69666
Fixed the formating of the Matrix output.
2003-01-24 09:35:05 +00:00
Robert Osfield
6eb62b1e30
Added an #ifdef check around the glutSpecialUpFunc to help compile unde old
...
version of GLUT.
2003-01-24 09:34:33 +00:00
Robert Osfield
20ba1a4033
Fix for impostors bug where image insert were visible, this was down to a double
...
call to RenderStage::drawPreRenderStage(). The call to it in RenderStage inside
the draw() method has been removed, leaving on the call in SceneView.
2003-01-24 09:11:05 +00:00
Robert Osfield
f74f50161c
Changed the template insert(,,) method for a std::copy() implemention as it
...
seems that the Sun Forte compiler can't handle member templates!
2003-01-23 22:12:04 +00:00
Robert Osfield
f43d02f496
Added extra checks in the removal of rendundent nodes code so that description
...
fields etc are checked.
2003-01-23 15:12:58 +00:00
Robert Osfield
5a05e14e50
Fix to handling of comment records and longid's.
2003-01-23 14:46:10 +00:00
Robert Osfield
bf41106ce8
Changed the image directory refered to in billboard demo.
...
Updates NEWS.
Changed the line endings in TextureCubeMap to unix endings.
2003-01-23 12:18:22 +00:00
Robert Osfield
a32a392d8d
Tweaking of the osgvertexprogram tex matrix settings.
2003-01-23 12:07:01 +00:00
Robert Osfield
3cdf42e599
Fixed Win32 compile problem.
2003-01-23 10:11:11 +00:00
Robert Osfield
79eaabd961
Fixed typo of APPLY_MATICES_BEFORE_STATE.
2003-01-23 08:39:48 +00:00
Robert Osfield
ecc2f02f0d
Removed eroneous std:: from the from of DisplayListVector.
2003-01-23 08:37:15 +00:00
Robert Osfield
fce55a22ad
Added a couple more #defines for the texture cube maps that one can use.
2003-01-22 23:35:19 +00:00
Robert Osfield
f7439363ea
Added support for a -c option.
2003-01-22 23:34:43 +00:00
Robert Osfield
9aaf5a560b
Changed the implementation of the texture objects and display list to delete
...
caches so that they use a std::vector<> swap on the internal data structures
when ready to delete to minimize the amount of time that a race condition
condition can happen.
2003-01-22 23:34:18 +00:00
Robert Osfield
d6f25a112d
Vertex program update from Brede.
2003-01-22 20:48:10 +00:00
Robert Osfield
6afedcc6d1
Updated version numbers to 0.9.3
2003-01-22 19:17:39 +00:00
Robert Osfield
ec8afe0392
Fixed compute bound code which was applying offset first then rotating, rather
...
than rotating first then offset.
2003-01-22 16:49:05 +00:00
Robert Osfield
fbeae00fa2
Fixed handling of rotations reading from .osg of osg::Shapes.
2003-01-22 16:17:56 +00:00
Robert Osfield
ea35796526
From Daniel Sjölie, support for controlling which viewports are focusable i.e.
...
recive mouse/keyboard events.
2003-01-22 15:44:22 +00:00
Robert Osfield
6fd27a4b59
Clean up to the osgProducer lib and demo.
2003-01-22 15:30:17 +00:00
Robert Osfield
4b671e5023
Fixed remove transform code to work with the new extra paramter require by osgUtil::Optimizer.
2003-01-22 12:50:52 +00:00
Robert Osfield
d2b7340fb5
Changed the decal=true setting to decal=false to make sure that textured models
...
come out lit ok. The makes the assumption that colour values on the objects
and realistic, if they arn't then decal texture can produce better results..
2003-01-22 12:25:04 +00:00
Robert Osfield
329a8a1656
Fixed an Optimizer crash where if the top most node of a model was
...
a static transform it would crash when this root was deleted. Have fixed
by recognising this node as one not to remove and set it to identity instead.
2003-01-22 12:06:22 +00:00
Robert Osfield
1c56ee52a2
Changed the local header includes from <> to "" to help the OSG compile.
2003-01-21 21:02:17 +00:00
Robert Osfield
926394dcb8
Removed debugging messages.
2003-01-21 19:37:45 +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
6cd43acb5a
Made the pre rendering texture using glCopySubImage rather than copy to image
...
and then copy to texture, as the later was no longer working due to
texture->apply ordering.
2003-01-21 16:40:18 +00:00
Robert Osfield
87973523ad
Added gaurds around alpha function value to catch erroneous values before they
...
are passed on to the OSG.
2003-01-21 16:02:29 +00:00
Robert Osfield
ac5c9a6847
Made a new osgproducer demo based on the new osgProducer::Viewer class.
...
Kept the old camera group version around for future reference.
2003-01-21 13:22:13 +00:00
Robert Osfield
128be070ba
Added new osgProducer::Viewer class for putting together simple producer
...
based viewers very quickly.
2003-01-21 13:14:29 +00:00
Robert Osfield
2261b1cc86
From Joseph Steel, addition of texture filter modes to txp plugin.
2003-01-21 09:09:48 +00:00
Robert Osfield
0f69a4c3ae
Made the drawable::compile(State&) method const and the DisplayListVisitor to
...
compile even when dislay list is off. This has been done to allow subclasses
of Drawable handle their own compile implementation, such as used by text.
2003-01-20 20:40:06 +00:00
Robert Osfield
dc83e399a9
Improvements to osgProducer lib, in particular adding a mutex lock to the init() call in
...
SceneView to prevent init running multi-threaded.
2003-01-20 20:33:50 +00:00
Robert Osfield
4de63e72c6
Improvements to the handling of multiple graphics contexts. Still needs alot
...
of work, but at least it isn't crashes in trivial cases right now.
2003-01-20 20:28:28 +00:00
Robert Osfield
7633ffce3c
Removed the ReaderWriterFLY demo since it was causing OSX builds to crash when
...
running the osghangglide demo.
2003-01-20 14:07:27 +00:00
Robert Osfield
5cb765ff25
Clean up to the osgproducer demo.
2003-01-20 11:54:34 +00:00
Robert Osfield
a889cb8f88
Fixed bug in the flight and drive manipulators where they would uncontrollably
...
shrink down to a tiny window size when one rezized the window.
2003-01-20 11:52:34 +00:00
Robert Osfield
f034ca6d74
Fixed osglogo demo so that is correctly set up the colour of the background.
2003-01-20 11:07:41 +00:00
Robert Osfield
c1831b21f7
Made the setting of default glNormal and glColor values an compile
...
option via #ifdef USE_DEFAULT_NORMAL and USE_DEFAULT_COLOR defines respectively.
2003-01-20 11:02:27 +00:00
Robert Osfield
2ac175484a
Updates from Pavel.
...
1. Storing color of geometry in ColorArray e.g. its don't work when
lighting off.
2. Detecting of alpha channel and automatically enabling blending.
2003-01-20 10:41:21 +00:00
Robert Osfield
ec30f7d8a6
Update the ReaderWriterATTR file so that it used the definitions that Joseph
...
Steel obtained from MPI.
Removed the unique child check from the flt::PrimRecord and osg::Group, this
allows more flexibility when specifing nodes, and is faster..
2003-01-20 09:56:09 +00:00
Robert Osfield
3723dcda1d
From Ruben, updates to the IV/VRML1 loader to handler large datasets.
2003-01-20 09:09:46 +00:00
Robert Osfield
c325de6865
Updates to osgProducer, moving the implementation of CameraGroup and
...
SceneHandler into the source directory.
2003-01-20 08:58:32 +00:00
Robert Osfield
08456ecf70
Added osg::State::dirtyAllModes() and dirtyAllAttributes() methods.
2003-01-19 15:28:08 +00:00
Robert Osfield
762db56a40
Improvements to the osgProducer lib to better handle Producer's normalized
...
coord system.
Addition of ReadCameraConfigFile and WriteCameraConfigFile as a tempory
measure for implementing local a C++ read/write of the Producer::CameraConfig, this
will be removed once these implementations or similar have been moved to Producer.
2003-01-18 22:07:59 +00:00
Robert Osfield
13aa469628
Updated the KeyboardMouseCallback so this it takes into account the the new
...
passiveMouseMotion support in Producer.
2003-01-18 10:17:28 +00:00
Robert Osfield
0bc11fcbf1
From Eric Sokolowsky, Fix for IRIX build, adding typename into the graph_array
...
to allow the compiler to leave instation of typedefs until required.
2003-01-18 09:44:12 +00:00
Robert Osfield
eaaf758910
Added KeyboardMouse::allowContinousMouseMotionUpdate(), but commented out right
...
now as Producer crashes when you use it..
2003-01-17 20:05:41 +00:00
Robert Osfield
619862f8d6
Added osgProducer library to the distribution.
...
Cleaned up the osgproducer demo, and made it work with the new osgProducer lib.
2003-01-17 18:34:35 +00:00
Robert Osfield
359e0d9c70
Removed the addition of 0 to the add of the encoded text vector as it is now
...
redundent having added support for the begin,end range into FTFont.
2003-01-17 16:00:09 +00:00
Robert Osfield
a86d519a89
Fixed a bug on the handling of empty EncodedText.
2003-01-17 15:01:27 +00:00
Robert Osfield
f87dc60ddd
Further improvements to the osgproducer demo.
2003-01-17 14:12:46 +00:00
Robert Osfield
c2c38955c6
Added new getCurrentCamaeraManipulator(), and removed and debugging message.
2003-01-17 14:12:25 +00:00
Robert Osfield
c406d2476f
Removed the osg::Referenced::createCount() and deleteCount() methods and
...
associated variables which were only compiled in on debug build. These optional
methods/static vars were causingproblems when mixing debug and release builds.
2003-01-17 14:11:34 +00:00
Robert Osfield
63fe1433bb
Integated the trackball manipulator with the osgproducer demo.
2003-01-17 13:34:03 +00:00
Robert Osfield
097030766d
Added ProducerEventCallback class to manager the conversion of producer events
...
into GUIEventAdapter versions.
2003-01-17 11:26:16 +00:00
Robert Osfield
4dd273de70
Added support for ReferenceFrame into osg::LightSource, modified the .osg
...
plugin and cull visitor to account for this change.
2003-01-16 16:37:24 +00:00
Robert Osfield
a0e5b9b007
Added support for frame stamping each frame.
2003-01-16 12:39:15 +00:00
Robert Osfield
cab41ec32d
Updates to clean up the demo.
2003-01-16 12:18:45 +00:00
Robert Osfield
d6480b0425
Warning fix for Win32.
2003-01-15 20:57:48 +00:00
Robert Osfield
0e6b3b68bd
Added #include <osg/Export> simply to include the #pragma's for disabling the
...
daft VisualStudio warnings.
2003-01-15 20:53:27 +00:00
Robert Osfield
e0074d7c44
Made the osgDB::ParamterOutput class so that it is purely defined in terms
...
of the header, and therefore not requiring to be exported.
Updated the MUSE_READ_ME.txt to include mention of syntax highlighting.
2003-01-15 20:50:12 +00:00
Robert Osfield
5ad9602673
Updates to the osgproducer demo.
2003-01-15 19:23:16 +00:00
Robert Osfield
7bf60026f7
Removed the -> methods from the arc class to prevent stupid warnings under
...
VisualStudio6.0.
2003-01-15 15:44:49 +00:00
Robert Osfield
afb0ff775d
First cut and a demo which uses Open Producer for windowing.
2003-01-15 15:24:35 +00:00
Robert Osfield
ac718b6abb
Attempts to fix more of the *stupid* errors in the VisualStudio6.0 compiler.
2003-01-15 13:17:52 +00:00
Robert Osfield
5960307703
Patch from Joseph Steel, added missing check for the mipmap usage.
2003-01-15 11:33:33 +00:00
Robert Osfield
d542a2165d
Removed the template versions of the PrimitiveSet constructors as this was
...
causing problem under VisualStudio6.0.
2003-01-15 11:29:30 +00:00
Robert Osfield
64efc8ecbb
Fix for win32.
2003-01-14 19:12:22 +00:00
Robert Osfield
af6a6ff9f0
Fixes for Win32 build.
2003-01-14 16:39:41 +00:00
Robert Osfield
59969be08d
From Daniel Sjölie, updates to the GUIEventAdapter and GLUTEventAdapter to handle
...
key and key down, modifiers and funcion keys.
2003-01-14 14:25:56 +00:00
Robert Osfield
a03fff8c57
Added an compile in option of applying the matrices before state in the RenderLeaf
...
apply method. This order is intended to help support of vertex programming, but
unfortunately breaks the osgreflect demo so the original ordering is kept by default.
2003-01-14 14:21:06 +00:00
Robert Osfield
3365634a01
Submission from Joseph Stell, added LoadModels to TerrapageNode.
2003-01-14 14:00:09 +00:00
Robert Osfield
edd04fd5a0
Fixed typo.
2003-01-14 12:36:14 +00:00
Robert Osfield
36857d6b2f
Replaced the NVTriStrip code with tri_stripper written by Tanguy Fautré.
2003-01-14 10:54:01 +00:00
Robert Osfield
c882283b5d
Typo fix if USE_HOME_POSITION.
2003-01-13 20:14:23 +00:00
Robert Osfield
c3c346e647
Added handling of the case when length is -1, allowing the code to just test
...
against characters being zero, rather than against length, which is now only
done when a valid value of length (i.e >=0) is passed in.
2003-01-13 14:56:04 +00:00
Robert Osfield
7ee6d4f3f4
Clean up to the cross platform support in DirectX plugin.
2003-01-13 14:11:06 +00:00
Robert Osfield
c3a7ce7352
Fixes to osgText to handle std::string correctly.
2003-01-13 14:05:08 +00:00
Robert Osfield
29f4fa713f
Added missing _bbox.init() to ShapeDrawable.cpp.
2003-01-13 10:39:14 +00:00
Don BURNS
0adc037d20
ReaderWriterDirectX.cpp needed some std::'s
2003-01-11 20:56:29 +00:00
Robert Osfield
9bd4145405
From Ulrich, fixes to double to float conversion warnings under Windows.
2003-01-11 20:43:47 +00:00
Robert Osfield
ef7d7fce2e
Moved some in inline methods in ParamterOutput into the new ParamterOutput.cpp
...
file to clean up the interface.
2003-01-11 12:50:39 +00:00
Robert Osfield
e8ddbdd195
Updates from Ulrich.
2003-01-10 17:06:20 +00:00
Robert Osfield
f790d1ff15
Added missing header for new matric reading and writing methods.
2003-01-10 16:56:39 +00:00
Robert Osfield
f36bc69c58
Made the more of the OSG's referenced object desctructors protected to ensure
...
that they arn't created on the stack inappropriately.
Split the implemention of Matrix up so that it is a simple no referenced counted
class and can be safefly created on the stack. To support referenced counting a
seperate subclass now exists, this is RefMatrix which inherits from both Matrix and
Object.
2003-01-10 09:25:42 +00:00
Robert Osfield
f948a3de7c
Fixed typo.
2003-01-09 18:41:01 +00:00
Robert Osfield
043839f40b
Added #ifndef GL_TEXTURE_WRAP_S #define block to keep things compiling
...
on old drivers.
2003-01-09 16:13:30 +00:00
Robert Osfield
97da5d7f92
Fixed typo.
2003-01-09 11:48:49 +00:00
Robert Osfield
e8c2226e38
Added setting of the R wrap paramter to applyTexParamters().
2003-01-09 10:06:44 +00:00
Robert Osfield
ba2c3a187d
From Ulrich Hertlein, DirectX .x model loader plugin.
2003-01-08 22:52:27 +00:00
Robert Osfield
f91e141e7a
Fix to case statement from Tree.
2003-01-08 16:37:09 +00:00
Robert Osfield
a1f6b8730b
Added Shape.cpp to cvs resposity. Shape.cpp adds support for the various
...
osg::Shape in the .osg file format.
2003-01-08 16:33:02 +00:00
Robert Osfield
6727b8d5f7
Cleaned up the code for the animation flags of the group record.
2003-01-08 16:30:48 +00:00
Robert Osfield
c5d3c860d8
From Tree, support for encoded text added into osgText.
2003-01-08 15:22:17 +00:00
Robert Osfield
ba34880464
Added support for reading and writing Sphere, Box, Cone, Cylinder and Grid shapes.
2003-01-08 14:32:13 +00:00
Robert Osfield
e6b64a5550
Added support for sharing arrays in the .osg format for osg::Geometry.
...
Fixed the osgUtil::Optimizater so it takes into account sharing of arrays when
deciding whether an geometry can be merged or not.
2003-01-07 16:29:07 +00:00
Robert Osfield
53204898f3
Fixes for Irix64 build.
2003-01-06 23:19:42 +00:00
Robert Osfield
0161dacc15
Removed the osg::LightPoint::OPAQUE option, and implemented the ADDTIVE blending option.
2003-01-06 16:42:02 +00:00
Robert Osfield
3ef3666d0f
Added new ARB vertex program state attribute and demo program,
...
sent in my Brede Johansen.
2003-01-04 20:45:53 +00:00
Robert Osfield
060975a05c
Fixed small typo.
2003-01-04 20:44:17 +00:00
Robert Osfield
1317f6feaf
Added usage info in -O option.
2003-01-04 20:43:53 +00:00
Robert Osfield
7b6d802131
Fixed options code.
2003-01-04 20:43:27 +00:00
Robert Osfield
141f065b17
Removed the dual inheritance from the AnimationPathCallback, moving the
...
NodeVisitor implemention into the .cpp.
Small tweak to the lighpoint drawable implmenentation to improve the additive
blending and state resotoration.
2003-01-03 21:42:02 +00:00
Robert Osfield
fe64942c54
Added a AnimationPathCallback which can update both a MatrixTransform and a
...
PositionAttitudeTransform, removed the equivialnt callbacks once found in these
transform classes.
Changed the NodeCallback class so its derived from osg::Object instead of
osg::Referenced to allow it to be saved out in the .osg format.
Added support for Update and Cull callbacks into the .osg file format.
Added support for AnimationPathCallback into the .osg file format.
2003-01-02 20:10:04 +00:00
Robert Osfield
6ee563ad55
Updates the terrapage to try and make it thread "safer" when used with the OSG.
2002-12-21 19:41:27 +00:00
Robert Osfield
e9287afd5e
Turned display lists off in the osg::Geomety created by the terrapage loader,
...
this is done because terrapage will dynamic page in and out geometry so we
don't want to keep creating and deleting display lists.
2002-12-21 11:30:54 +00:00
Robert Osfield
3113fe360b
Tweaked the colours in the logo.
2002-12-20 10:48:22 +00:00
Robert Osfield
20a0cc5445
Renamed the app method update.
2002-12-20 09:43:15 +00:00
Don BURNS
454c0480c0
update for ia64
2002-12-19 19:50:16 +00:00
Robert Osfield
adf5c91808
Renamed all instance of AppCallback/AppVisitor to UpdateCallback/UpdateVisitor
...
inline with the decision to rename the "app phase" the "update phase".
2002-12-19 15:55:40 +00:00
Robert Osfield
eb42926ab1
Changed the remaining #include <> to #include "" to get things compiling under VS.
2002-12-19 10:32:02 +00:00
Robert Osfield
a2e76e4ab0
Removed the reference of Sequence from Switch.
2002-12-18 11:43:39 +00:00
Robert Osfield
30a665288e
Removed the osg:: from the front of the Group::computeBound() method to keep
...
things compiling under Windows.
2002-12-18 10:17:52 +00:00
Robert Osfield
677764bed9
Changed the <*.h> to "*.h> in the terrapage plugin to get it compile under Windows.
2002-12-18 09:50:36 +00:00
Robert Osfield
6d4e13ab1b
From Daniel Sjölie, support for reading comment records into description fields.
2002-12-17 17:22:06 +00:00
Robert Osfield
c82927293e
Moved the include/osgTXP back into src/osgPlugins/txp as a seperate include directory is no longer required.
...
Removed the osgtxp demo as it is no longer required.
2002-12-17 16:07:59 +00:00
Robert Osfield
ee3348afc9
Added txp::TerrapageNode to the txp plugin, and implemented the node so that it
...
automatically assign handles the updates of eye points and database merges.
2002-12-17 15:41:05 +00:00
Robert Osfield
8f81cf2ac6
Moved TriangleFunctor from Drawable into its own header file.
2002-12-16 17:00:05 +00:00
Robert Osfield
ddbf2ad8a0
Removed the redundent export symbol.
2002-12-16 16:57:47 +00:00
Robert Osfield
1c34b83e11
Fix for a warning.
2002-12-16 14:52:48 +00:00
Robert Osfield
7bcef50e3b
Removed reference to osg/MemoryManager.
2002-12-16 14:12:48 +00:00
Robert Osfield
89269463ef
Removed the memory manager.
2002-12-16 13:44:35 +00:00
Robert Osfield
00cc3a1833
Converted the instance of osgNew and osgDelete back to new and delete as part
...
of depecating the include/osg/MemoryManager
2002-12-16 13:40:58 +00:00
Robert Osfield
a37e3551e6
Fixed the traverse method so it calls Transform::traverse() instead of
...
MatrixTransform::traverse() which was recursive..
2002-12-16 13:14:27 +00:00
Robert Osfield
98648105f9
Added seperate Referenced.cpp implementation.
2002-12-16 10:28:14 +00:00
Robert Osfield
884b2730e8
Added a DeleteHandler into osg::Referenced so that it can delete objects
...
via a seperate delete handler. Useful for making unref()/ref() thread safe if
the users needs to address this issue.
2002-12-16 10:25:31 +00:00
Robert Osfield
cb87e7b3bc
Integrated further updates from Geoff on the Geo loader.
2002-12-16 10:22:37 +00:00
Robert Osfield
88424530b4
Changed the std::hex and std::dec to hex and dec to get it compile under VisualStudio,
...
and added a using namespace std to keep it compiling on all other compilers!
2002-12-16 10:05:55 +00:00
Robert Osfield
c6b6e200a4
Added supported for setting animation path on MatrixTransform's.
2002-12-16 09:55:30 +00:00
Don BURNS
22ada7ee6b
Uncommented fix for returning to non-stereo from stereo to get color mask
...
back to normal.
2002-12-16 00:33:48 +00:00
Robert Osfield
c32585a046
Added a check for extension of a filename to the gif loader, since it looks
...
like the isn't reconginizing rgb files as not being gif.
2002-12-14 06:42:56 +00:00
Don BURNS
a8ce4e9c0d
Added TrPageViewer.[h,cpp] to Demos/osgtxp (moved from the plugin directory)
...
and modified Makefile accordingly
2002-12-13 20:33:05 +00:00
Don BURNS
25b333b05b
Move TrPageViewer.cpp to src/Demos/osgtxp
2002-12-13 20:28:58 +00:00
Robert Osfield
a388800c95
Merged fixes to warnings in geo plugin from Geoff.
2002-12-13 19:41:59 +00:00
Robert Osfield
ffb200e4f4
Added the axis alignment into the Outline and Texture fonts drawing.
2002-12-12 11:36:08 +00:00
Robert Osfield
93973c09ad
Turned lighting off for whole of logo.
2002-12-12 11:35:09 +00:00
Robert Osfield
4cc0ffbbf8
Changed the osglogo demo to use arial texured font.
2002-12-12 11:25:25 +00:00
Robert Osfield
449418a8e9
Changed the colour of the text to be the same as the OpenGL logo.
2002-12-12 10:03:05 +00:00
Robert Osfield
75676f026c
Removed redundent std::
2002-12-11 22:39:59 +00:00
Robert Osfield
591ab7c52e
Removed erroneous character from end of file.
2002-12-11 16:27:01 +00:00
Robert Osfield
b8faa9b6f7
Added the afteresher.geo demo to osgtest.bat and debugtests.bat.
...
Converted the osgtxp demo to use straight string comparison instead of case sensitive string
comparion to help cross platform portability.
2002-12-11 16:24:42 +00:00
Robert Osfield
2e3bf33ce6
Removed the duplicate file out from the GEO plugin.
...
Changed the osglogo to reference a jpeg instead of a tiff one.
2002-12-11 14:30:27 +00:00
Robert Osfield
c19a236561
Added code to the path to the executable, adding it into the libary and data
...
file paths.
2002-12-11 14:24:44 +00:00
Robert Osfield
0e6d702906
Fixes for Win32.
2002-12-11 10:07:14 +00:00
Robert Osfield
442fa34aaa
From Ulrich Hertlien, fix for new changes in osg::Switch interface.
...
Small clean to changes by Robert.
2002-12-10 20:26:56 +00:00
Robert Osfield
530b85c807
Updates from Geoff Michel to geo loader and demo.
2002-12-10 20:00:56 +00:00
Robert Osfield
64c5fb644a
From Micheal Gronager, fix to osg::Quat::getRotate(..) to handle zero rotations.
...
Port of Sequence to subclass directly from osg::Group.
2002-12-10 19:58:03 +00:00
Robert Osfield
97a4775b7e
Updates to the light points support to improve the control of the blending of
...
light points with their background.
2002-12-10 19:56:14 +00:00
Robert Osfield
6efe79c33c
Changed cout to notify.
2002-12-09 09:26:49 +00:00
Don BURNS
5622e704cf
fixed small typo (forgot std::)
2002-12-09 06:00:57 +00:00
Robert Osfield
55d04ef381
Modifed the .attr loaders handling if TX_BILINEAR minification filter so that
...
it remaps it to LINEAR_MIPMAP_LINEAR to get round image quality issue of some
OpenFlight databases.
2002-12-08 17:22:20 +00:00
Robert Osfield
6f16193a7a
Tweaks the light points blend function.
2002-12-07 21:20:40 +00:00
Robert Osfield
109f6f22fe
Updated the Switch, Sequence and Group classes so that they all used a
...
similar style removeChild() mechansim.
Made the old style osg::Switch::setValue() method deprecated.
2002-12-07 21:18:12 +00:00
Don BURNS
b63827c5d9
Cleanin' up after Robert's spelling ...er ... challenges.
2002-12-07 06:59:08 +00:00
Robert Osfield
baa7c11eb9
From Tree, added support for accept(PrimitiveFunctor) into osg::Text. Currently
...
implemention is overly simple, but will do until rewrite.
2002-12-06 19:03:34 +00:00
Robert Osfield
8b58a1df83
Added checking of parents against switch and sequence into the
...
RemoveRendundentNodeVisitor to prevent breaking of the orinal order of the nodes.
2002-12-06 11:16:45 +00:00
Robert Osfield
d0887b19c1
Updates to the osglogo demo adding colour to the sides of the cube.
2002-12-06 09:20:20 +00:00
Robert Osfield
3715320b85
Fixes from Norman Vine for Cygwin support.
2002-12-06 09:19:35 +00:00
Robert Osfield
92d31b132b
Updates to the osglogo demo.
2002-12-05 15:21:25 +00:00
Robert Osfield
a91324e158
Added Brede Johansen's osgpbuffer demo, currently only runs under Windows,
...
requires the equivilant glx support to be added.
2002-12-05 14:30:57 +00:00
Robert Osfield
af400cb5ab
Added first pass at a new logo, this time generated by a osglogo demo.
2002-12-05 12:04:38 +00:00
Robert Osfield
d7692f83d7
Added support for setting the axis which the text should be aligned along.
2002-12-05 12:01:38 +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
b9110154c4
Removed the osg:: from the from of the osg::TexGen::apply() call.
2002-12-04 13:26:11 +00:00
Don BURNS
bf0cbf6b10
Modified Files:
...
include/osgTXP/trPagePageManager.h src/Demos/osgtxp/osgtxp.cpp
Added Files:
VisualStudio/Demos/osgtxp/osgtxp.dsp
2002-11-29 22:10:12 +00:00
Don BURNS
97ec694e21
Fixes to txp loader
2002-11-29 16:14:03 +00:00
Robert Osfield
d370227d89
Added comment for future reference about the validity of using delete in
...
the demo code... should really by using ref_ptr<> etc.
2002-11-25 16:57:49 +00:00
Robert Osfield
aa3d887e94
Added check of translucency of an image via osg::Image::isImageTranslucent().
2002-11-25 16:40:30 +00:00
Robert Osfield
010e56c8cc
Added implementation of isImageTranslucent method.
2002-11-25 16:39:05 +00:00
Robert Osfield
b113dfeb73
Added extra check to the freeing of memory.
2002-11-25 16:30:34 +00:00
Robert Osfield
cbbbee4c41
Fixes for OSX build from Stephan Huber.
2002-11-25 16:13:57 +00:00
Don BURNS
12e922bc3c
Added Paging TerraPage loader and osgTXP library.
2002-11-24 21:36:05 +00:00
Don BURNS
89b2575ffe
Forced GLPixmapGlyph color to white rather than using glGetCurrentColor
2002-11-24 00:23:47 +00:00
Don BURNS
1098a7ded1
Freetype 2.1 and later align bitmap pitch on boundaries of 2 bytes. It is
...
therefore necessary to use glPixelStorei(..,UNPACK_..., 2). There is an
#if() statement that allows the continued use of freetype 2.0 (Rh 7.x), as
well as accomodating newer releases.
2002-11-23 05:16:47 +00:00
Don BURNS
4acee51414
Merged in Joseph Steel's updates to rgb plugin
2002-11-22 17:36:46 +00:00
Robert Osfield
22c313cf3e
Warning fixes.
2002-11-22 09:46:25 +00:00
Don BURNS
65fec63389
Fixes for IRIX build
2002-11-22 05:00:43 +00:00
Don BURNS
c735c379af
Fixed std:: prefix and reinitialized variable for gcc 3.2
2002-11-21 20:28:28 +00:00
Robert Osfield
493d86fc73
Added use of ref_ptr<> for the replaced node in osg::Group::replaceChild(,)
...
to prevent it being deleted while it was still being used with the body of
the method.
Added mention of the shadow texture demo.
2002-11-21 16:08:30 +00:00
Robert Osfield
a545f3b48c
Moved the shadow creation code into a seperate CreateShadowedScene header and source,
...
and exposed just the basic createShadowedScene function in the header.
2002-11-21 15:35:51 +00:00
Robert Osfield
3f97d6a44d
Clean up of the shadow texture code...
2002-11-21 14:54:14 +00:00
Robert Osfield
201f753170
Fixed the updating of projection matrix so that is done in eye coordinates.
2002-11-21 13:25:39 +00:00
Robert Osfield
5ddcd5d878
Added osg::Geometry::setPrimtiveSet,removePrimtiiveSet, insertPrimitiveSet
...
and getPrimitiveSetIndex().
Renamed osg::Group::findChildNum(..) to getChildIndex().
Renamed osg::Geode::findDrawableNum(..) to getDrawableIndex().
2002-11-21 09:07:11 +00:00
Robert Osfield
f2fc281b00
Fix for compile problems under IRIX.
2002-11-21 07:53:48 +00:00
Robert Osfield
7ca90a3b44
First pass at shadow textures.
2002-11-20 15:51:18 +00:00
Robert Osfield
de85272032
Moved the code to create StateSet around textures into flt::Pool::getTexture so that
...
the code associated with loading textures is done is just one place.
2002-11-20 14:40:33 +00:00
Robert Osfield
6c8ef3b7df
Fixed the texture apply method which was broken yesterday, the new code wasn't
...
checking for the validity of _image before doing checks on it. This breaks when
render to texture is used as there is no image to check against...
Added osgshadowtexture demo source. Demos still in development, so don't expect
any shadows yet...
2002-11-20 07:46:25 +00:00
Robert Osfield
f46b231305
Added handling of image dirty after a textyre has been bound, the texture
...
is now updated when the image is dirty.
2002-11-19 12:48:58 +00:00
Robert Osfield
2b957675d5
Added visual workspace files for osgSim nodekit and osglightpoint demo.
2002-11-19 12:23:45 +00:00
Robert Osfield
e02ae73edc
Added osgSim library which encapulsulates light points.
...
Added osglightpoint demo.
2002-11-19 10:57:40 +00:00
Robert Osfield
5fca8ea229
Moved Drawable across to using osg::buffered_value.
...
Added new osg::State::setInterleavedArray() method.
Added new osg::Group::setNode(uint,Node*) method.
Cleaned up and fixed the osg::Texture's handling of dirtyTextureParamters().
2002-11-19 10:56:59 +00:00
Robert Osfield
42fb3c5987
Added setDrawable(uint,Drawable*) method.
2002-11-18 16:14:00 +00:00
Robert Osfield
b89e7282ed
From Jason Daly, fix for long file names on sequence nodes.
2002-11-14 15:30:28 +00:00
Robert Osfield
0980eeda1e
Updated the plugins so they do the extension checking with a non
...
case sensitive comparison.
2002-11-14 09:03:31 +00:00
Robert Osfield
bd7762a73e
Added State::computeSecondaryColorSupported() & computeFogCoordSupported().
...
Updated NEWS.
2002-11-13 11:09:55 +00:00
Robert Osfield
b6838c703e
Small improvement to the computation of the pixel size vector.
2002-11-13 10:23:55 +00:00
Robert Osfield
b468d2f939
Fixed ansisotropic scaling problem with pixel scaling/small feature culling.
2002-11-12 15:50:39 +00:00
Robert Osfield
f07dc35976
Fixed bug in stats where overdraw would be reported incorrectly.
2002-11-12 13:51:04 +00:00
Robert Osfield
e1643bd16b
Removed debugging messages.
2002-11-12 13:37:43 +00:00
Robert Osfield
4b27430931
Fixed bug in osg::Transform's computation of a its bounding sphere, where
...
it was erroneously using the y axis for the z axis test.
2002-11-12 13:36:56 +00:00
Robert Osfield
8e84722f90
Added LEFT_EYE and RIGHT_EYE stereo to osg::DisplaySettings/osgUtil::SceneView
...
Renamed LODBias to LODScale.
2002-11-12 10:22:38 +00:00
Don BURNS
6d1ba6c0f4
Fixed a const/non-const inconsistency in NodeVisitor.cpp
...
Fixed a blank namespace issue in UnitTestFramework.cpp
2002-11-11 20:18:27 +00:00
Robert Osfield
35b9317baf
Fixes to typo of *Dirty()
2002-11-11 16:11:48 +00:00
Robert Osfield
1f50138ec4
Added a getBound() to the SceneView::app() to make sure the bounding volume is
...
updated well before the cull traversal which can be multithreaded.
2002-11-11 09:01:54 +00:00
Robert Osfield
6f3e2b681c
Fixed bug in osg::Node::isCullingActive().
...
Rnabled the automatic selection of the animation path if one is specified
on the commandline in sgv.
2002-11-11 08:52:24 +00:00
Robert Osfield
3713bf1ced
*** empty log message ***
2002-11-11 07:20:11 +00:00
Robert Osfield
4617294722
Fixes to build in VS7.0
2002-11-08 15:56:49 +00:00
Robert Osfield
f42205a3ef
Updates version numbers to 0.9.2
2002-11-08 12:58:34 +00:00
Robert Osfield
a059191c1c
Updates to GEO loader from Geoff Michel.
2002-11-08 12:56:45 +00:00
Robert Osfield
90b5d81c7a
Minor warning fix.
2002-11-08 12:54:09 +00:00
Robert Osfield
9816a51bc7
Added GL_LIBS to the osgText/Makefile for OSX build.
...
Fixed typo in IntersectVisitor.
Fixed warnings in osgimpsotor demo.
2002-11-08 11:00:16 +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
0cd0c575f0
Fixes for VisualStudio6.0 build.
2002-11-08 08:51:30 +00:00
Robert Osfield
a0d2808b92
Removed the usage report from sgv when it fails to load a file.
2002-11-08 08:45:30 +00:00
Robert Osfield
ccd208422f
Converted usage of GLuint to usigned int, in hope that it will get round the
...
warnings generated under OSX.
2002-11-08 08:34:06 +00:00
Robert Osfield
e852ee6dd8
Commented back in LIBS into Makefile for OSX build.
2002-11-08 08:12:18 +00:00
Robert Osfield
23064c9c64
Fixes for VisualStudio build and OSX build.
2002-11-08 08:11:12 +00:00
Robert Osfield
16d53271cc
Compile fix from Duvan Cope.
2002-11-07 16:08:37 +00:00
Robert Osfield
cb6c0b2251
Commented out the selection of the animation path manipulator since it
...
was somehow disabling culling?!?
2002-11-07 15:45:01 +00:00
Robert Osfield
ba62fe4e48
Titled the view in osganimate and added the title into osgimpostor.
2002-11-07 15:13:32 +00:00
Robert Osfield
2a35dab922
Renamed Primitive:: to PrimitiveSet.
2002-11-07 14:44:01 +00:00
Robert Osfield
93f3378b86
Intergrated Martin Kada's impostor test program with the old test
...
program.
2002-11-07 14:13:51 +00:00
Robert Osfield
71bea99ba2
Added Geoff Michel's new osggeomdemo program which allows control of
...
geo models via the mouse.
2002-11-07 13:56:12 +00:00
Robert Osfield
c84cdf159c
Updates to GEO loader from Geoff Michel.
2002-11-07 13:47:39 +00:00
Robert Osfield
15773d920a
Fix for build under Linux.
2002-11-07 08:48:30 +00:00
Don BURNS
7669b96c28
Changed a couple of const/non-const discrpancies between header and source
...
for TexGen. Removed external library dependencies in plugin makefiles
2002-11-06 18:39:32 +00:00
Robert Osfield
3bd400130c
Name change and const change of Drawable::drawImmediateMode(State&) to
...
Drawable::drawImplementation(State&) const. Various updates to the
rest of the OSG to accomodate this.
2002-11-06 15:43:11 +00:00
Robert Osfield
e34ecafb1e
Added in default value of _timeScale.
2002-11-06 11:15:23 +00:00
Robert Osfield
26875c965d
Renamed ProceduralGeometry to ShapeDrawable to better reflect its current
...
purpose.
2002-11-06 10:46:34 +00:00
Robert Osfield
5eb65f65cc
Added support for recording camera animation paths in osgGLUT::Viewer, and fixed
...
the osgGA::AnimationPathManipulator to handle it.
Added a new Drawable::ConstAttributeFunctor and make the accept(PrimitiveFunctor)
be a const method so can disallows modification. Added Drawable::supports(...) methods
for each of the AttributeFunctor, ConstAttributeFunctor and PrimitiveFunctor so
that programs can querry whether it is possible to use functors with that object type.
2002-11-06 10:24:33 +00:00
Robert Osfield
afa27a13ec
From Jason Daly, fix for 14.2 color records in versions of OpenFlight files.
2002-11-05 07:50:40 +00:00
Robert Osfield
dc3aed2332
From Stephan Huber, fix for OSX build.
2002-11-04 15:33:08 +00:00
Robert Osfield
e999f5ad0f
Added std:: in front of string.
2002-11-04 10:37:11 +00:00
Robert Osfield
a6eafa79e2
From Ulrich Hertlien, added ReaderWriter::Options to the osgconv and pfb plugin
...
so that all the pfi files can be converted to rgb be the plugin.
2002-11-04 09:08:50 +00:00
Robert Osfield
22c6fa1565
Fixed warning under Visual.NET
2002-11-04 09:07:25 +00:00
Robert Osfield
6bb8002116
Added in guard to png loader so that it only accepts png files. This has been
...
added since the png loader itself doesn't not seem robust enough at detecting
non png files.
Added a tab in to the flt code to make it more obvious what is happening in
the flow of the code.
2002-11-04 08:40:51 +00:00
Robert Osfield
bba03297a7
Added support for primitive functor into the new osg::ProceduralGeometry class
2002-11-01 15:12:51 +00:00
Robert Osfield
92895370f7
Futher fixes for VisualStudio.NET compilation.
2002-11-01 15:11:05 +00:00
Robert Osfield
1dad443898
Michael Gronage fix for aspect ratio in split stereo.
2002-11-01 14:16:58 +00:00
Robert Osfield
f74b4ec847
Fixed VisualStudio7.0 compile error related to an std::vector<>::iterator
...
no longer being a pointer, fixed by using a &(*itr).
2002-11-01 12:48:15 +00:00
Robert Osfield
ee54835144
Futher updates to shapes support.
2002-11-01 12:20:34 +00:00
Robert Osfield
432654bde8
Added handled of invlid drawable bounding boxes.
2002-11-01 12:11:23 +00:00
Robert Osfield
94105025a0
Updates to Shape support.
2002-11-01 10:25:27 +00:00
Robert Osfield
75fb39adbd
Added a dirtyBound & diryDisplayList to the geometry merge operation in the
...
Optimizer to fix a bug where the bouding volumes where being invildated.
2002-10-31 15:24:17 +00:00
Robert Osfield
24746728e4
From Geoff Michel, added AC3D .ac and GEO .geo loaders.
2002-10-31 12:51:09 +00:00
Robert Osfield
21ee9e4cb7
Added osg::Grid shape class, and added an example of its use into the
...
hang glide demo.
2002-10-31 10:36:11 +00:00
Robert Osfield
85af8cc4ba
Yefei He's updates to Pool and flt2osg to use lazy loading of textures from a
...
texture pallette.
2002-10-31 10:35:15 +00:00
Robert Osfield
da84f9b4aa
Added first cut of new primtive shapes support.
2002-10-30 13:27:15 +00:00
Robert Osfield
aa5d172f99
Updated osgText .osg support so that it handles text via the osgDB::Outpur::wrapString() method.
2002-10-30 12:56:55 +00:00
Robert Osfield
8a9fce09d8
Fixed addChild(node,value) so that it resizes using the _newChildDefaultValue
...
rather than the add child value, then sets the child's value to value.
2002-10-30 10:07:16 +00:00
Robert Osfield
32c6a7809a
Updated the handling of string in the .osg reading and writing so that it
...
handles the use of " quotes inside the string.
2002-10-28 12:55:19 +00:00
Robert Osfield
91c73c6da1
Removed the remapping of special keys to keyboard events.
2002-10-28 09:43:21 +00:00
Robert Osfield
55b2a5ff30
From Gideon May, fixes to remain const base type instances in headers.
2002-10-25 12:29:03 +00:00
Robert Osfield
18d99c06e4
Updated the min and mag filter modes to be more appropriate, still some
...
of the FLT modes havn't been mapped across as its is not obvious how to map
them to OpenGL/OSG.
2002-10-25 09:34:51 +00:00
Don BURNS
cc122c5bcb
changed unsigned int's to unsigned longs so 64 bit build would work.
2002-10-24 20:49:15 +00:00
Don BURNS
5c111680f6
FIxed set_new_handler to std::set_new_handler
2002-10-24 15:24:39 +00:00
Robert Osfield
3be6ffd9c3
Changed the nameing of iterators to prevent clashes with VisualStudio's dumb
...
compiler.
2002-10-21 15:09:03 +00:00
Robert Osfield
761fc0574f
Merged Pavel's updates to LWO2 for handle multiple texture layers.
2002-10-18 12:47:36 +00:00
Robert Osfield
31e8323f17
Added default colour and normal definition to the Geometry draw to prevent state
...
inheritance of these attributes from causing problems of Geometry which arn't
fully defined.
2002-10-18 12:26:23 +00:00
Robert Osfield
00fd58283c
Added extension checking to the rgb and bmp write of images.
2002-10-18 12:23:42 +00:00
Robert Osfield
e1b084749e
Renamed the RenderBin::sort_local to sortImplementation(),
...
draw_local to drawImplementation() and added a new RenderBin::DrawCallback().
Added osgcubemap to the Make/ test scripts.
2002-10-17 13:48:46 +00:00
Robert Osfield
ee8ded2a90
Fixed memory allocation.
2002-10-17 11:59:01 +00:00
Robert Osfield
88130dfa5a
Checked in fix for std::hex for dumb arsed compilers.
2002-10-17 11:50:53 +00:00
Robert Osfield
ab59703e54
Fixed compile error under Windows.
2002-10-17 11:39:04 +00:00
Don BURNS
68427b98ae
Changed std::malloc to new in src/osgUtil/CubeMapGenerator.cpp
2002-10-15 19:10:05 +00:00
Don BURNS
90d2c3054f
Fixed cstdlib to stdlib.h for IRIX in src/osgUtil/CubeMapGeneragortor.cpp
2002-10-14 21:10:44 +00:00
Robert Osfield
4bb344719a
Fixes from Macro.
2002-10-10 20:04:02 +00:00
Robert Osfield
bfd614f907
Fixed the names of the ControlPoint parameters so they weren't capitals, to avoid
...
the clash with the parameter type itself.
Addd a PER_PRIMTIIVE_SET handling to the existing PER_PRIMTIIVE code, this code
is still flacky though and needs a rewrite as it doens't handle all attributes or
the full consequences of per primitive and per primitive set bindings.
2002-10-10 14:58:44 +00:00
Robert Osfield
50652f389b
Added Macro's new cube map generation classes and osgcubemap demo.
2002-10-10 12:44:38 +00:00
Robert Osfield
6c0861ef80
Maded the "flt::Registry::getPrototype: Unkown opcode:" message a INFO level
...
notify message rather than a NOTICE.
2002-10-10 09:42:41 +00:00
Robert Osfield
2e92e7d242
Made the warning about a mis-matching in the number of children in a switch
...
a INFO level notify message rather than a WARN.
2002-10-10 09:39:09 +00:00
Robert Osfield
50e8ea423c
Added remapping of special keys to be handle like a convential key press.
2002-10-10 09:29:07 +00:00
Robert Osfield
41893927c1
From Gabor Dorka, Fixes to memory leaks.
2002-10-10 09:00:31 +00:00
Robert Osfield
16291da3b0
Fixes to smoothing visitor and tesselator to handle indexed Geometry.
2002-10-09 15:43:56 +00:00
Robert Osfield
88ecacfd7a
Changed the default value of StandardOrientation to true, to fix orientation
...
problems which commonly occur with png files. Leaves the quesition of how to set
this value automatically.
2002-10-09 15:41:22 +00:00
Robert Osfield
f210e13944
Fixed bug in osg::LOD::addChild() which was forcing all ranges to be identical
...
values.
2002-10-08 16:02:09 +00:00
Robert Osfield
c59fc9a2b7
Fixed a bug in the Optimizer where BIND_PER_PRIMITIVE_SET primitives where being eroneously merged.
...
Added missing support for reading geometry indices from the .osg format.
Added handling of geometry indices into the primitive functor in osg::Geometry.
Moved the method implementions of AnimationPathManipulator into src/osgGA and added extra convinience
methods for setting the manipulator with an hand built AnimationPath.
FCVS: VisualStudio/osgPlugins/iv/iv.dsp
2002-10-08 14:10:55 +00:00
Don BURNS
bfedea5636
osgdb_osg loader had more issues with const/non-const discrepancies on
...
Solaris. Modified Geoset.cpp and Point.cpp
2002-10-08 08:39:42 +00:00
Don BURNS
16e3a3c182
Added AnimationPathManipulator to osgGA and modified sgv to use it.
2002-10-08 07:39:38 +00:00
Don BURNS
ab580f1e3b
Fixed some inconsistencies between header files and function definitions
...
where the header file declared a parameter non-const, but the function
definition expected a const. The Solaris linker was coming up with
undefined symbols.
2002-10-08 05:41:19 +00:00
Robert Osfield
04a9a09a8b
Added extra convinience methods to LOD - addChild(child,min,max).
...
Added osganimate to test scripts.
2002-10-07 21:23:37 +00:00
Robert Osfield
41768f6824
Fixes to Switch so that it defaults to adding children switched on, and adds
...
a flag to control whether children and added as true or false.
2002-10-07 20:17:57 +00:00
Robert Osfield
b7372fb4cb
Added new osganimate demo which demonstrate the osg::AnimationPath in action.
...
Added extra parameters to the AnimationPath callbacks to allow finer control.
2002-10-07 19:51:11 +00:00
Robert Osfield
5f1a5f0c41
Added code to Viewer::addViewport(..) to force the sharing of a single
...
osg::State object between viewports.
2002-10-07 10:02:47 +00:00
Robert Osfield
65934ef824
From Daneil Sjölie - modifications to the support of custom GUIEventHandlers in osgGLUT
2002-10-07 09:41:30 +00:00
Robert Osfield
70861ef70e
Converted osg::LOD from used n+1 successive ranges to n min/max ranges,
...
one min/max pair per child. Converted the rest of the OSG to use the new
osg::LOD node.
2002-10-06 20:33:13 +00:00
Robert Osfield
84332f5b77
Fixes for Win32 build.
2002-10-04 16:40:45 +00:00
Robert Osfield
4a3cc5c182
Implemented OpenFlight style switches so that each child of a switch can now
...
be individually turned on or off. Moved the OpenFlight code across to use the
new scheme, removing the old hack of using node masks to achieve the same end
result.
2002-10-04 14:50:33 +00:00
Robert Osfield
65ab5f7b62
Added osgteapot demo to show how to implement custom Drawables to
...
wrap up OpenGL code.
2002-10-02 15:28:17 +00:00
Robert Osfield
0a5ed26940
Moved the new osg::IndexedGeometry class over the top of the the existing
...
osg::Geometry class, and removed the temporary IndexedGeometry. Port the rest
of the OSG across to account for the change in method calls -
osg::Geometry::addPrimitive(..) becomes osg::addPrimitiveSet(..)
2002-10-02 13:12:16 +00:00
Robert Osfield
6f6e237429
Added setActiveTextureUnit(0) to State::reset().
2002-09-30 18:11:34 +00:00
Robert Osfield
af5f5e5a3f
Added traverse the AnimationPath callbacks.
2002-09-30 16:50:16 +00:00
Robert Osfield
5fd86440b3
Added support for per primitive bindings in osg::IndexedGeometry. Added a
...
convertToIndexedGeometry() method to GeoSet to allow datasets with per primitive
bindings to be be mapped to across to osg::IndexedGeometry for testing purposes.
2002-09-30 13:30:46 +00:00
Robert Osfield
3fc5b0fdc9
From Macro, added a setActiveTextureUnit(0) to osg::Text::drawImmediateMode() to
...
prevent the wrong OpenGL mode being used.
2002-09-29 17:55:46 +00:00
Robert Osfield
d176f752a5
From Daniel, Fixes for warnings under Win32.
2002-09-29 12:33:30 +00:00
Robert Osfield
da3739ebfc
Fixes to IndexedGeometry.cpp to repair bugs introduced with Win32 build fixes.S
2002-09-28 19:09:42 +00:00
Robert Osfield
098e34ece0
Added a dirtyAllVertexArrays() to State::reset().
2002-09-28 07:47:10 +00:00
Robert Osfield
b57b0b16b9
Fixes for Win32 build.
2002-09-28 07:43:04 +00:00
Robert Osfield
2a94879fcc
Fix build after change in GLExtensions.
2002-09-27 19:04:46 +00:00
Robert Osfield
df027e1bab
Fixes to IndexGeometry for Win32 build.
2002-09-27 19:01:59 +00:00
Robert Osfield
f8edf16c40
Improvements to IndexedGeometry.
2002-09-27 17:47:47 +00:00
Robert Osfield
2a28a4297f
Futher work on the IndexedGeometry class. Indexed coordinates should now
...
work.
2002-09-26 15:26:22 +00:00
Robert Osfield
f7c7740327
Changed the linux linking of -lgif to -lungif.
...
Fixed a typo in the Images name.
2002-09-24 20:14:08 +00:00
Robert Osfield
9546c73e39
Changed the image file so that use the Images/ prefix to help locate the files
...
within the OpenSceneGraph-Data directory.
2002-09-24 20:04:20 +00:00
Robert Osfield
fb629ae87d
From Gideon, support for tracking the number of objects constructed and deleted,
...
only compiled in when unit tests are compiled in.
2002-09-20 15:55:50 +00:00
Robert Osfield
444a6eaf97
From Ulrich Hertlien, supported add to textures in the .lwo format.
2002-09-20 15:54:17 +00:00
Robert Osfield
55215651d7
Renamed osg::Primitive to osg::PrimitiveSet which better reflect what it
...
encapsulates.
Added new osg::IndexGeometry implemention, *not* complete yet.
Changed the rest of the OSG to handle the renaming og Primitive to PrimitiveSet.
2002-09-20 14:51:59 +00:00
Robert Osfield
fd3bef5158
From Daniel, changed setEventHandler to addEventHandler.
2002-09-20 14:48:41 +00:00
Robert Osfield
ce51fb1841
Added PolygonStipple class from Mike, with mods from Robert to make data
...
management local.
2002-09-19 10:30:15 +00:00
Robert Osfield
68384e984b
Made the calls to the drawing of the pre rendering stages exclit, using
...
a seperate method in RenderStage and associated calls in sceneView.cpp.
This fixes problems when doing stereo and prerender at the same time.
2002-09-19 09:52:50 +00:00
Robert Osfield
f6cb09c601
Fixed copy constructor so that the _stage member variable was set to this
...
correctly.
2002-09-19 09:05:50 +00:00
Robert Osfield
02d920c930
Fix the sceondary color code.
2002-09-18 16:10:42 +00:00
Robert Osfield
9a9e88b78a
Added missing isCompressedInternalFormat() method.
2002-09-18 16:05:26 +00:00
Robert Osfield
f11410928f
Simplified the depth calculation code in CullVisitor so that it always computes
...
the depth of all drawables, so that it is always safe for RenderBin sort routines can use
these values directly.
Add an example of a RenderBin::SortCallback to sgv.cpp.
2002-09-18 14:57:01 +00:00
Robert Osfield
4a54b7bdb1
From Daniel Sjölie - added support for multitexured flt files.
2002-09-18 11:11:10 +00:00
Robert Osfield
ed43d97ed3
Improved the sort callback support in osgUtil::RenderBin, and removed the
...
now rendundent DepthSortedBin class.
2002-09-17 15:47:23 +00:00
Robert Osfield
91df37b5c8
Further work on multiple context extensions.
2002-09-16 20:58:05 +00:00
Robert Osfield
f006d081e5
Commented out the call to combine LOD's in the optimizer as it was causing
...
problems in some flt datasets.
2002-09-16 10:55:09 +00:00
Robert Osfield
ce36cda0cc
Updates the osg::Texture3D::Extensions interface to support the standardisation
...
of extensions supported across multiple graphics contexts.
2002-09-14 10:38:28 +00:00
Robert Osfield
6d21fbd6cf
Added dirty methods for vertex arrays to better support external OpenGL
...
code which modifies the OpenGL state and needs to tell the osg::State
about it to ensure that the OSG doesn't make any errors during lazy
state updating.
2002-09-13 13:50:58 +00:00
Robert Osfield
f867dd81be
Added asGroup() and asTransform() methods to osg::Node to downcast nodes
...
to these types without requiring an expensive dynamic_cast<>.
Also added asGeometry() to osg::Drawable for the same reasons.
2002-09-12 15:34:31 +00:00
Robert Osfield
5733cc1470
From Brede Johansen - Fixes to osg::Plane::valid and added a new set method.
...
From Stephan Huber - Compilation fix to Texture.cpp for OSX.
From Don Tidrow - added dirtyBound() to osgText::Text::setPosition
2002-09-12 13:23:15 +00:00
Don BURNS
866af14f86
Added ability to accept '.tif' files (as well as '.tiff') and printed
...
notify() on error
2002-09-09 04:40:50 +00:00
Robert Osfield
e2603ff6c4
Improvements to osg::Texture3D::Extensions code.
2002-09-05 15:45:10 +00:00
Robert Osfield
bb0022175b
Added new buffered_value template class which encapsulates a std::vector but
...
initializes the array to the number of graphics contexts, and automatically
expands the array when indices outside the current size are required.
Added new osg::Texture::Extensions nested class to handle extensions on a per
context basis.
2002-09-05 11:42:55 +00:00
Robert Osfield
9bab7a181f
From Ulrich Hertlein, check for max 3d texture size into the osgtexture demo.
2002-09-04 10:51:33 +00:00
Robert Osfield
f574d0dd68
Added support for setting the fusion distance directly in SceneView, defaults
...
to the original behavior of using the values from the Camera if attached.
2002-09-04 10:49:17 +00:00
Robert Osfield
6ff24b338f
Added support for multiple graphics contexts to osg::Texture and its
...
subclasses.
2002-09-04 08:14:04 +00:00
Don BURNS
d5f87e919d
Added setting colormask to SceneView on every frame to allow toggling
...
between stereo on and off in Anaglyphic mode.
2002-09-04 01:15:07 +00:00
Robert Osfield
1ad924d0ca
Fixes to the LWO to better handle 3 and 4 vertex polygons.
...
Added an extra pass into the Optimizer's merging of geometry primitives so
it convertex 3 and 4 vertex polygons into triangles and quads respectively.
2002-09-03 20:12:29 +00:00
Robert Osfield
2842346b5a
Removed const from the evaluateLODChild(,,) callback method.
2002-09-03 19:25:00 +00:00
Robert Osfield
5c1787535c
Removed the temporary commenting out of the Optimizer, which was done for
...
debugging purposes.
2002-09-03 14:42:19 +00:00
Robert Osfield
0cb75d42e0
Fixed LWO2 ReaderWriter problem which was down to an the compiler reodering
...
the evaluation of a Vec3 paramter.
2002-09-03 13:04:53 +00:00
Robert Osfield
46585242a1
Fixed and unmatched malloc/free pair, which was previously doing a mallco/delete.
2002-09-03 09:50:51 +00:00
Robert Osfield
12226e4371
Converted the instances of const built in types being returned from methods
...
and passed as paramters into straight forward non const built in types,
i.e. const bool foogbar(const int) becomes bool foobar(int).
2002-09-02 12:31:35 +00:00
Robert Osfield
52518673d1
From Yfei He, added in missing RoadConstruction handler.
2002-08-31 09:59:18 +00:00
Robert Osfield
11bc1b2a77
Bug fix from Tom Jolly, which adds a check aginst a delete of gl textures
...
in FTGLTextureFont destructor to prevent a NULL be passed to glDeleteTextures.
This solves the crash on exit of osghud/osgtext.
2002-08-31 09:51:52 +00:00
Robert Osfield
c6965357e6
Renamed osg::Statistics::addOpaque to addDrawable to better reflect its current
...
function.
2002-08-30 19:45:56 +00:00
Robert Osfield
a68d95d2f6
Updates to windows build docs.
...
Merge fixes for OSX from bob.
Added checking for impostor sprites into stats.
2002-08-30 16:17:41 +00:00
Robert Osfield
b1f69a9b11
Fixed the flatten static transform visitor.
2002-08-30 15:07:10 +00:00
Robert Osfield
fc5f07acaa
Fixed the numerical accuracy problems in the Drive and Flight Manipulators.
2002-08-29 20:41:19 +00:00
Robert Osfield
44beefa9a5
Fixed numerical accuracy problem in Trackball manipulator.
2002-08-29 16:38:51 +00:00
Robert Osfield
6c08183b45
Updated docs.
2002-08-29 14:29:49 +00:00
Robert Osfield
79aaac4e0c
Renamed the ConvexPlaner* classes to ConvexPlanar* and changed all the various
...
classes that reference it.
Added MUST_READ_ME.txt to the VisualStudio directory.
2002-08-29 11:02:01 +00:00
Don BURNS
76959d5648
Blast it, Don... You should rebuild before you check things in!
2002-08-29 03:49:23 +00:00
Don BURNS
2b10b4c3df
Fixed 69 occurance of 'Seperate' misspelling (should be 'Separate')
2002-08-29 03:22:27 +00:00
Robert Osfield
b546c63139
Changed instances of new across to use osgNew to help debugging, and fixed
...
an unitialized variable in Sequence.
2002-08-28 21:40:38 +00:00
Robert Osfield
df5c8f789a
Updated the version numbers to reflect the upcomming release 0.9.1.
2002-08-28 18:49:27 +00:00
Robert Osfield
fe93b91f73
Fixes to Win32 build.
2002-08-28 18:38:33 +00:00
Robert Osfield
4c762829f2
Added std:: infront of cout and endl.
2002-08-28 17:37:12 +00:00
Robert Osfield
ebb8a635d2
Fixes for Win32 build.
2002-08-28 16:59:22 +00:00
Robert Osfield
bd87e19068
Fixed unitialized variable in the MyTextureSubloadCallback.
2002-08-28 16:25:06 +00:00
Robert Osfield
e50552d6d2
Added fixes to UnitTestFramework to get it compiling under Windows.
2002-08-28 16:17:54 +00:00
Robert Osfield
3b53adc7e8
Warning fixes for Windwos
2002-08-28 15:44:03 +00:00
Robert Osfield
8353fc0ed6
Removed deprecated code from the distribution.
...
Added .osg support for Texture1D and Texture3D.
2002-08-28 15:28:11 +00:00
Robert Osfield
951b6e9f3f
Added -I{THISDIR} into the iv Makefile.
2002-08-28 14:28:21 +00:00
Robert Osfield
7d6197441e
Added Neil Salter's osgUtx library into the distribution, have put all the
...
orignal seperate headers and source into include/osg/UnitTestFrameWork
and src/osg/UnitTestFramework.cpp respectively. I have done this to
keep the include and source directories focused on the scene graph rather
than the test framework.
Have added a very simple unit test to Vec3.cpp, which are optionally
compiled in with the OSG_COMPILE_UNIT_TESTS define, which is only
currently defined in debug builds under unix. It should be fine to
add it in under Windows project files as well.
Finally, a new demo app osgunittests runs the tests and reports success
or failure of the tests.
2002-08-28 14:26:09 +00:00
Robert Osfield
bff4728eac
Commented out the #define TEXTURE_USE_DEPRECATED_API from includ/osg/Texture
...
which forces the use of a typedef Texture2D Texture; in place of the orignal
texure implementation.
2002-08-27 21:01:22 +00:00
Robert Osfield
5ad4cc4f2f
Added code to write byte/int/float arrays out with 8 values per line by default, rather than
...
1 per line as before.
2002-08-27 20:54:58 +00:00
Robert Osfield
55d4affded
Added support for DOFTransforms into .osg format, and add pivot point support
...
to the PositionAttitudeTransform .osg support.
Removed a double light reference in the osglight demo.
2002-08-27 20:18:43 +00:00
Robert Osfield
1f7b133eff
Added support for reading and writing osg::PositionAttitudeTransform.
2002-08-27 15:46:47 +00:00
Robert Osfield
4a4334c2ab
Fixed bug in the Light reading code.
2002-08-27 15:46:29 +00:00
Robert Osfield
4265702c7c
Added proper osgtexture1D demo - this demo uses a 1D texture to dynamically
...
contour the scene.
2002-08-27 14:02:19 +00:00
Robert Osfield
83af5e7a95
Added osgtexture3D demo, renamed osgtexture demo to osgtexture2D, and have
...
added osgtexture1D demo which currently is simply copy of osgtexture2D. I
will be modifying it to do 1D texturing next.
Fixed a bug in osg::Texture3D relating to checking of existance of
texturing.
Merged some fixes to the pfb loader from Ulrich Hertlein.
2002-08-27 10:06:57 +00:00
Robert Osfield
501f28449c
Fixed typo of _texParametersDirty.
2002-08-26 20:11:24 +00:00
Robert Osfield
4ddfd8668e
Removed #ifdef hacks to remove optimization with VS6.0's STL. VS6.0 STL is
...
now no longer supported!
2002-08-26 19:35:43 +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
db70c95d24
Updated Texture3D to use extension checking to get the relevant 3d texturing
...
extensions.
2002-08-26 10:24:01 +00:00
Don BURNS
0f0b32f43b
Added writer to RGB plugin
2002-08-26 03:15:45 +00:00
Robert Osfield
8e75f531e3
Converted code dependant on osg::Texture across to its replacement osg::Texture2D.
2002-08-25 15:31:44 +00:00
Robert Osfield
61ff1c7b0a
Fixes for Win32 build
2002-08-25 11:00:30 +00:00
Robert Osfield
d87dee5a75
Added support for the texture_env_dot3 extension.
2002-08-24 21:11:07 +00:00
Robert Osfield
239068f223
Added new osg::TextureBase, osg::Texture1D, osg::Texture2D, and osg::Texture3D
...
classes, and changed osg::Texture and osg::TextureCubeMap so that they now derive
from osg::TextureBase.
2002-08-24 19:39:39 +00:00
Don BURNS
9979e80bed
Modifed osgGLUT viewer and messages in SGV to allow for start up in full
...
screen mode.
2002-08-23 00:43:10 +00:00
Robert Osfield
c45c3d3255
Added calling of the LightSource and ClipNode as Group by the NodeVisitor and
...
fixed the CullVisitor and Optimizer to take account of this.
2002-08-22 09:19:41 +00:00
Robert Osfield
942e23caf3
From Stephan Huber, "I found a small bug in QTtexture.c: the code fails, when the image-files
...
don't reside on the boot-partition. I replaced the offending function by a
cleaner one.".
2002-08-21 20:42:19 +00:00
Robert Osfield
c2c6bb5ca6
Moved the include<osg/GLExtensions> from the State header into State.cpp, and
...
added it into other files which now required it.
2002-08-20 22:43:42 +00:00
Robert Osfield
814dcc9677
Added IO Support for TexEnvCombine state attribute.
2002-08-20 18:00:22 +00:00
Robert Osfield
88f387810d
Added support for the tex_env_add and tex_env_crossbar extensions.
2002-08-20 14:15:49 +00:00
Robert Osfield
36ad072e14
Added the definition of GL_FOG_COORDINATE_SOURCE to Fog.cpp.
...
Added #include<string> to the GLExtensions header.
2002-08-20 12:29:35 +00:00
Robert Osfield
df9a899d9e
Moved the IO support for the osgText and osgParticle libraries into seperate
...
plugin libraries.
2002-08-20 11:27:08 +00:00
Robert Osfield
05573d553d
Added a error message for when OSG_NOTIFY_LEVEL is not set correctly.
2002-08-20 10:26:36 +00:00
Robert Osfield
058ef0dc98
Merged fixes to the osg::GLExtensions function pointer code from Stefan Huber,
...
and a fix to osg::State's secondary color code from Bob Kuehne.
Moved the body of the getGLExtensionFuncPtr() into the header to help out
support for Windows mapping of different OpenGL extensions function ptr per
dll.
2002-08-20 10:14:12 +00:00
Robert Osfield
93303cf1cd
A FogCoordinateSource set/get methods to osg::Fog which correspond to the
...
FogCoord support added to osg::Geometry. Added suppot for these new parameters
to the .osg plugin.
2002-08-20 10:08:04 +00:00
Robert Osfield
e347a3c7aa
Reordered the string comparions so that DEBUG_INFO comes before INFO, since
...
the find op will find INFO in a DEBUG_INFO string, and hence report the wrong
notify level.
2002-08-20 08:14:02 +00:00
Robert Osfield
7a0f041a15
Added default values to the TexEnvCombine constructor.
2002-08-19 19:53:34 +00:00
Robert Osfield
1e2f198c5b
Added new osg::TexEnvCombine state attribute.
2002-08-19 15:11:09 +00:00
Robert Osfield
b23a48a763
Renamed the osg::EarthSky to osg::ClearNode to make it more obvious what
...
role it has play and make it more relevant to non vis-sim applications.
2002-08-19 11:42:37 +00:00
Robert Osfield
c72953d94b
Moved "unsigned int i" from for(.. to just before it, and removed subsequent
...
ones to get the VisualStudio compiler working once more.
2002-08-19 08:35:35 +00:00
Robert Osfield
22d54f05e4
Added DOFTransform, MatrixTransform and PositionAttitudeTransform to NodeVisitor.
...
Added osg::Matrix/Quat::makeRotate(angle1,axis1,angle2,axis2,angle3,axis3) and
osg::Matrix::rotate(angle1,axis1,angle2,axis2,angle3,axis3) method.
Made osg::Matrix/Quat::makeRotate(heading,pitch,roll) and
osg::Matrix::rotate(heading,pitch,roll) all deprecated API.
Fixed the Quat*Quat & Quat*=Quat multiplication methods so that they multiplied
in the correct order - they were reversed originally due to the Quat code being
based on code example which used the v' = M v ordering, rather than the OSG's
v' = v M ordering.
2002-08-18 14:42:43 +00:00
Robert Osfield
a9732aa046
Added check to disable color binding when the secondary colour extension doesn't
...
exist.
2002-08-18 11:16:31 +00:00
Robert Osfield
2ab0f689eb
Added Texuture::SubloadCallback example into the osgprerender demo to illustrate
...
how to use it.
Changed the ImpostorSprite to use LINEAR,LINEAR for min and mag filters for the
impostor texture.
2002-08-16 15:14:43 +00:00
Robert Osfield
7dfefaf67f
Added new osg::Texture::SubloadCallback, and getNumMipmapLevels() to osg::Texture
...
and osg::Image. This additions are design to make texture subloading more
flexible.
2002-08-16 13:33:32 +00:00
Robert Osfield
bff72e1077
Fixes from Ulrich Hertlein to get the pfb plugin compiling with using
...
any deprecated API.
2002-08-16 10:56:20 +00:00
Robert Osfield
8551e1c555
Supported added for secondary color & fog coords to osg::Geometry and osg::State.
2002-08-15 20:27:33 +00:00
Robert Osfield
848ce4ae74
From Perry, support for color added to the MeshPrimtive/LocalVertexPool code.
2002-08-15 20:25:46 +00:00
Robert Osfield
5f6dbfecf3
Removed the getData() from MeshRecord and the dummy SMesh record, this
...
allow the FaceRecord base class to directly provide the datatype.
2002-08-15 15:04:23 +00:00
Robert Osfield
ccbc1df85b
Added a using namespace std; and removed std:: from from std::hex and std::dec.
2002-08-15 14:09:36 +00:00
Robert Osfield
4cbab17096
Added a virtual keyword into the getData() overrided methods.
2002-08-15 13:04:13 +00:00
Robert Osfield
61e3b34bc7
Submission from Perry Miller for support of OpenFlight15.7's local vertex pool
...
and mesh primitives. Converted Perry's code to work with the osg::Geometry
instead of osg::GeoSet.
2002-08-15 11:25:23 +00:00
Robert Osfield
f9cc8783b3
Futher improvements and fixes to osg::AnimationPath, and the osglight
...
demo to show it action.
2002-08-13 15:31:10 +00:00
Robert Osfield
7c049360ff
Made improvements to osg::AnimationPath, added
...
osg::PositionAttitudeTransform::AnimationPathCallback which us an app callback
which uses an AnimationPath to specify the new positions of the transform.
Added AnimationPath code to osglight to animate the positional light.
Added CullVisitor::setCullingMode() code into SceneView so that SceneView's
CullingMode is now properly passed onto CullVisitor. Note, this work
had been done before, but must has been lost in a merge. Umm...
2002-08-13 13:22:46 +00:00
Robert Osfield
983da4fb9c
Fixed uninitialized _sortMode.
2002-08-13 09:35:06 +00:00
Robert Osfield
743b174da9
Added new s/getPivotPoint() support to osg::PositionAttitudeTransform.
...
Modified the osglight demo to use an AppCallback and a PositionAttitudeTransform
to animate the loaded model.
2002-08-12 17:40:36 +00:00
Robert Osfield
29490a8c1c
Updates to DOFTransform so that its overrides the traverse() and compute*() methods
...
rather than depending upon callbacks for animating and compute matrices. Merged the
put/inverseput code between Sasa's and Ferndinand's DOF code.
From Bora Utka, Added support to osg::Sequence/OpenFlight AnimNode to the flt plugin.
2002-08-12 13:42:43 +00:00
Robert Osfield
d43b00ac4e
attempt to fix read only status of Sequence.cpp.
2002-08-12 13:37:35 +00:00
Robert Osfield
7010c1c4f8
Removed dependency of the new osg::DOFTransform and osg::Sequence Node's
...
on osgUtil by implementing a NodeVisitor::VisitorType enum, and associated
g/setVisitorType. This allows callbacks to querry the visitor/traversal
type without doing down cast's to specific visitor subclasses such as
osgUtil::AppVisitor/CullVisitor.
2002-08-11 21:26:58 +00:00
Robert Osfield
19eaf17632
Temporarily commented out the flat staic transforms visitor since it
...
was causing problems with the new DOFTransform class.
2002-08-11 10:32:20 +00:00
Robert Osfield
5d61488476
Submission for Gideon May, fixes for spacing in various osgText files.
2002-08-09 19:51:12 +00:00
Robert Osfield
392150521a
Fixed the X and Y axis rotation billboards so that now rotate correctly.
...
Rewrote the osgbillboard demo so that it creates a point rotatated billbaord
and X,Y and Z axis billboards to both test and demonstrate this types of
billboards in action.
2002-08-09 16:27:39 +00:00
Robert Osfield
0c6991ea27
Fixes for IRIX 32bit timmer on O2. From Tom Jolley.
2002-08-08 21:36:22 +00:00
Robert Osfield
f0f40cbf88
Fixed warning related to where _increasingFlags is an unsigned short and 0xffffff is being
...
truncated, spotted by Tom Jolly.
2002-08-08 15:10:58 +00:00
Robert Osfield
d351bad121
Fixed bug related to switching on/off culling modes. Patch from Nikolaus Hanekamp.
2002-08-08 13:41:18 +00:00
Robert Osfield
d9b7b13bd3
Changed the Geometry::setVertexArray and GeoSet::setCoords so that they
...
call dirtyBound() instead of reseting the local bound flag, this ensures
the updates are propagated upwards through into the parents.
2002-08-08 11:27:11 +00:00
Robert Osfield
f5c7fcf51d
Fixed the shininess factor in 3ds plugin.
2002-08-08 11:01:07 +00:00
Robert Osfield
b9b013e15b
Changed the support for anisotropic filtering in osg::Texture so that it
...
is now controlled via the setMaxAnisotropy(float) method, and is set up
independently for the mag filter mode, which it previously was done.
2002-08-07 15:52:24 +00:00
Robert Osfield
e01f9eb891
Added shells for DOFTransform and PositionAttitudeTransform to the .osg
...
loader, still need to fill in the saving and loading of paramters.
Went through the distribution remove old API usage.
2002-08-06 17:07:05 +00:00
Robert Osfield
ffb2d3826b
Changed the default value of _animationOn to true.
2002-08-06 10:37:22 +00:00
Robert Osfield
25740b5c7f
Added new osg::DOFTransform node from Sasa Bistrovic, designed to mirror
...
the OpenFlight DOF transform nodes.
2002-08-05 15:07:18 +00:00
Robert Osfield
6c998bf97d
Added support for PROTECTED modes into the .osg reading and writing.
2002-08-05 13:29:51 +00:00
Robert Osfield
25307305a0
Added an example of the use of the PROTECTED modes and attributes into
...
the osgreflect demo so that toggling texturing on or off won't affect
the mirror planes texturing.
2002-08-05 13:12:09 +00:00
Robert Osfield
70724c353f
Fixed compile errors under IRIX.
2002-08-05 12:52:18 +00:00
Robert Osfield
6b52e17c48
Fix to iv/vrml loader so that it correctly passes back the right ReadResult
...
and checks the validity of the file extension being passed to the plugin.
Removed main.cpp * .h moving all its functionality into readerwriter.cpp.
2002-08-04 21:11:00 +00:00
Robert Osfield
93403a54db
Changed the error reporting so that it directs it all via osg::notify, and
...
only uses the INFO level for reporting that the file to load is not
recognised. Also add check for LWO2 loading so that it returns FILE_NOT_HANDLED
message correctly.
2002-08-04 20:51:03 +00:00
Robert Osfield
cab49a9307
From Ruben Lopez, updates to VRML/IV loader.
...
From Ben Discoe, corrections to comments in osg::Transform
From Alberto Barbati, Lazy evaluation of inverse matrix in osg::MatrixTransfrom
2002-08-04 20:34:48 +00:00
Robert Osfield
fb0d87b29c
Added Sequence.cpp to osg plugin workspace file.
2002-08-03 19:42:39 +00:00
Robert Osfield
6a04fc3dee
Integrated Ulrich Hertlien's osg::Sequence node, and osgsequence demo, and
...
support for osg::Sequence in the pfb loader.
2002-08-03 18:11:21 +00:00
Robert Osfield
c253d3558b
Changed the range max and min members variables to maximum and minimum to
...
prevent collision with windows min and max macros.
2002-08-03 18:03:40 +00:00
Robert Osfield
1ba901cf64
Added support for a sort callback in RenderBin.
2002-08-03 16:49:42 +00:00
Robert Osfield
b89f3fa9b1
Added cout's of the view frustum to the aid debugging, these cout's are
...
now commented out, and are just left in so that they may be used to
double check things in future.
2002-08-03 16:37:13 +00:00
Robert Osfield
ddd78eb95e
Fix for Win32 build
2002-08-02 19:11:06 +00:00
Robert Osfield
e1a6a18036
Added missing _nodePath.clear() and _segHitList.clear() to InteresectVisitor::reset().
2002-08-02 15:14:59 +00:00
Robert Osfield
1adc4992ff
Updates to iv/vrml loader from Ruben.
2002-07-31 15:16:14 +00:00
Robert Osfield
3840972440
Updates to the iv loader from Ruben - conversion from GeoSet to Geoemetry.
2002-07-30 10:08:50 +00:00
Robert Osfield
fae159df08
Forced the use of non mip mapped texture during subloading in the osgprerender
...
demo.
2002-07-29 21:29:41 +00:00
Robert Osfield
0fa1b4a2ff
Removed default value from constructor.
2002-07-29 11:02:14 +00:00
Robert Osfield
067dc6cddf
Fixes to the new texture subloading methods.
2002-07-29 00:04:07 +00:00
Robert Osfield
6b59f66d80
Checked in new methods for setting up texture subloading, these allow the
...
user to control which parts on an image are subloaded from, and how big
the initial texture is.
2002-07-28 23:28:27 +00:00
Robert Osfield
02bb66a572
Checked in Pavel's updates for non texured surfaces.
2002-07-28 23:27:21 +00:00
Robert Osfield
05472135b0
Added set/getUnrefImageOnApply() methods and associated flag and
...
code in Texture::apply() to set the _image to 0 on apply. Note,
this will only work when you have a single graphics context, as
with multiple graphics contexts one can't delete the image after
the first apply, as there will be more than one texture object to
update.
2002-07-28 21:25:32 +00:00
Robert Osfield
63e3364cc3
Checked in Marco's commented out #defines/rejigged struct names to get things
...
compiling under Windows, will need to check this in future as it may change with regeneration of parser files
with lex/yacc.
2002-07-28 21:15:25 +00:00
Robert Osfield
556fa81fda
Chagned the initiliazation of iterators, sent in by Alberto Barbati.
2002-07-28 12:52:15 +00:00
Robert Osfield
0977e68727
Fixes to NodeCallback and RenderBin from Alberto Barbati.
2002-07-28 12:49:01 +00:00
Robert Osfield
74f5cbe16a
Fixes to the inventor/vrml loader.
2002-07-27 21:35:21 +00:00
Robert Osfield
4962065fb7
From Macro, removal of use of display lists during double pass rendering of
...
particles.
2002-07-27 10:34:14 +00:00
Robert Osfield
2c1b07e752
Fix for Windows
2002-07-27 10:25:51 +00:00
Robert Osfield
933ecce3d9
Fixes for Win32 build.
2002-07-27 10:22:58 +00:00
Robert Osfield
73b007fccb
Added return value to addViewport.
2002-07-27 10:09:39 +00:00
Robert Osfield
83a276a16a
Added missing osg:: from various references to osg::Objectf
2002-07-26 18:46:18 +00:00
Robert Osfield
5622b8c48b
Added support for LWO2, send in by Pavel Moloshtan.
2002-07-26 16:33:25 +00:00
Robert Osfield
078cdbed49
Added Ruben Lopez's Inventor/VRML 1.0 loader.
2002-07-26 15:37:23 +00:00
Robert Osfield
fe8d097cc0
From Ferdinand Cornelissen - Futher updates to the DOF code.
2002-07-25 22:08:51 +00:00
Robert Osfield
150b055053
Added missing return statement to if() block in Matrix::mult code. Bug spotted
...
by Ray Conner.
2002-07-25 21:58:53 +00:00
Robert Osfield
95bdcfc3f6
Fixes to Doxygen files from Neil.
...
Removed unused set/getReportMode() methods and member variables from IntersectVisitor.
Added deep copy construction of Geometry objects.
2002-07-25 21:50:08 +00:00
Robert Osfield
7a4c43c06e
Changed > operator to < and swapped sides of expression, to enable compilation
...
across compilers.
2002-07-25 21:45:46 +00:00
Robert Osfield
cb1e1183c7
Fix to geometry combiner which wasn't check the overall color array values
...
in the lessGeometry functor.
2002-07-25 16:15:01 +00:00
Robert Osfield
ec6c2cd229
Fix to DOF Record from Sasa Bistroviae.
2002-07-25 15:25:42 +00:00
Robert Osfield
a6eb0a8209
Fix for colors in old flt models from Brede.
2002-07-25 15:21:18 +00:00
Robert Osfield
55b7ed10a1
Implemented the DOF handling more cleanly, as per OpenFlight15.7 docs.
2002-07-24 16:29:00 +00:00
Robert Osfield
42358b61ae
Added missing std:: to endl;
2002-07-23 18:44:03 +00:00
Robert Osfield
b2fa79293c
Added the missing _primtives from the copy constructor list.
2002-07-23 15:48:12 +00:00
Robert Osfield
9033b8a336
Added fog toggling to Viewer.cpp, 'y' reduces fog density, 'Y' increases
...
fog density.
2002-07-23 15:45:55 +00:00
Robert Osfield
2268246fa9
Added mode checking into StateSet to try and catch non texture OpenGL modes
...
which have been applied to the texture modes and visa-versa.
2002-07-23 14:35:38 +00:00
Robert Osfield
a41930ed17
Support added for Gnu C++ under Solaris.
2002-07-23 13:30:47 +00:00
Robert Osfield
80afddc08d
Checked in Tino Schwarze's port to HP-UX.
2002-07-23 10:48:22 +00:00
Robert Osfield
f007e7c3be
Merged changed to osgParticle from Macro, these add the ability to
...
orientate the particles to predefined axis.
2002-07-22 13:05:31 +00:00
Robert Osfield
3dd07ea354
Fixed more uninitialized variables and two potential memory leaks.
2002-07-22 12:41:55 +00:00
Robert Osfield
bfefb55a9f
Fixed various uninitiliazed variables.
2002-07-21 20:34:38 +00:00
Robert Osfield
3cda894ca5
Added default construction values for various member variables to fix report
...
uninitialized variables.
2002-07-21 10:44:25 +00:00
Robert Osfield
b23aea5173
Futher work on ensuring that all datatypes are initilizaed in OSG objects.
2002-07-21 10:04:33 +00:00
Robert Osfield
389dd8adbb
Futher changes to remove unitialized variables/reordering of initialization to
...
prevent unitialized warnings.
2002-07-21 01:29:11 +00:00
Robert Osfield
48b3be40e9
Various fixes to constructors to ensure that all variables are initialized.
2002-07-20 23:54:55 +00:00
Robert Osfield
0ff08a2978
Added missing default values to State constructor.
2002-07-20 22:44:21 +00:00
Robert Osfield
15315b7b4b
Added default values for FrameStamp.cpp constructor.
2002-07-20 22:40:24 +00:00
Robert Osfield
a1c54dc663
Removed the rendundent variables in the ConvexPlanerPolygon as these were
...
unused and unitialized.
2002-07-20 22:36:55 +00:00
Robert Osfield
c86a907ddd
Added new debugging switch checkOnAllocations which is now on by default
...
when compiling with debug build (under UNIX) and can be turned on or off
with the OSG_MM_CHECK_ON_ALLOCATIONS environmental variable.
2002-07-20 22:36:09 +00:00
Robert Osfield
2b7331b73b
Added some extra checks for memory initialization into the osg::MemoryManager,
...
this is turned off by default, even in debug build. However you can turn it
on by setting the OSG_MM_CHECK_FOR_UNINITIALIZED
2002-07-20 21:37:10 +00:00
Robert Osfield
298e3d5ae3
Umm... these should have already been commited, not sure why cvs has just
...
popped these ones up...
2002-07-20 18:27:40 +00:00