iphone - How do I add a map view to an OpenGL ES view? -
i making 3-d ios application using opengl es. have created square frame gets rendered opengl es context.
how add map view square frame? i'd able apply 3-d effect map.
i tried adding map subview of opengl es hosting view, didn't see 3-d effect applied it. doing wrong?
i think might going wrong way. first, opengl es rendering self-contained within caeagllayer, can't add subview , expect part of scene. opengl es content render within flat layer, , added on top of stacked on layer.
you grab image of map view, convert texture, , upload texture opengl scene, have terrible performance , don't think you'd able maintain user interaction map.
if attempting provide perspective effect map, use core animation catransform3d rotate map view in 3-d , apply perspective it. see answer here example of how achieved. using core animation require far less code opengl es.
Comments
Post a Comment