Hi,
things you could try or check:
* is the bounding sphere OK?
* turn on/off displaylists and call ->dirty()
* make near/far use primitives, like so:
viewer.getCamera()->setComputeNearFarMode(osg::CullSettings::COMPUTE_NEAR_FAR_USING_PRIMITIVES);
viewer.getCamera()->setNearFarRatio(1e-6);
jp
On 12/07/10 22:19, David Glenn wrote:
Greetings All!
I hate to come up with another stupid one, but I've been banging my head with
this one!
One of the displays I doing has an ellipsoid globe appearing and above that, I
have some Overlay lines (what we call MOA lines) or marker lines. I have them
drawn above the globe and from a normal view the lines and polygons appear as
they should.
Note: I'm using a camera that is using the terrain manipulator to control so I
can zoom in and out move east west north south.
I'm using:
Code:
linesOverlay->addPrimitiveSet(new osg::DrawArrays(GL_LINE_LOOP,0,numPts));
to draw the line loop and
Code:
linesOverlay->addPrimitiveSet(new osg::DrawArrays(GL_POLYGON,0,numPts));
to draw a filled polygon.
linesOverlay is a Geometry class and I'm adding it to a Grode using the
addDrawable command.
Well, I noticed that when I zoom in on the polygon. that it appears normal, but
using the same data points for drawing a line loop, when I zoom in on a line, I
will get to within 2000 meters of the line and it will start disappear. first
at the middle of the focus point of the camera, then outward as I continue to
zoom in!
Note: I had similar problem with my polygon elements that seem to be getting
cut off by my near camera plane. I readjusted the near/far ratio that seemed to
fix it, but maybe that was the wrong approach?
FYI: I'm using OSG 2.8.1
I must be goofing up someware!
Any Ideas? Grin!
...
D Glenn
------------------------
D Glenn (a.k.a David Glenn) - Join the Navy and See the World ... from your
Desk!
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=29937#29937
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard.
The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.
This message has been scanned for viruses and dangerous content by MailScanner,
and is believed to be clean. MailScanner thanks Transtec Computers for their support.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org