Robert Osfield
067619d1fb
Removed Lighting.cpp from repository, it is nolonger used and was just hanging
...
around erroneously.
2001-10-19 15:53:59 +00:00
Robert Osfield
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.
2001-10-19 15:30:54 +00:00
Robert Osfield
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.
2001-10-19 14:22:02 +00:00
Robert Osfield
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.
The osg::CullVisitor has updated to take account of
both the explicit control via setCullingActive and the implicit culling
disabling through children being disabled.
This feature is useful for nodes which don't have a bounding volume to cull
against, earth sky implementations and light sources.
The default osg::Node::_cullingActive is true, i.e. culling is enabled by
default.
2001-10-19 12:56:37 +00:00
Don BURNS
e467f44575
Fixed static libraries in madefs.linux and error in ReaderWriterPFB.cpp
2001-10-17 22:17:23 +00:00
Bryan THRALL
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
2001-10-16 22:30:04 +00:00
Robert Osfield
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.
2001-10-16 21:47:47 +00:00
Bryan THRALL
557e2d8faa
This was the old project file. It's no longer used.
2001-10-16 21:32:57 +00:00
Bryan THRALL
a203a1b127
*** empty log message ***
2001-10-16 20:56:46 +00:00
Robert Osfield
2ce6cdd6b2
Fixes for IRIX build - submitted by Randall Hopper.
2001-10-16 18:39:57 +00:00
Robert Osfield
ada36c3462
Fixes for Win32 compilation.
2001-10-16 16:48:19 +00:00
Robert Osfield
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).
2001-10-16 15:03:10 +00:00
Robert Osfield
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.
2001-10-16 14:24:38 +00:00
Robert Osfield
a9564008f3
Added support for transforming LOD and Billboard centers to the
...
OrientationConverter and the flattenTransformVisitor in sgv.
2001-10-16 10:04:26 +00:00
Robert Osfield
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.
2001-10-16 10:03:19 +00:00
Robert Osfield
c0b0ab5d62
Fixed problem caused by ReaderWriterPFB::writeNode(..) not ensuring that the
...
file extension was .pfb. Have added a check.
2001-10-16 08:24:26 +00:00
Don BURNS
747019d0b9
added float *() operator to Vec{2,3,4} so we can pass Vec3's directly to
...
OpenGL glVertex?fv().
2001-10-16 03:59:37 +00:00
Robert Osfield
de924ca759
Fixes for compilation under IRIX, submitted by Randal Hopper, with mods
...
from Robert.
2001-10-15 15:50:55 +00:00
Robert Osfield
5de4e8e6d8
Made the new global state attribute instances in osg::State use osg:ref_ptr
...
to automatically handle the memory deletion.
2001-10-15 14:29:40 +00:00
Robert Osfield
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.
2001-10-15 14:07:54 +00:00
Robert Osfield
f27c006e28
Fixed rotations to account to the fixes made to Quat and Matrix related to
...
right hand rule rotation.
2001-10-15 11:18:51 +00:00
Robert Osfield
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.
2001-10-15 08:40:30 +00:00
Don BURNS
d66bfdbbc5
Updated pfb loader to load pfb files into osg. Still broken for loading osg
...
files into Performer, however.
2001-10-15 03:32:47 +00:00
Robert Osfield
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.
2001-10-14 17:54:25 +00:00
Robert Osfield
e719569b42
Added OrientationConverter.cpp to the VisualStudio project files for osgconv.
2001-10-14 16:56:03 +00:00
Robert Osfield
407978a248
Changed the OrientationConverter.cpp's to have consitent captilization as its
...
associated header file.
2001-10-14 16:55:12 +00:00
Robert Osfield
45eefec3f0
Fixed TransformFunctor code so that it now uses the inverse of the
...
transformation matrix to transform the normal.
2001-10-14 14:23:47 +00:00
Robert Osfield
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.
2001-10-14 14:23:03 +00:00
Robert Osfield
39ea16aad7
Added osg::StateSet::merge(const StateSet& rhs) merges merges the modes and
...
attributes of rhs into 'this' stateset.
2001-10-14 09:58:49 +00:00
Robert Osfield
72dc08cd9a
Fixed the Flight and Drive manipulators to work with the updated Matrix::rotate
...
code.
2001-10-14 09:57:33 +00:00
Don BURNS
3ecaf3cd6c
Fixed a small boo-boo in definition of bit masks in include/osg/Drawable
...
Fixed incorrect normal conversions for osgconv.
2001-10-14 06:01:31 +00:00
Don BURNS
a170b06d6d
Mr. O added fancy, shmanzy C++ code, but broke normal transform functionality
...
Fixed.
2001-10-14 05:33:36 +00:00
Don BURNS
0e8c2ef89b
Quick 'n dirty fix to TrackballManipulator to get the rotations doing the
...
right things after the Quat fixes.
2001-10-14 05:14:37 +00:00
Don BURNS
e8edf1f6e6
Cleaned up some 'make clobber' issues in root Makefile
2001-10-14 04:50:04 +00:00
Don BURNS
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.
2001-10-14 04:28:50 +00:00
Robert Osfield
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.
2001-10-13 11:16:10 +00:00
Don BURNS
a57ab6d121
Added Mr. Osfields dynamic_cast<> and test for validity test.
2001-10-13 09:48:37 +00:00
Don BURNS
610358033f
backed out right-handed coordinate transform for makeRot(vec3,vec3) in Quat.cpp
2001-10-13 08:34:02 +00:00
Don BURNS
b993f14cac
A few more clean ups
2001-10-13 08:32:11 +00:00
Don BURNS
d391a6edc3
Cleaned up the usage message
2001-10-13 07:41:54 +00:00
Don BURNS
79a992ac72
Updated osgconv to be able to handle orientation swapping.
2001-10-13 07:24:25 +00:00
Don BURNS
49982ac835
Changed some routines to produce right-handed rotations.
2001-10-13 06:23:55 +00:00
Don BURNS
fef731c689
checking files in to move development location
2001-10-13 06:22:49 +00:00
Don BURNS
5b3a52547a
Removed personal note in Matrix header file
2001-10-13 01:28:33 +00:00
Robert Osfield
58582998fa
Added support for the new AttributeUpdateFunctors.
2001-10-12 20:06:35 +00:00
Robert Osfield
9db63dfd5d
Added != method to Vec2,Vec3,Vec4 and did further work on the
...
AttributeUpdateFunctors.
2001-10-12 20:05:55 +00:00
Don BURNS
cb17e99420
Added include/osg/Math to Makefile TARGET_INCLUDE_FILES and fixed references
...
to _mat in ConvertToPerformer.cpp
2001-10-12 17:45:15 +00:00
Robert Osfield
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.
2001-10-10 20:20:14 +00:00
Robert Osfield
3c5b9c813d
Fixed spelling of osg::GeoSet::getNumInterleavedIndices, was missing a 'n'!
2001-10-10 14:38:12 +00:00
Robert Osfield
a7f0cacc41
Fixed a crash when opening an erroneous test file (reopen.bmp).
2001-10-09 21:55:47 +00:00