Re: [osg-users] AutoTransform, ROTATE_TO_SCREEN and small feature culling

2018-03-30 Thread Hartwig Wiesmann
Hi Robert, I want to come back to my original remark that culling does not work correctly with AutoTransforms and ROTATE_TO_SCREEN. I have modified the example osgautotransform.cpp by adding a new class that contains an AutoTransform and a drawable. An object of this class is added to the

Re: [osg-users] AutoTransform, ROTATE_TO_SCREEN and small feature culling

2018-03-30 Thread Robert Osfield
Hi Hartwig, On 29 March 2018 at 22:51, Hartwig Wiesmann wrote: > what I would like to produce is an object that is always oriented towards the > user (screen) and has the same size independent of the zoom level. Though the > zoom level is limited in a certain range

Re: [osg-users] AutoTransform, ROTATE_TO_SCREEN and small feature culling

2018-03-29 Thread Hartwig Wiesmann
Hi Robert, what I would like to produce is an object that is always oriented towards the user (screen) and has the same size independent of the zoom level. Though the zoom level is limited in a certain range by an additional LOD. Therefore, I think that AutoTranslate is the only viable option,

Re: [osg-users] AutoTransform, ROTATE_TO_SCREEN and small feature culling

2018-03-29 Thread Robert Osfield
HI Hatwig, The code is correct, you can't cull something that you don't have a valid bounding volume for. Distabling culling for a particular node only affect that node and all it's parents, it does affect culling of the children which can still have their own culling be effective. If you don't

Re: [osg-users] AutoTransform, ROTATE_TO_SCREEN and small feature culling

2018-03-28 Thread Robert Osfield
Hi Hartwig, On 27 March 2018 at 17:44, Hartwig Wiesmann wrote: > I was not talking about the cullingActive flag but the method > isCullingActive! isCullingActive checks besides the cullingActive flag if the > boundary sphere is valid. As long as the boundary sphere

Re: [osg-users] AutoTransform, ROTATE_TO_SCREEN and small feature culling

2018-03-27 Thread Hartwig Wiesmann
Hi Robert, I was not talking about the cullingActive flag but the method isCullingActive! isCullingActive checks besides the cullingActive flag if the boundary sphere is valid. As long as the boundary sphere is invalid isCullingActive() returns false. This is the problem I reported. Code:

Re: [osg-users] AutoTransform, ROTATE_TO_SCREEN and small feature culling

2018-03-27 Thread Robert Osfield
Hi Hartwig, CullingActive flag is only effective for the Node that you set it for and all it's parents, it doesn't disable culling for the children of the node with CullingActive set. Robert. On 26 March 2018 at 22:28, Hartwig Wiesmann wrote: > Hi, > > I found a

[osg-users] AutoTransform, ROTATE_TO_SCREEN and small feature culling

2018-03-26 Thread Hartwig Wiesmann
Hi, I found a very old article covering this issue: https://www.mail-archive.com/osg-users@lists.openscenegraph.org/msg15948.html. In the meantime it seems to be that proposal (2) has been implemented and the AutoTransform's computeBound() method returns an invalid bounding sphere during the