Re: [osg-users] [vpb] convertLatLongHeightToXYZ problem with a geocentric coordinate earth

2009-12-08 Thread Lv Qing
lq37 wrote: Hi, Thank you Glenn ! Please tell me how to use local up vector to set the orientation (pitch,roll,yaw) of my model. Thank you! Cheers, Lv Already solve the orientation issue,Thanks everyone! Only the height issue remain. -- Read this topic online

Re: [osg-users] [vpb] convertLatLongHeightToXYZ problem with a geocentric coordinate earth

2009-12-06 Thread Lv Qing
Glenn Waldron wrote: Lv, convertLatLongHeightToXYZ gives you a point on the surface of the ellipsoid, but the actual polygons in the terrain model are just a tessellated approximation of that ellipsoid. So if you want the point on the triangulated surface, you have to convert to XYZ and

Re: [osg-users] [vpb] convertLatLongHeightToXYZ problem with a geocentric coordinate earth

2009-12-06 Thread Glenn Waldron
On Sun, Dec 6, 2009 at 7:53 AM, Lv Qing donlvq...@msn.com wrote: Glenn Waldron wrote: Lv, convertLatLongHeightToXYZ gives you a point on the surface of the ellipsoid, but the actual polygons in the terrain model are just a tessellated approximation of that ellipsoid. So if you want the

Re: [osg-users] [vpb] convertLatLongHeightToXYZ problem with a geocentric coordinate earth

2009-12-06 Thread Lv Qing
Hi, Thank you Glenn ! Thank you! Cheers, Lv -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=20979#20979 ___ osg-users mailing list osg-users@lists.openscenegraph.org

[osg-users] [vpb] convertLatLongHeightToXYZ problem with a geocentric coordinate earth

2009-12-05 Thread Lv Qing
Hi, I have build a geocentric coordinate earth model using VPB and want to put a simple model on the suface of the earth. I use the convertLatLongHeightToXYZ function to convert the BLH(Lat,Long,Height) of the simple model to XYZ of the geocentric coordinate system.The result of X and Y seems

Re: [osg-users] [vpb] convertLatLongHeightToXYZ problem with a geocentric coordinate earth

2009-12-05 Thread Glenn Waldron
Lv, convertLatLongHeightToXYZ gives you a point on the surface of the ellipsoid, but the actual polygons in the terrain model are just a tessellated approximation of that ellipsoid. So if you want the point on the triangulated surface, you have to convert to XYZ and then clamp down to the surface