ModelLayer *modelLayer = new ModelLayer(layerOptions);
This works great. It takes a minute or two to load and locks up the application, but the buildings eventually show (they're not textured, but I'm taking it one step at a time). When I uncomment the commented code, the function finishes instantly (as I expected thinking it will load in the background now), there are no errors output when setting OSGEARTH_NOTIFY_LEVEL to DEBUG, and the geometry never shows. I waited for a good 10 minutes. After reading the documentation, I was thinking maybe the min_expiry_time had something to do with it, but I can't figure out how to set it programmatically. Am I missing something?
Re: ModelLayer not displaying when adding a FeatureDisplayLayout
I found the osgearth_city example. Unfortunately none of the ModelLayers are showing in that either. I get 3 "[osgEarth]* [FeatureModelSource] Invalid feature source" errors as well. I'm using osgEarth 2.7.