Robert Osfield
cbeeeefdab
Added osg::Drawable::PrimitiveFunctor and TriangleFunctor subclass for
...
querrying the primitive data inside Drawables. Moved various support
classes over from being osg::GeoSet based to osg::Geometry based.
2002-06-25 20:27:51 +00:00
Robert Osfield
336c47e5fe
Fixed osgText::Text::DrawModeType::ALIGNEMENT spelling mistake, now
...
is ALIGNMENT.
2002-06-24 21:44:27 +00:00
Robert Osfield
cbb95d0445
Checked in .osg support for the new osg::Geometry class.
2002-06-24 21:37:34 +00:00
Robert Osfield
d174f60f8c
Added required std:: to front of endl to fix Win32 build.
2002-06-24 12:53:27 +00:00
Robert Osfield
f2e215bf44
Added conversion to osg::GeoSet::converToGeometry() utility to help the
...
migration to and testing of the new osg::Geometry class.
2002-06-23 21:43:46 +00:00
Robert Osfield
bbc129e5c6
Compile Fixes for Win32.
2002-06-22 15:46:43 +00:00
Robert Osfield
7dd82beaa9
Temporarily removed the references to multi-texturing calls.
2002-06-21 19:24:43 +00:00
Robert Osfield
49ab8f4706
Added new osggeometry demo to test the work on the new osg::Geometry Drawable.
2002-06-21 16:45:45 +00:00
Robert Osfield
53b6d0c92e
Bug fix to the size calculation of bmp images, changed both the reading and
...
writing of images.
2002-06-21 15:14:29 +00:00
Robert Osfield
ac93c6cdfc
Fixed constructor for TemplateArray(const TemplateArray& t,const CopyOp& copyop).
2002-06-21 07:48:05 +00:00
Robert Osfield
476f931eaa
Addd new experimental osg::Geometry Drawable which will eventually replace
...
GeoSet. Currently doesn't draw anything, and is very much in the
early design stages.
2002-06-20 19:54:08 +00:00
Robert Osfield
d763a47d2e
Mods to MemoryManager to make the optimized build produce dummy
...
implementations for all the public functions found in the header,
this should prevent problems when not compiling in the MemoryManager
under IRIX 64 build.
2002-06-20 18:17:36 +00:00
Robert Osfield
d31624d54a
Fixed incorrect naming of ConvexPlanerOccluder.
2002-06-19 20:38:08 +00:00
Robert Osfield
4f4f68e961
Added support for reading the new OSG_MAX_TEXTURE_SIZE environmental variable
...
inside the osg::Image::ensureValidSizeForTexturing() method. The
smallest of GL_MAX_TEXTURE_SIZE and OSG_MAX_TEXTURE_SIZE is used for the
final max texture size.
This new env. var. allows users to deliberate cap the size of their textures
so they can test whether their models are limited by texture memory. If
reducing the max texture size increases performance then you are limited
by texture memory!
2002-06-19 18:45:05 +00:00
Robert Osfield
77e1fb7f80
Added support for reading and writing OccluderNode's to the .osg file format.
2002-06-19 16:06:03 +00:00
Robert Osfield
b12e36cede
Added computation of the bounding volume of osg::OccluderNodes.
...
Added support for osg::BoundingSphere::expandBy*(osg::BoundingBox) and have
added osg::BoundingSphere/Box::valid() which deprecates isValid(), this
is to be more consistent with other classes in the OSG.
2002-06-19 15:18:47 +00:00
Robert Osfield
21beb236d2
Added support for occlusion of holes in occluders, and cleaned up the
...
interface to ShadowVolumeOccluders.
2002-06-19 10:19:10 +00:00
Robert Osfield
b3c26d5634
Changed the osg::LightSource so its Light attribute is now generalised to
...
be a StateAttribute. This allows alternative implementations of Lights
other than the standard osg::Light.
2002-06-19 08:34:19 +00:00
Robert Osfield
5e85cd59ab
Added support for occluders occluding other occluders, which helps reduce
...
the number of occluder that will be used in cull traversal to only the
ones that will be effective. Note. Holes in occluders arn't handled in
this occluder occlusion test, will implement this later.
2002-06-18 22:35:48 +00:00
Robert Osfield
aa58ecae2f
Clean ups for the Windows build.
2002-06-18 10:18:12 +00:00
Robert Osfield
d3b4a36447
Added the length argument to a std::string argument, under Linux it
...
compiled with the default value npos, under Windows it broke the build,
add the npost excpilicity should get round this difference in implementation.
2002-06-18 09:09:37 +00:00
Robert Osfield
6767dd49d0
Rewrote the FileUtils support for data and library file paths, moving the
...
storage of the path lists into osgDB::Registry, and changed the data
structor from a char* to a std::deque. Changed a names of couple of the
convinience functions in osgDB/FileUtils to better reflect the two
public FilePathList's - DataFilePathList and the LibraryFilePathList.
Added support into the osgDB::Registry::readNode/Image/Object methods
for pushing and popping the path of the current file being loaded.
2002-06-17 21:50:37 +00:00
Robert Osfield
27412c27c9
Fixes to the occluder culling code to properly disable occluders to prevent
...
self occlusion.
2002-06-17 09:10:26 +00:00
Robert Osfield
156a9fbaea
Fixes for Visual .NET and Mingw builds, and fix MacOSX notify() crash.
2002-06-15 20:57:50 +00:00
Robert Osfield
52c36dde70
Added computation of occluders volume scaled relative to the frustum volume,
...
all volumes computed in eye coords.
2002-06-15 12:14:42 +00:00
Robert Osfield
25b420ac0e
Added computation of the occluders volume, scale it to a ratio of the
...
frustum.
2002-06-14 16:28:47 +00:00
Robert Osfield
7adb75c572
Added occluder hole test code into the osgoccluder demo. The code works,
...
but I've commented it out right now as the Geode physically representing
the occluder doesn't yet have a hole in it - just a cosmetic thing.
2002-06-14 14:50:31 +00:00
Robert Osfield
73ec80843f
Refined the CollectOccluderVisitor so that it checks the subgraph below
...
a node contains occluders before traversing.
2002-06-14 13:49:59 +00:00
Robert Osfield
c71bf35152
Improvements to the plane clipping code.
2002-06-14 11:27:34 +00:00
Robert Osfield
d7760fbbd4
Further updates to the occlusion culling code, also adding missing OccludeNode
...
file the .osg plugin.
2002-06-14 08:45:28 +00:00
Robert Osfield
61df1ed6b7
Further work on occlusion culling.
2002-06-13 23:46:02 +00:00
Don BURNS
8c5722577e
removed the use of gettimeofday for 32 bit architectures...
2002-06-13 19:39:28 +00:00
Robert Osfield
6888d73554
Added #include <osg/ref_ptr> so that it will compile properly regardless
...
of include order.
2002-06-13 19:34:27 +00:00
Robert Osfield
f2cbab46d4
Added -osgGA to the Makefile list.
2002-06-13 19:10:29 +00:00
Robert Osfield
4e5a3696e3
Merge Randall's changes.
2002-06-13 18:27:14 +00:00
Robert Osfield
0ebe473eb5
Further work on Occlusion Culling. Most of work is complete, just debugging
...
required now.
2002-06-13 16:21:00 +00:00
Robert Osfield
8dcb26967c
Removed inappropriate inline keyword which was breaking the IRIX build.
2002-06-12 16:23:59 +00:00
Robert Osfield
171312e720
IRIX build fix.
2002-06-12 15:43:47 +00:00
Robert Osfield
65a9a8043e
Changes for MacOSX build, send in by Bob Kuehne.
2002-06-12 14:57:35 +00:00
Robert Osfield
47bbe8f3cc
Fixed the osgDB::getFilePath, osgDB::getSimpleFileName() and osgDB::getStrippedName()
...
so that they check for both unix style '/' and windows style '\' slashes in
file names.
2002-06-12 14:46:44 +00:00
Robert Osfield
e467027946
Fix for renaming of ShadowOccluderVolume to ShadowVolumeOccluder.
2002-06-12 13:54:14 +00:00
Robert Osfield
c7e99ff77a
Further work on occludision code.
2002-06-12 09:22:30 +00:00
Robert Osfield
fa13d948b5
A little more work on Occlusion culling.
2002-06-11 19:52:55 +00:00
Robert Osfield
247cb3ff7e
Checked in Macro Jez's additions to osgText to support .osg IO make it
...
a fully functioning NodeKit.
Also reimplement notify() to try an prevent a crash which has been caused by
to objects in notify.cpp being initiliazed twice, the second time the auto_ptr
holding the dev/null ofstream was being initilized to 0.
2002-06-11 18:41:57 +00:00
Robert Osfield
e1ba8a6292
Added osg::CollectOccludersVisitor which is a helper class for finding active
...
occluder in the view frustum, to be used as pre cull traversal.
2002-06-10 13:50:25 +00:00
Robert Osfield
348419219d
Created new helper class osg::CullStack to handle the accumulation of projection,
...
modelview and culling sets, to be used during travesal of the scene graph, such
as the cull traversal.
2002-06-10 11:21:21 +00:00
Robert Osfield
d91b848a63
Checked in migration from osgUtil based GUIAdapter code to Neil Salter's
...
osgGA (Gui Abstraction). This may break users code, but all it should
require to fix the builds should be a change from
osgUtil::CameraManipulator (etc) to osgGA::CameraManipulator and
include <osgUtil/CameraManipulator (etc) to osgGA/CameraManipulator and
the extra dependency of the link line.
2002-06-09 13:10:09 +00:00
Robert Osfield
0a8d0a255f
More more occlusion culling.
2002-06-08 19:58:05 +00:00
Robert Osfield
bf6bf60e21
Added osgoccluder demo, it creates a single quad occluder, but the culling
...
code is not complete yet, so it won't actually do any occlusion culling,
the demo is here so I can test the evolving occlusion culling code.
2002-06-07 20:03:08 +00:00
Don BURNS
9181deb323
#ifdefed out cstdlib for irix
2002-06-07 14:54:33 +00:00