[osg-users] how to use CoordinateSystemNode?

2008-09-04 Thread forest37
hi all, Now I have two files, earth.osga and city.ive . The first file use GEOGCS WGS 84 CoordinateSystem and the second file use PROJCS UTM Zone CoordinateSystem ,I add them both into the scene.But i only can see the scene of the first file,that is the earth.No matter how i

Re: [osg-users] how to use CoordinateSystemNode?

2008-09-04 Thread Robert Osfield
HI Forest, You make no mention of how you position the city model into the whole earth model. The way I'd tackle this would be to compute the transform from your projection coordinates to ECEF using a MatrixTransform, this would retain the cities local origin for good precision. If the city

Re: [osg-users] how to use CoordinateSystemNode?

2008-09-04 Thread Glenn Waldron
Hi Forest, The CoordinateSystemNode only communicates the CS of the underlying scene graph. Nothing in OSG actually reprojects the coordinates. You need to use something like GDAL/OGR to do that. (see: http://www.gdal.org/ogr/osr_tutorial.html) You will need to either a) rebuild your city file