Thanks Etienne, your fix is now merged and submitted to CVS,
On 2/1/07, Etienne PIERRE <[EMAIL PROTECTED]> wrote:
On Thursday 01 February 2007, LALLAURET Fabrice - <SSII> wrote:
> I've a strange behavior with a 1.2 and cvs 1.3 release of OSG, some of
> my geometries mysteriously disappear on my flt terrain. By switching on
> the old flt plugin, all my missing polygons reappear.
> I've extracted a small part of my terrain with the problem (pb.flt
> attached). If I load this file, nothing is displayed. The problem seems
> to result from the hidden flag on the first polygon in the hierarchy.
> When I move the polygon in another place, the other geometries are
> displayed.
I've managed to track down the problem and this is due to the
MergeGeodesVisitor that merges a bit too much.
The problem seems to be on LessGeode::operator() that only takes the state
sets into account to compare Geodes and doesn't compare the nodeMask. Since
the first polygon found was setted with a nodeMask of 0, this is the one that
was retained.
I know there has already been a lot of discussions about the Optimizer and if
we can change the LessGeode::operator() to
struct LessGeode
{
bool operator() (const osg::Geode* lhs,const osg::Geode* rhs) const
{
if (lhs->getStateSet()<rhs->getStateSet()) return true;
if (lhs->getNodeMask()<rhs->getNodeMask()) return true;
return false;
}
};
In order to take this NodeMask into account.
By the way, thanks Robert for all the work on OpenSceneGraph (and also Brede
for the new OpenFlight loader).
Regards,
Etienne PIERRE
_______________________________________________
osg-submissions mailing list
[EMAIL PROTECTED]
http://openscenegraph.net/mailman/listinfo/osg-submissions
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/