About add geometry error

classic Classic list List threaded Threaded
3 messages Options
KaiTang KaiTang
Reply | Threaded
Open this post in threaded view
|

About add geometry error

Hello,
  First,I create a line using geometry.this line build as less 100 points.This line so normal in OSG ,but when I add it to OSGEarth,only show normal when the viewpoint near the line.The point will disappera when the range of the viewpoint and the line far and far.This make the line show error.Looks like LOD.
  I create a class public modelmode ,and the add this line as child of this class's matrixtransform.
  Anyone else have some advice?
Thanks.
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: About add geometry error

KaiTang,

Maybe it's small-feature culling? You can disable like so

viewer.getCamera()->setSmallFeatureCullingPixelSize(-1.0f);
Glenn Waldron / Pelican Mapping
KaiTang KaiTang
Reply | Threaded
Open this post in threaded view
|

Re: About add geometry error

  I also tired this method.But no effected.
  There is another case:the angle between the direction of view and the plane of this line is smaller,the line is closer to the right. When the direction of view is perpendicular to the plane of this line.,the number of lines is the least.