Steve,

Verify that your bounding sphere is what you think it should be. Print out
the point cloud's bounding sphere every frame and check that it's correct.

osg::BoundingSphere bs = pointcloud->getBound():
std::cout << "Ctr " << bs.center() << " rad " << bs.radius() << "\n";

Brian

[EMAIL PROTECTED] wrote: -----


To: "OpenSceneGraph Users" <[email protected]>
From: "Steven Powers" <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
Date: 04/24/2008 11:11AM
Subject: [osg-users] Point cloud culling/paging


I’m experiencing some weird problems with my point cloud.

I have a fairly large terrain and a point cloud that expands the whole
terrain. When I build the point cloud and look around the environment whole
sections of the point cloud disappear when they aren’t centered within the
camera’s view. They will then reappear when the center of the missing
section is within view.

The point cloud is a POINTS primitive set and I have turned culling off (
setCullingActive (false)) as well as display lists.

I’ve noticed that if I do not add the terrain model to the scene it works
ok.

What culling/paging option do I need to set to make sure this doesn’t
happen?

-Steve



_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery. NOTE: Regardless of content, this e-mail shall not operate to
bind CSC to any order or other contract unless pursuant to explicit written
agreement or government initiative expressly permitting the use of e-mail
for such purpose.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to