Hello,

What is the best way to overlay a PV3D scene over a Map3D ?
I've followed the Satoshi Ueyama's example shown in the gallery
(http://shiba.iis.u-tokyo.ac.jp/member/ueyama/gmap-pv-demo);
Unfortunately it seems it only works for one object because it places
the camera origin at the coordinates of the object and the object 3D
coordinate is 0,0,0.
I'm trying to place the camera origin at LatLng(0, 0) and placing my
3d objects with x,y,z coordinates but I haven't found a way to
translate LatLng to pv3d x,y,z
I've tried with
[PSEUDOCODE]
centerPoint = camera.latLngToWorld( origin ) // should be (128, 128)
point = camera.latLngToWorld( object_coords )

3dobject.x = point.x – centerPoint.x;
3dobject.y = 0;
3dobject.z = centerPoint.y – point.y;

[/PSEUDOCODE]

I guess it is a problem of scaling but what is the ratio to convert
googlemap units (256,256) to pv3d world width and height ?

Best Regards.

François

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API For Flash" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api-for-flash?hl=en.

Reply via email to