i tried to add world.shp from data file in osg. i believe that my code is right but it didn't work as it should be. i can add it from earth file successfully by the way, so i don't think that i miss any dll. please help me,i've been working on it for two days.
here are my codes.
gleen,sorry to bother you,but i still don't know why.
so i took some picture here.i wish i could send you a vedio if it's necessary.
i can use feature_country_boundries.earth (which is an example earth file in oe2.8) both in cmd and my project.
but when i try to use world.shp by codes as an ModelLayer(because i might need to remove it or reload it later in my own project, and there's no way to achieve it by using earth file directly ) , and i've followd your oppinion to change "//" to "\" ,but it still doesn't show up.
can there be any chance that the reason that it doesn't show up is all because of my NearFarRatio?