The global coordinate of WGS84 is too big, a float is not accurate enough. The only two ways I can come up with are using dmat replace for mat or transferring the modelview matrix rather than the model and the view matrices separately. The first method I thought it will bring efficiency problem and the second method which I'm using leads to some troubles such as doing some redundant matrix multiply on CPU.
I search the document of OSG-Earth, it seems to use double precision matrices which is the first method I mentioned, won't it bring efficiency problems?
Is there another way to deal with this problem? Or I should change my coordinate system. How can I design the new coordinate system for the earth-rending?
I'm working on a project which looks like OSG-Earth or Google Earth. Although the camera is near the land at most time, sometimes it will pull up from the land and could see the whole planet.