Robert Osfield
a2c1dc85dc
Removed debug info
2008-08-25 10:38:07 +00:00
Robert Osfield
ff35465a33
Moved _stateset = new StateSet instances to setStateSet(new StateSet) to make
...
sure the wiring up of the StateSet parents is done consistently
2008-08-25 10:20:20 +00:00
Robert Osfield
8c8421e7a2
Added warning message
2008-08-22 16:37:56 +00:00
Robert Osfield
f930e707e8
Added checked against an empty _kdNodes list before commensing with intersection
2008-08-19 17:41:55 +00:00
Robert Osfield
3de3b2dccc
From Maceij Krol, "I have implement frame based expiration of PagedLOD children.
...
New attribute DatabasePager::_expiryFrames sets number of frames a PagedLOD child is kept in memory. The attribute is set with DatabasePager::setExpiryFrames method or OSG_EXPIRY_FRAMES environmental variable.
New attribute PagedLOD::PerRangeData::_
frameNumber contains frame number of last cull traversal.
Children of PagedLOD are expired when time _AND_ number of frames since last cull traversal exceed OSG_EXPIRY_DELAY _AND_ OSG_EXPIRY_FRAMES respectively. By default OSG_EXPIRY_FRAMES = 1 which means that nodes from last cull/rendering
traversal will not be expired even if last cull time exceeds OSG_EXPIRY_DELAY. Setting OSG_EXPIRY_FRAMES = 0 revokes previous behaviour of PagedLOD.
Setting OSG_EXPIRY_FRAMES > 0 fixes problems of children reloading in lazy rendering applications. Required behaviour is achieved by manipulating OSG_EXPIRY_DELAY and OSG_EXPIRY_FRAMES together.
Two interface changes are made:
DatabasePager::updateSceneGraph(double currentFrameTime) is replaced by DatabasePager::updateSceneGraph(const osg::FrameStamp &frameStamp). The previous method is in #if 0 clause in the header file. Robert, decide if You want to include it.
PagedLOD::removeExpiredChildren(double expiryTime, NodeList &removedChildren) is deprecated (warning is printed), when subclassing use PagedLOD::removeExpiredChildren(double expiryTime, int expiryFrame, NodeList &removedChildren) instead. "
2008-08-17 16:52:35 +00:00
Robert Osfield
38f6cddc2c
Changed osg::ImageSequence::set/getDuration to set/getLength() to be in keeping with the
...
osg::ImageStream's getLength().
2008-08-15 16:21:44 +00:00
Robert Osfield
927942a0f8
Further work on osg::ImageSequence, improving pause functionality, and introducing new seek(double time) method
2008-08-15 12:45:20 +00:00
Robert Osfield
49e7358bf6
Added initial looping and pause play support
2008-08-14 16:29:12 +00:00
Robert Osfield
f17b307305
Added NullStream class that automatically creates and delete the NullStreamBuffer, thus fixing a memory leak
2008-08-05 15:11:47 +00:00
Robert Osfield
6595562442
Removed debug info
2008-08-04 12:27:22 +00:00
Robert Osfield
ced418ccb5
Moved bb expansion out of loop.
2008-08-03 16:48:12 +00:00
Robert Osfield
e525dd21bf
Improved handling of PAGE_AND_RETAIN_IMAGES
2008-07-25 18:44:13 +00:00
Robert Osfield
65d5ef608d
Reverted back to using std::list<std::String>
2008-07-25 17:42:37 +00:00
Robert Osfield
d137394169
Added Mode support
2008-07-25 16:23:00 +00:00
Robert Osfield
d0890ab250
Updated wrappers, and further refined the ImageSequence API
2008-07-25 16:11:51 +00:00
Robert Osfield
ec4d189b64
Added ImageSequence to .ive plugin, added support for multiple ImageThreads in osgDB::ImagePager
2008-07-25 13:45:07 +00:00
Robert Osfield
86ca0860cc
From Paul Martz, typo fixes
2008-07-23 21:25:09 +00:00
Robert Osfield
daa3d2381a
Implemented ImagePager internals
2008-07-23 19:04:46 +00:00
Robert Osfield
6488ff23a5
Fixed unitialized variable
2008-07-23 15:42:02 +00:00
Robert Osfield
cc2af85c96
Further work on ImageSequence
2008-07-22 20:20:16 +00:00
Robert Osfield
c9dc578186
Added support for pruning old images, recording the Duration in the .osg file, and -o filename output support in osgimagesequence.
2008-07-22 16:44:49 +00:00
Robert Osfield
669d6be0b2
Fixed handling of TextureCubeMap's with mipmapped/ImageSequence/PBO's.
2008-07-22 14:47:59 +00:00
Robert Osfield
5ab73e9f80
Added support for ImageSequence to all Texture classes
2008-07-22 12:28:46 +00:00
Robert Osfield
041a06b89d
Further work on osg::ImageSequence/osgDB::ImagePager
2008-07-21 21:00:57 +00:00
Robert Osfield
acd7e65687
Added basic image sequencing
2008-07-21 17:28:22 +00:00
Robert Osfield
ac61676368
Initial cut of osgimagesequence example
2008-07-21 10:57:06 +00:00
Robert Osfield
d17a255d8e
First cut of osg::ImageSequence class
2008-07-21 09:46:53 +00:00
Robert Osfield
4aed0a7eac
From Ulrich Hertlein, "attached are some minor tweaks:
...
- fixed typos in osgViewer/ViewerBase
- const-ness in include/osg/View findSlaveIndexForCamera
- supported options for STL reader, fixed return values to reflect proper errors
- supported options for DirectX reader, fixed return values
- normals pseudo-loader: scaling normals to a const (but variable) fraction of the bounding sphere radius
"
2008-07-17 13:51:14 +00:00
Robert Osfield
5f0f80cab2
Changed int's to unsigned int's to avoid warnings
2008-07-16 13:26:06 +00:00
Robert Osfield
850034ab75
Moved the _textureObjectBuffer assignment to after the imagery has been download to avoid crashes under multi-threaded compile of texture objects (was causing a crash with 3D Textures, but is something that would happen with other Texture types as well.)
2008-07-16 13:23:58 +00:00
Robert Osfield
41bd615f3a
Removed a division by precomputing the associated values
2008-07-16 11:40:01 +00:00
Robert Osfield
e6c99b0434
Fixed typo
2008-07-15 21:28:22 +00:00
Robert Osfield
35bc9c7dd2
From Art Trevs, Removed GLeunm version setAttachment() to avoid ambigiuity with
...
whether to enable MRT.
2008-07-15 14:24:21 +00:00
Robert Osfield
a856459a86
Moved the building and intersecting of the KdTree into the .cpp, and cleaned up
...
the header to ready it for wider usage
2008-07-11 16:48:39 +00:00
Robert Osfield
d3fd43cc6f
Streamlined KdTree implementation
2008-07-10 15:50:10 +00:00
Robert Osfield
8edee96275
Cleaned up KdTree implementation
2008-07-09 19:42:15 +00:00
Robert Osfield
134c86c2d5
Implement hierachy culling in KdTree::intersect(..)
2008-07-07 20:27:56 +00:00
Robert Osfield
d05236bfb4
Implemented intial KdTree triangle intersection code, but without culling implemented
2008-07-07 13:21:37 +00:00
Robert Osfield
682be50e2a
Changed types to avoid warnings under Windows
2008-07-07 09:40:30 +00:00
Robert Osfield
c4e8d6ee42
Changed the DatabasePager so that it bypasses the Registry::readNode() method and calls
...
readNodeImplementation() directly to avoid calling the KdTreeBuilder.
Updated wrappers.
2008-07-06 18:27:10 +00:00
Robert Osfield
3965fe357b
Moved KdTree build code into osg::KdTree
2008-07-06 12:14:19 +00:00
Robert Osfield
e70e3a6d5d
Converted TerrainManipulator to use osgUtil::InterectionVisitor rather than the
...
old IntersectVisitor
2008-07-04 19:16:19 +00:00
Robert Osfield
44d144997e
Added prelimnary KdTree data structure and automatic kdtree build support
...
into osgDB::Registry/osgTerrain so that newly created subgraphs can have
KdTree built on all osg::Geometry automatically on load/creation.
2008-07-04 15:57:48 +00:00
Robert Osfield
3f025bec5d
From Mario Valle, "xed the following warning on Linux 64 bits Athlon:
...
/users/mvalle/OSG/OpenSceneGraph/src/osg/BufferObject.cpp: In member function `virtual void osg::ElementBufferObject::compileBuffer(osg::State&) const':
/users/mvalle/OSG/OpenSceneGraph/src/osg/BufferObject.cpp:600: warning: cast to pointer from integer of different size"
2008-07-03 15:01:04 +00:00
Robert Osfield
14c86a5389
From Mario Valle, removed extraneous spaces
2008-07-03 14:59:07 +00:00
Robert Osfield
c6ba70e3ad
From Mathias Froehlich, "It appears not to be sufficient to set a cmake variable to get a define in
...
such a config file. Instead set that variable to 1. Also included a small compile fix, that appears to be required than ..."
2008-07-01 09:40:06 +00:00
Robert Osfield
214491dd94
From Mathias Froehlich, "Update to the configure check for msvc 7.1.
...
MemoryBarrier() is used in the implementation, so it should be checked.
This in effect disables the faster atomic ops on msvc 7.1 and older, even if
only the MemoryBarrier() call is missing. But it ensures for the fist cut
that it will build everywhere. If somebody cares for msvc 7.1 enough and has
one for testing installed, he might provide the apropriate defines to guard
that MemoryBarrier() call.
I tested that msvc8 32/64bit still passes the configure tests and compiles.
"
2008-06-27 16:47:43 +00:00
Robert Osfield
34f58482e6
Moved the apply(&) default implementations from the header into the NodeVisitor.cpp,
...
and changed the casts to use static_cast<>.
2008-06-27 12:35:56 +00:00
Robert Osfield
44c125a801
Changed the removeCamera() method so that it now actively calls releaseGLObjects()
...
on all children of a camera that aren't shared with other cameras on that context.
This change fixes problems with allocating and deleting views.
2008-06-26 16:45:50 +00:00
Robert Osfield
260d0d384f
From Mathias Froehlich, build fixes for various unices
2008-06-26 12:08:37 +00:00