Quantcast

Culling traversal

classic Classic list List threaded Threaded
3 messages Options
JD JD
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Culling traversal

Hi,

I did my own annotation by inhereting GeoPositionNode.
It works fine.
Now i need a camera specific behaviour. Thus I add a cull callback and do my stuff in it.

My problem is that I need this callback to be always executed.
By default it wasn't executed if it was not in the camera frustrum.
So I add setCullingActive(false) to the geode.
Now it is executed almost always, but it remains some cases where the cullcallback is not called. Why?

Thank you,
JD.
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Culling traversal

JD,
I don't know the answer, but should be able to run in Debug mode and try to find a good breakpoint so you can trace into OSG and figure out why it's not making it to your cull callback.
Glenn Waldron / Pelican Mapping / @glennwaldron
JD JD
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Culling traversal

That was due to the occlusion culler that was activated by default.
Works fine now!
Loading...