mousebird-consulting-inc / WhirlyGlobe

WhirlyGlobe Development
Other
828 stars 254 forks source link

addSphericalEarthLayerWithImageSet: method not loading high resolution globe? #233

Closed SandeepCoder closed 9 years ago

SandeepCoder commented 10 years ago

Hi Steve,

We integrated the Whirly globe successfully. Thanks for making wonder full stuff. We created high resolution pvrtc file set using following command: ../../ImageChopper-hbixblephkkmlvetlatjfhxviiuw/Build/Products/Debug/ImageChopper world.topo.200412.3x21600x10800.jpg highres_wtb highres_wtb -multires 3 -outSize 512 -borderSize 16 -texTool /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/texturetool

Folder is created with all files and plist. But there is difference in keys from your sample 'lowres_wtb_info.plist'. Hoping this is not an issue. When i call '[globeObject addSphericalEarthLayerWithImageSet:@"highres_wtb_info"]', layer is created successfully but not loading on globe?

For information following keys are generated in plist are: baseName, borderSize,format,maxLevel,pixelsSquare.

We also tried to look into one of issue: ImageChopper multires don't seems to work #31 and on this discussion you suggested to use 'addQuadSphericalEarthLayerWithImageSet' method but we didn't find this method in code.

Please suggest. Thanks in advance.

mousebird commented 10 years ago

All the individual files in highres_wtb need to be in the project and they need to all be copied into the bundle. That's what I'd check first.

SandeepCoder commented 10 years ago

Hi Steve, Yes, They are copied in project under 'resource' folder and also available under 'Copy Bundle Resource'. But still not loading. If needed i can share 'highres_wtb' file folder with you. Is I'm missing some file to add?

Please advise and thanks in advance. Please find the screen shot below. screen shot 2014-08-29 at 9 17 25 pm

mousebird commented 10 years ago

Make sure the .info file is in the bundle as well.

If that still fails, I'd suggest stepping into the loading logic to make sure it's finding what it needs.

SandeepCoder commented 10 years ago

Yes, that is in bundle as well.

SandeepCoder commented 10 years ago

Do 'addSphericalEarthLayerWithImageSet:' method support loading multi resolution files also? With different keys in info.plist as compared with single res info.plist?

SandeepCoder commented 10 years ago

Even 'layerDidLoad:' delegate gets called. Debugging ...

mousebird commented 10 years ago

Oh, right the multires version. I'm out for the rest of the day, but I'll try to run a test later.

SandeepCoder commented 10 years ago

Frustrating… Getting 'Eigen/Eigen' file not found error while compiling 'WhirlyGlobe-MaplyComponent' library project. Any clue?

mousebird commented 10 years ago

Two likely culprits.

1) The submodules aren't set up. Look in the README and do the "git submodule init" and "git submodule update" 2) The submodules are set up, but you switched from 2.2 to 2.3 where I changed where they point and confused git. Run the script 'update_from_2_2_to_2_3.sh' which should clean it up.

SandeepCoder commented 10 years ago

Hey Steve, Is any way to use 'SphericalEarthQuadLayer' class? Still looking for solution...

mousebird commented 10 years ago

It's a holiday weekend here. I should have some time to look into this Tuesday.

mousebird commented 10 years ago

The first thing I see is that ImageChopper -multires is generating blank tiles. That's obviously not good. I see -singleres seems to be doing the same thing.

In general, I've moved away from ImageChopper. Most users use TileMill to generate MBTiles files. There are some problems with that, the big one being the gaps at the poles with spherical mercator. However, it's popular so I've just gone along with it.

Can you use TileMill instead? If so, it might be faster than waiting for me to figure out why this path is currently broken.