be88ex / earth-api-samples

Automatically exported from code.google.com/p/earth-api-samples
1 stars 0 forks source link

Near clipping plane appears to move farther away with altitude #275

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Repost of problem description at: http://groups.google.com/group/google-
earth-browser-plugin/browse_thread/thread/e6f352ae094d6321

"If a collada model is loaded in the Google Earth Plug-In, the model 
will disappear if the altitude is increased. 

This can be shown in the Monster Milktruck demo by going to San 
Francisco and ramping high enough off of the mountains. 
Another problematic demo I found on here was a hang-gliding 
application a person wrote.  Since you are following a model of a hang- 
glider, the model disappears if you are off of the terrain by more 
than a small amount. 

If you zoom out far enough, the model becomes visible again.  It 
appears that the near clipping plane is moved further from the eye 
point when the altitude is increased.  This is problematic in any kind 
of application where you are following something that is more than a 
few meters above the surface."

I am also having this problem and have not seen any documented solution or 
workaround.

Running:  Google Earth v5.0.11733.9347
          WindowsXP

Original issue reported on code.google.com by snietf...@gmail.com on 26 Jun 2009 at 8:03

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
This has been accepted as a bug - see issue 120 and 
http://groups.google.com/group/kml-support-advanced/browse_frm/thread/013935d0c6
855f6d
We all hope it'll be fixed soon

Original comment by gpsanima...@gmail.com on 26 Jun 2009 at 9:26

GoogleCodeExporter commented 8 years ago

Original comment by api.roman.public@gmail.com on 26 Jun 2009 at 10:18

GoogleCodeExporter commented 8 years ago
A temporary hack that I've been using is to scale the model up based on it's
altitude. Then you don't have to get so close to it to see it. 

+++
kmlstring  = <kml>...
'<Model>' + ...
'<Scale>' + 
'<x>' + 150.0*Altitude/20000 + '</x>' + 
'<y>' + 150.0*Altitude/20000 + '</y>' + 
'<z>' + 150.0*Altitude/20000 + '</z>' + ...
'</Scale>' ...

+++

That seems to be working for me pretty well for high altitude models.

Good luck.

Original comment by porter.d...@gmail.com on 6 Aug 2009 at 2:32

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Unfortunately the hack won't fix my problem as it would cause the models to 
become
seriously oversized and so seriously detract from the reality of the animation. 
My
objective is primarily to improve the reality of the presentation.
I can't believe it's taking GE so long to fix this.
It affects  placemarks and lines as well as models.

Original comment by gpsanima...@gmail.com on 9 Aug 2009 at 7:49