I believe I have encountered a bug in osgPPU and using terrain. I have included code and a small terrain terrain file with this post. Would you please test what I am testing to see if you, also, encounter this strange anomaly?
1. Whenever I use terrain (a .ive file with it's associated directory) and I enable a pipeline, when I rotate the scene, the camera "locks" at horizontal. Then I keep trying to rotate the scene and eventually the camera "unlocks" and I can continue rotating the scene.
2. the pipeline in my included example is simply a pass-through pipeline. No Effects are applied.
3. If you 1) zoom into the scene a little & the slowly rotate the scene to bring the camera horizontal to the terrain, the camera will freeze.
4. keep rotating the scene and eventually you will see the underside of the terrain.
If you rotate the terrain too quickly, you may not notice this anomaly. However, in my program, I must be able to make the camera horizontal to the terrain and then from that horizontal position, title the camera up and make it look at the "sky." I can not do this at this time.
I believe the issue is somewhere in the pipeline unit code because when I deactivate the pipeline and simply view the scene without a pipeline active, this anomaly does not occur.
The size of the terrain file does not seem to matter, either. The terrain I have included is DTED level 0. I retrieved my data from
and 34.6500000000000 lat, -98.8000000000000 lon will get you some dted data that can be used for further testing. However, you will have to convert DTED to an ive. I did that with gdal and some other tools.
Would you please investigate this anomaly and tell me what you find?
PS the terrain and example code file are too large for this posting. Here is the URL to where they are: http://drop.io/exOsgPpuTerrain