There is a problem in the example osgearth_measure.
When I draw a line for the purpose of measuring distance and I see close to 3500 meters distance,
at some angles while tilting line disappears.
I attach some screenshots. In the first screenshot that works well because the angle is 45 degrees .
In the second screenshot line was cut in half when the angle is 55. The third screenshot line disappeared at all - the angle is 70 degrees.
I attach too the earth file ...
Thank you for all that take the benefit of all :-)
Hi gwaldron and thank you for the quick response.
I did exactly what you told me to do.
And unfortunately my problem is still not resolved.
I think it only happens to certain observation angles and very specific file as I attached the beginning.
Do as you draw the line as to me it does not happen?
Perhaps I have another problem differently?
Thank you for all your help and contribution
Is anyone able to reproduce the problem on his computer?
Here are instructions:
1. Copy the text file that I attached above to the new Earth file.
2. Run it with the Measurement Tool osgearth_measure.exe.
3. Click on 1 - portview number 1 - "No Bug". The camera approaches the bay near airport of Boston
4. Draw the line to measure the length of the bay as shown and see the red line.
5. Click on 3 -portview number 3 - the line disappears.
When returning portview number 1 shortcut - is shown again.
Thank you very much for your cooperation.
I's convinced that repairing the problem would be for the benefit of all
I followed your instructions to the letter with osgEarth master branch; it seems to work fine.
There are certainly some times when the auto-depth-offset won't help, but that is usually only if you draw the measurement at a very high altitude and them zoom in very close. But in your example if should be OK.
Thank you very much gwaldron for all your help and support.
I'm working on version osgEarth 2.7, And on this version I added the line of auto-depth-offset
And still did not work for me.
Is that the problem? My version is not up to date ?
If I will update to osgEarth master branch version - It will work as I want in the above example?
Thank you for your advice.
I did what you said ... I ran the oageath_measure sample in the master version. The situation has improved in the attached scenario .
But unfortunately, It still happens when pitch="-90"
I attach images and earth file .
I would be happy if you can run the attached file and see if it happens to your pc too
Thanks for your help