Re: [osg-users] PointSprites = small feature culling = ClusterCullingCallback
Hi Sherman, The call setCullMode(osg::CullSettings::VIEW_FRUSTUM_SIDES_CULLING); is enabling just view frustum culling for the sides of the frustum, it'll switch off cluster culling along with all other culling at the same time. To just disable small feature culling do: viewer.getCamera()-setCullingMode( viewer.getCamera()-getCullingMode() ~osg::CullSettings::SMALL_FEATURE_CULLING); Robert. On 7/3/07, sherman wilcox [EMAIL PROTECTED] wrote: I'm using osg::PointSprites on an ellipsoid. To overcome terrain intersection problems between the sprites and the ellipsoid I disabled depth testing on the sprites. Problem solved. However, I then have the problem of sprites showing through the ellipsoid when you spin the globe around such that the sprites are on the other side of the globe. So, I decided to use osg::ClusterCullingCallback to solve that problem. Followed the example in osgfadetext but the cluster culling didn't work. After some debugging I discovered that disabling small feature culling was preventing the Cluster culling from working. But, if I don't disable small feature culling the point sprites don't display. What should I do here? BTW, I'm disabling small feature culling via: viewer.getCamera()-setCullingMode(osg::CullSettings::VIEW_FRUSTUM_SIDES_CULLING); ___ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/ ___ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
Re: [osg-users] PointSprites = small feature culling = ClusterCullingCallback
On 7/4/07, Robert Osfield [EMAIL PROTECTED] wrote: Hi Sherman, The call setCullMode(osg::CullSettings::VIEW_FRUSTUM_SIDES_CULLING); is enabling just view frustum culling for the sides of the frustum, it'll switch off cluster culling along with all other culling at the same time. To just disable small feature culling do: viewer.getCamera()-setCullingMode( viewer.getCamera()-getCullingMode() ~osg::CullSettings::SMALL_FEATURE_CULLING); Robert. I built a prototype that has one point primitive on a globe. If I use SMALL_FEATURE_CULLING the point disappears. But if I use VIEW_FRUSTUM_SIDES_CULLING then the point is displayed. But, as you pointed out using only VIEW_FRUSTUM_SIDES_CULLING will disable cluster culling. In the meantime, I've implemented my own over the horizon culling to solve the original problem. I suppose the question now becomes why does the point primitive disappear when I use SMALL_FEATURE_CULLING with osgViewer? ___ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
Re: [osg-users] PointSprites = small feature culling = ClusterCullingCallback
On 7/4/07, sherman wilcox [EMAIL PROTECTED] wrote: I built a prototype that has one point primitive on a globe. If I use SMALL_FEATURE_CULLING the point disappears. But if I use VIEW_FRUSTUM_SIDES_CULLING then the point is displayed. But, as you pointed out using only VIEW_FRUSTUM_SIDES_CULLING will disable cluster culling. In the meantime, I've implemented my own over the horizon culling to solve the original problem. Cluster culling should work, my suggestion for disabling just small feature culling is all that should be required to fix things. I suppose the question now becomes why does the point primitive disappear when I use SMALL_FEATURE_CULLING with osgViewer? The bounding sphere of the geometry will be projected into screen space, if its smaller than the small feature cutoff size then it'll be culling. A single point geometry will have a bounding sphere of 0 radius so will be culled. Robert. ___ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
Re: [osg-users] PointSprites = small feature culling = ClusterCullingCallback
On 7/4/07, Robert Osfield [EMAIL PROTECTED] wrote: On 7/4/07, sherman wilcox [EMAIL PROTECTED] wrote: I built a prototype that has one point primitive on a globe. If I use SMALL_FEATURE_CULLING the point disappears. But if I use VIEW_FRUSTUM_SIDES_CULLING then the point is displayed. But, as you pointed out using only VIEW_FRUSTUM_SIDES_CULLING will disable cluster culling. In the meantime, I've implemented my own over the horizon culling to solve the original problem. Cluster culling should work, my suggestion for disabling just small feature culling is all that should be required to fix things. I suppose the question now becomes why does the point primitive disappear when I use SMALL_FEATURE_CULLING with osgViewer? The bounding sphere of the geometry will be projected into screen space, if its smaller than the small feature cutoff size then it'll be culling. A single point geometry will have a bounding sphere of 0 radius so will be culled. Yes, it all works now. There was a mistake in my code. Sorry for the bother. ___ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
[osg-users] PointSprites = small feature culling = ClusterCullingCallback
I'm using osg::PointSprites on an ellipsoid. To overcome terrain intersection problems between the sprites and the ellipsoid I disabled depth testing on the sprites. Problem solved. However, I then have the problem of sprites showing through the ellipsoid when you spin the globe around such that the sprites are on the other side of the globe. So, I decided to use osg::ClusterCullingCallback to solve that problem. Followed the example in osgfadetext but the cluster culling didn't work. After some debugging I discovered that disabling small feature culling was preventing the Cluster culling from working. But, if I don't disable small feature culling the point sprites don't display. What should I do here? BTW, I'm disabling small feature culling via: viewer.getCamera()-setCullingMode(osg::CullSettings::VIEW_FRUSTUM_SIDES_CULLING); ___ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/