På Fri, 08 Sep 2006 19:44:52 +0200, skrev Don Burns <[EMAIL PROTECTED]>:

I am playing around with osgEphemeris. It seems that when I set the
skyDomeRadius to 10000 meters, and position the viewer outside this radius
the entire skydome is culled. Even if the skyDome moves with eyepoint.

In Sphere.cpp @ Line 67:
osg::Geode *geode = new osg::Geode;

If I disable the culling of that Geode, everything works perfectly:

geode->setCullingActive(false);

Is this the best way to ensure that the sky doesn't get culled?



Could you try the following? Instead of calling this on Sphere, call it on
the EphemerisModel itself.  In the Viewer code, main.cpp about line 92,
insert this:

      ephemerisModel->setCullingActive(false);

... and see if that gives you the results you need.   If it is, well set
that in the ephemerisModel constructor for the default behavior.  Let me
know.

I have now tested, and unfortunately, setting the culling to false on the ephemerisModel, doesn't solve the problem.

I only managed to correct the problem by turning off culling for the geode in Sphere.cpp. I don't know if it have any side effects.

--
Joakim Simonsson
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to